summaryrefslogtreecommitdiff
path: root/lib/reline/windows.rb
AgeCommit message (Collapse)Author
2021-10-05[ruby/reline] Change struct size correctlyaycabta
https://github.com/ruby/reline/commit/df2a1b4e08
2021-10-04[ruby/reline] Use default background color to erase on Windowsaycabta
https://github.com/ruby/reline/commit/852e855d82
2021-10-03[ruby/reline] Call LineEditor#resize on Windowsaycabta
https://github.com/ruby/reline/commit/65b27dd2ff
2021-10-03[ruby/reline] Use String#unpack1aycabta
https://github.com/ruby/reline/commit/179c52bca8
2021-09-22[ruby/reline] Use `unpack1` instead of `unpack(template)[0]`Kazuhiro NISHIYAMA
https://github.com/ruby/reline/commit/45aa367616
2021-09-03[ruby/reline] Emulate Unix like terminals that sends Alt+key as \e+keyaycabta
https://github.com/ruby/reline/commit/dc2cf90fa6
2021-08-30[ruby/reline] Add autocompletion on emacs mode by Tab / S-Tabaycabta
https://github.com/ruby/reline/commit/22d0b4e5d8
2021-08-29[ruby/reline] Support hide/show cursor on Windowsaycabta
https://github.com/ruby/reline/commit/0c870813bd
2021-08-29[ruby/reline] Hide cursor when rendering dialogaycabta
https://github.com/ruby/reline/commit/a9050cf676
2021-08-29[ruby/reline] Create windows.rbusa
see issue #317 https://github.com/ruby/reline/commit/aad164de93
2021-08-29[ruby/reline] Add "sleep 0.01" to Windows event loopaycabta
https://github.com/ruby/reline/commit/dfc89eae53
2021-07-30[ruby/reline] Fixed Ctrl+Enter key in Windows.SilverPhoenix99
https://github.com/ruby/reline/commit/0c38e39023
2021-07-30[ruby/reline] Added support for Numpad divide key on Windows.SilverPhoenix99
https://github.com/ruby/reline/commit/84577da0c4
2021-07-30[ruby/reline] Support Enter key of numpad on Windowsaycabta
The yamatanooroti gem can't emulate numpad key pressing... https://github.com/ruby/reline/commit/8e9da1aeaf
2021-07-30[ruby/reline] Windows cmd: Don't type anything when pressing ALT keys aloneLars Kanis
Fixes #298 https://github.com/ruby/reline/commit/72acfcd27a
2021-06-21[ruby/reline] Add binding C-x C-x to em_exchange_mark on Windowsaycabta
https://github.com/ruby/reline/commit/24a2489b62
2021-06-21[ruby/reline] Treat C-Space as M-Space on Windowsaycabta
https://github.com/ruby/reline/commit/69beca2863
2021-06-21[ruby/reline] Treat return key correctly on Windowsaycabta
To fix Reline::TestRendering#test_binding_for_vi_movement_mode. https://github.com/ruby/reline/commit/0df3d2a1dc
2021-06-21[ruby/reline] Use ReadConsoleInputW() instead of getwch()aycabta
This needs https://github.com/aycabta/yamatanooroti/pull/19, which is released by yamatanooroti gem 0.0.7, to test with yamatanooroti. https://github.com/ruby/reline/commit/06c1f45da1
2021-04-08[ruby/reline] Separate keystrokes each editing modeaycabta
https://github.com/ruby/reline/commit/ee23e6f3f8
2021-02-22[ruby/reline] fix Reline::Windows.getconsolemode buffercremno
use double quotes to properly convert the \000 escape sequence. https://github.com/ruby/reline/commit/236dfe5683
2021-02-21[ruby/reline] check ENABLE_VIRTUAL_TERMINAL_PROCESSING flag and switch eof ↵Yoshinao Muramatu
processing https://github.com/ruby/reline/commit/3535676689
2021-01-18[ruby/reline] Reline::Windows.erase_after_cursor erases attributes tooaycabta
https://github.com/ruby/reline/commit/68b961dfc7
2020-12-17[ruby/reline] Support longer than screen height on Windowsaycabta
https://github.com/ruby/reline/commit/2a97ca9362
2020-12-05[ruby/reline] Suppress callbacks in pastingaycabta
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. https://github.com/ruby/reline/commit/beec3399a8
2020-09-12Suppress "assigned but unused variable" warningaycabta
2020-09-12[ruby/reline] not clear scrollback bufferYoshinao Muramatu
https://github.com/ruby/reline/commit/ba800f1461
2020-09-12[ruby/reline] clear_screen use Windows APIYoshinao Muramatu
https://github.com/ruby/reline/commit/2c5ee54cb3
2020-02-14[ruby/reline] Use IO#write instead of IO#printaycabta
IO#print always adds a string of $\ automatically. https://github.com/ruby/reline/commit/a93119c847
2020-02-02[ruby/reline] Bypass cursor down when a char is rendered at eol on Windowsaycabta
A newline is automatically inserted if a character is rendered at eol on Windows command prompt. https://github.com/ruby/reline/commit/4bfea07e4a
2020-02-02[ruby/reline] Fix Reline::Windows#scroll_downaycabta
I mistook Right and Bottom. https://github.com/ruby/reline/commit/8be401c5f5
2020-01-21Reline: Use a more robust detection of MinTTYLars Kanis
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: https://github.com/git-for-windows/git/blob/c5a03b1e29c69f3f06c8fabd92493edb73469176/compat/winansi.c#L558 Notes: Merged: https://github.com/ruby/ruby/pull/2848
2020-01-14Introduce an abstracted structure about the encoding of Relineaycabta
The command prompt on Windows always uses Unicode to take input and print output but most Reline implementation depends on Encoding.default_external. This commit introduces an abstracted structure about the encoding of Reline.
2019-10-25Rename old var name with new nameaycabta
2019-10-24Treat only left alt key as meta-key on Windowsaycabta
On German keyboard, right alt key acts as like shift key. Ex. right-alt-8 is just "[". This input doesn't have meta-key statement.
2019-10-24Support forced enter insertion by Ctrl+Enter on Windowsaycabta
2019-10-23Fix indent...aycabta
2019-10-18Treat key sequences from getwch() that start from 0 or 0xE0 correctlyaycabta
2019-10-18Add numeric keypad key sequences on Windowsaycabta
2019-10-18Remove freezeaycabta
2019-10-18Ignore the input method key sequence from getwch() correctlyaycabta
The function getwch() returns some key sequences which start from 0 or 0xE0 with a following key code. Alt+` that is on/off key for input methods gives 0 and 41 so Reline was always ignoring 0 and following keys but numeric keypad keys give 0 and following actual keys. This commit changes the behavior to be ignoring only the 0 and 41 sequence.
2019-10-07Use built-in Win32API on JRubyaycabta
It's fixed for JRuby dedicatedly.
2019-09-02Treat Japanese IME on/off code correctlyaycabta
2019-08-29Check events that console window size changed on Windowsaycabta
2019-08-29Fix alignment of a SHORT variableaycabta
typedef struct _COORD { SHORT X; SHORT Y; // I wanted to take this... } COORD, *PCOORD; typedef struct _CONSOLE_SCREEN_BUFFER_INFO { COORD dwSize; COORD dwCursorPosition; // ...of this one WORD wAttributes; // But it's combined with first 2bytes of this SMALL_RECT srWindow; COORD dwMaximumWindowSize; } CONSOLE_SCREEN_BUFFER_INFO; If wAttributes has non-zero value, the code breaks.
2019-08-29CONSOLE_SCREEN_BUFFER_INFO is 22bytesaycabta
typedef struct _CONSOLE_SCREEN_BUFFER_INFO { COORD dwSize; // 4(SHORT X, Y) COORD dwCursorPosition; // 4 WORD wAttributes; // 2 SMALL_RECT srWindow; // 8(SHORT Left, Top, Right, Bottom) COORD dwMaximumWindowSize; // 4 } CONSOLE_SCREEN_BUFFER_INFO;
2019-08-29Add stub set_screen_size for other platformsaycabta
2019-06-01Use inputrc data for keystroke settingaycabta
2019-06-01Seprate raw keystroke config for each platformsNobuyoshi Nakada
2019-05-29Use reversed get_screen_size correctly on Windowsaycabta