YO4
31c69d66d2
[ruby/reline] windows fix scroll
...
c559d0f7a9
2021-12-30 20:53:21 +09:00
aycabta
3a59abab08
[ruby/reline] Determine 1st char or 2nd char of surrogate pair correctly
...
182606c847
2021-12-24 13:57:46 +09:00
aycabta
6ccc15c2ab
[ruby/reline] Rename an unused variable name for CI
...
ba97f3bd87
2021-12-20 15:52:51 +09:00
aycabta
cf508d4db9
[ruby/reline] Add space
...
4b7fa6b213
2021-12-20 14:53:45 +09:00
YO4
2a8ff602e0
[ruby/reline] windows jruby issue
...
jruby needs terminal control with Windows API on classic console
b61bc43374
2021-12-20 14:51:52 +09:00
YO4
65cb250cb1
[ruby/reline] windows clear screen with \e 2 J
...
Windows Terminal does smart screen clearing when \e 2 J (not clear entire screen but scrolls down just needed)
On consoles not support sequences, ruby still converts it to API call.
c00930dab9
2021-12-20 14:51:52 +09:00
YO4
2c415cda85
[ruby/reline] windows improve scrolling
...
ScrollConsoleScreenBuffer can't scroll window of Windows Terminal.
Use LF to sctoll.
Microsoft says
```In the virtual terminal sequences world, the size of the window and the size of the screen buffer are fixed to the same value.
```
https://docs.microsoft.com/en-us/windows/console/window-and-screen-buffer-size
9ff3c70732
2021-12-20 14:51:51 +09:00
aycabta
a856489be6
[ruby/reline] Revert "Add a space after a comma"
...
This reverts commit 6009b3ef7a
.
To merge a Pull Request...
83021f4267
2021-12-20 14:50:41 +09:00
aycabta
7dd0e91cac
[ruby/reline] Revert "Add space"
...
This reverts commit 1bb071bcf5
.
To merge a Pull Request...
e9fe1b1305
2021-12-20 14:46:35 +09:00
aycabta
1c49d809f4
[ruby/reline] Remove unnecessary "*"
...
7b50638e24
2021-12-18 10:18:33 +09:00
aycabta
7f2123bc08
[ruby/reline] Add a space after a comma
...
6009b3ef7a
2021-12-18 10:18:32 +09:00
aycabta
8cc01b668a
[ruby/reline] Add space
...
1bb071bcf5
2021-12-18 10:15:23 +09:00
YO4
3a2ae5bb19
[ruby/reline] unleash real pasting speed
...
2700msec -> 410msec
read 80 console inputs at once
eb3ef7af98
2021-12-10 22:18:26 +09:00
YO4
74765a5a36
[ruby/reline] unleash pasting speed
...
074e407c62
2021-12-10 22:18:25 +09:00
YO4
aed21d6574
[ruby/reline] support input surrogate paird codepoint
...
support surrogate pair input
0b4acedc6a
2021-12-10 22:16:46 +09:00
YO4
66e14e2076
[ruby/reline] follow consolemode change
...
fix 'https://github.com/ruby/reline/issues/300 '
b2cc6805a8
2021-12-10 22:15:56 +09:00
Nobuyoshi Nakada
a48dc89547
[ruby/reline] Check the result of GetConsoleScreenBufferInfo
...
42edf7b3aa
2021-10-12 13:19:25 +09:00
aycabta
89556a6555
[ruby/reline] Remove a comment for debug
...
5f3ccda3d5
2021-10-11 21:17:02 +09:00
aycabta
6966c3ff44
[ruby/reline] Change struct size correctly
...
df2a1b4e08
2021-10-05 22:32:56 +09:00
aycabta
1e9714cf34
[ruby/reline] Use default background color to erase on Windows
...
852e855d82
2021-10-04 00:14:10 +09:00
aycabta
bf0a8a7462
[ruby/reline] Call LineEditor#resize on Windows
...
65b27dd2ff
2021-10-03 14:27:33 +09:00
aycabta
4401bbe8a7
[ruby/reline] Use String#unpack1
...
179c52bca8
2021-10-03 14:08:55 +09:00
Kazuhiro NISHIYAMA
357406da8b
[ruby/reline] Use unpack1
instead of unpack(template)[0]
...
45aa367616
2021-09-22 23:37:59 +09:00
aycabta
057ab5f056
[ruby/reline] Emulate Unix like terminals that sends Alt+key as \e+key
...
dc2cf90fa6
2021-09-03 04:27:53 +09:00
aycabta
935bb4c617
[ruby/reline] Add autocompletion on emacs mode by Tab / S-Tab
...
22d0b4e5d8
2021-08-30 02:37:23 +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
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
SilverPhoenix99
5b9f3ed326
[ruby/reline] Fixed Ctrl+Enter key in Windows.
...
0c38e39023
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
8135f489be
[ruby/reline] Add binding C-x C-x to em_exchange_mark on Windows
...
24a2489b62
2021-06-21 17:58:49 +09:00
aycabta
fa5a258e93
[ruby/reline] Treat C-Space as M-Space on Windows
...
69beca2863
2021-06-21 17:58:49 +09:00
aycabta
26f31f880c
[ruby/reline] Treat return key correctly on Windows
...
To fix Reline::TestRendering#test_binding_for_vi_movement_mode.
0df3d2a1dc
2021-06-21 17:58:48 +09:00
aycabta
c59bbd86a6
[ruby/reline] Use ReadConsoleInputW() instead of getwch()
...
This needs https://github.com/aycabta/yamatanooroti/pull/19 , which is released
by yamatanooroti gem 0.0.7, to test with yamatanooroti.
06c1f45da1
2021-06-21 17:58:48 +09:00
aycabta
5543695a19
[ruby/reline] Separate keystrokes each editing mode
...
ee23e6f3f8
2021-04-08 21:41:00 +09:00
cremno
a7dda449e8
[ruby/reline] fix Reline::Windows.getconsolemode buffer
...
use double quotes to properly convert the \000 escape sequence.
236dfe5683
2021-02-22 12:19:21 +09:00
Yoshinao Muramatu
38d30a6942
[ruby/reline] check ENABLE_VIRTUAL_TERMINAL_PROCESSING flag and switch eof processing
...
3535676689
2021-02-21 06:43:52 +09:00
aycabta
e1449ae74f
[ruby/reline] Reline::Windows.erase_after_cursor erases attributes too
...
68b961dfc7
2021-01-18 02:09:53 +09:00
aycabta
cdf2790aa0
[ruby/reline] Support longer than screen height on Windows
...
2a97ca9362
2020-12-17 20:17:22 +09:00
aycabta
55cc397a87
[ruby/reline] Suppress callbacks in pasting
...
IRB uses Reline's 3 dynamic real-time callbacks with calling Ripper;
output_modifier_proc, prompt_proc, and auto_indent_proc. These processing
times make the paste time too long.
beec3399a8
2020-12-05 02:58:58 +09:00
aycabta
ae508633b7
Suppress "assigned but unused variable" warning
2020-09-12 10:07:18 +09:00
Yoshinao Muramatu
a840ef8569
[ruby/reline] not clear scrollback buffer
...
ba800f1461
2020-09-12 08:35:51 +09:00
Yoshinao Muramatu
0862744010
[ruby/reline] clear_screen use Windows API
...
2c5ee54cb3
2020-09-12 08:35:51 +09:00
aycabta
2efb38e766
[ruby/reline] Use IO#write instead of IO#print
...
IO#print always adds a string of $\ automatically.
a93119c847
2020-02-14 22:47:27 +09:00
aycabta
06c37fa5b4
[ruby/reline] Bypass cursor down when a char is rendered at eol on Windows
...
A newline is automatically inserted if a character is rendered at eol on
Windows command prompt.
4bfea07e4a
2020-02-02 03:28:20 +09:00
aycabta
16d4774da1
[ruby/reline] Fix Reline::Windows#scroll_down
...
I mistook Right and Bottom.
8be401c5f5
2020-02-02 03:28:07 +09:00
Lars Kanis
d1166c6d39
Reline: Use a more robust detection of MinTTY
...
The previous detection per get_screen_size fails when stdout is passed
to a pipe. That is the case when running ruby tests in parallel ("-j" switch).
In this case Reline believes that it's running on MinTTY and the tests
are running with ANSI IOGate instead of the Windows adapter on MINGW.
So parallel test results were different to that of a single process.
This commit fixes these differencies.
The code is taken from git sources and translated to ruby.
NtQueryObject() is replaced by GetFileInformationByHandleEx(), because
NtQueryObject() is undocumented and is more difficult to use:
c5a03b1e29/compat/winansi.c (L558)
2020-01-21 21:26:58 +09:00