Commit graph

650 commits

Author SHA1 Message Date
aycabta
d41d41da38 [ruby/reline] Clear completion journey data when finished
03716a411e
2021-08-29 20:30:33 +09:00
aycabta
3d757ba1b6 [ruby/reline] Suppress crashes on nil
b5f62c366b
2021-08-29 20:30:33 +09:00
aycabta
acd15a39d2 [ruby/reline] Support custom bg color
cd0cbf53d5
2021-08-29 20:30:33 +09:00
aycabta
4cd344c958 [ruby/reline] Add the ability to handle context between dialogs
063d9c70d9
2021-08-29 20:30:33 +09:00
aycabta
8d4370b066 [ruby/reline] Support for multiple dialog rendering
f589fab718
2021-08-29 20:30:33 +09:00
aycabta
164e486225 [ruby/reline] Remove @dialog_updown and @dialog_contents_width
458cb8a9cc
2021-08-29 20:30:33 +09:00
aycabta
4b2b10707a [ruby/reline] Implement dynamic selection of candidates
e46437df00
2021-08-29 20:30:33 +09:00
aycabta
fdc005e54e [ruby/reline] Completion journey starts with one of candidates
First one is just original string.

ccb70cc240
2021-08-29 20:30:33 +09:00
aycabta
475038a622 [ruby/reline] Move cursor correctly when current line is auto wrapped
14c8fade54
2021-08-29 20:30:33 +09:00
aycabta
ff43b0f2dd [ruby/reline] Update dialog backup before clearing
a39e2c8813
2021-08-29 20:30:33 +09:00
aycabta
ca1a2d1f68 [ruby/reline] Show autocomplete correctly when starts from prev line
f31a76ff31
2021-08-29 20:30:33 +09:00
aycabta
06bd48aba8 [ruby/reline] Remove unnecessary metadata between lines
83928249e3
2021-08-29 20:30:33 +09:00
aycabta
081e5de34d [ruby/reline] Combine vertical processing into @dialog_vertical_offset
600b93620c
2021-08-29 20:30:33 +09:00
aycabta
f863ed5210 [ruby/reline] Drop too much contents before processing
94f7027edc
2021-08-29 20:30:33 +09:00
aycabta
fb9fe4c43f [ruby/reline] Display autocomplete below original line if end point was wrapped
49f3392d59
2021-08-29 20:30:33 +09:00
aycabta
9b2afb2eed [ruby/reline] Scroll properly to create margin
064d54f8f1
2021-08-29 20:30:33 +09:00
aycabta
85dd0ad5e0 [ruby/reline] Move dialog pos to left when goes beyond right edge
f1efa2b062
2021-08-29 20:30:33 +09:00
aycabta
d768eeeddb [ruby/reline] Support hide/show cursor on Windows
0c870813bd
2021-08-29 20:30:33 +09:00
aycabta
02a61fe33f [ruby/reline] Hide cursor when rendering dialog
a9050cf676
2021-08-29 20:30:32 +09:00
aycabta
c0349765e9 [ruby/reline] Remove debug code
2389d175f7
2021-08-29 20:30:32 +09:00
aycabta
2ec3977ce2 [ruby/reline] Clear after cursor
4d7503cd1f
2021-08-29 20:30:32 +09:00
aycabta
b95e5f4a41 [ruby/reline] Move cursor to rerender right margin of dialog correctly
554855013b
2021-08-29 20:30:32 +09:00
usa
788c047695 [ruby/reline] Create windows.rb
see issue #317

aad164de93
2021-08-29 20:30:32 +09:00
aycabta
d7f654ad5a [ruby/reline] Add "sleep 0.01" to Windows event loop
dfc89eae53
2021-08-29 20:30:32 +09:00
aycabta
6f66927aef [ruby/reline] Add comments about where rerendering
4406069b7e
2021-08-29 20:30:32 +09:00
aycabta
55459bdd67 [ruby/reline] Use background color instead of border frame
8f1db0a076
2021-08-29 20:30:32 +09:00
aycabta
6fda457448 [ruby/reline] Suppress warning; unused variable
74a6124e8d
2021-08-29 20:30:32 +09:00
aycabta
1e527c8a55 [ruby/reline] Remove an unnecessary variable
5435c1aa3f
2021-08-29 20:30:32 +09:00
aycabta
fb0fc20196 [ruby/reline] Implement dialog with autocomplete callback
1401d6165e
2021-08-29 20:30:32 +09:00
aycabta
e66200780b [ruby/reline] Separate calling completion proc with checking args
3203cb97db
2021-08-29 20:30:32 +09:00
aycabta
acce754eb8 [ruby/reline] Remove interrupt avoidance
There used to be a process that did not want to be interrupted by
SIGINT, so it was trapped, but that process is no longer there.

ba7252a5db
2021-08-14 22:13:31 +09:00
aycabta
5534698b84 [ruby/reline] Version 0.2.7
040d29b4c0
2021-08-12 19:55:17 +09:00
Nobuyoshi Nakada
3e7fb4b91d
Check the result of tigetstr 2021-08-06 13:34:25 +09:00
Nobuyoshi Nakada
9bfb8ea671
Fix caching of curses_dl 2021-08-06 13:33:47 +09:00
aycabta
7bcbee37b5 Fix the result of checking the existence of constants being reversed 2021-08-06 02:51:10 +09:00
aycabta
de93b8b069 Handle SIGINT in other thread correctly
Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-08-04 18:29:42 +09:00
aycabta
5bb7b57129 Use Symbol of signal for trap 2021-08-04 18:29:42 +09:00
aycabta
1c9cb9da8f [ruby/reline] Support Terminfo on Cygwin and macOS
b0b75fcd27
2021-07-30 02:27:02 +09:00
aycabta
f1b5cb7e5d [ruby/reline] Don't check the existence of Terminfo on Windows
320f09055c
2021-07-30 02:27:02 +09:00
aycabta
b158b4666d [ruby/reline] Check TYPE_VARIADIC
8e62e46e33
2021-07-30 02:27:02 +09:00
aycabta
0f496b9b29 [ruby/reline] Define StringWithTiparm instead of singular method
de234dc875
2021-07-30 02:27:02 +09:00
SilverPhoenix99
5b9f3ed326 [ruby/reline] Fixed Ctrl+Enter key in Windows.
0c38e39023
2021-07-30 02:27:02 +09:00
aycabta
46c6da9c37 [ruby/reline] Check empty .inputrc
b60b3b76cd
2021-07-30 02:27:02 +09:00
aycabta
51ee24e7f7 [ruby/reline] Add original C function declarations comment for each function
9a25ee9f12
2021-07-30 02:27:02 +09:00
Jeremy Evans
44a9337a46 [ruby/reline] Fix reline on OpenBSD
OpenBSD doesn't support tiparm, only tparm.  I'm not sure if the
two are compatible, but this at least this allows me to run irb
on OpenBSD.

0ce2b34e2b
2021-07-30 02:27:02 +09:00
SilverPhoenix99
1bf768d2e1 [ruby/reline] Added support for Numpad divide key on Windows.
84577da0c4
2021-07-30 02:27:02 +09:00
aycabta
750359ce81 [ruby/reline] Support Enter key of numpad on Windows
The yamatanooroti gem can't emulate numpad key pressing...

8e9da1aeaf
2021-07-30 02:27:02 +09:00
Lars Kanis
03f8c27179 [ruby/reline] Windows cmd: Don't type anything when pressing ALT keys alone
Fixes #298

72acfcd27a
2021-07-30 02:27:02 +09:00
aycabta
b0633ee4b3 [ruby/reline] Add TODO comment to implement tigetflag() and tigetnum()
a0d946a398
2021-07-30 02:27:02 +09:00
Samuel Williams
bf376cae0c [ruby/reline] Fix missing require.
010b28dfe9
2021-06-25 17:42:45 +09:00