aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/reline] Version 0.1.5aycabta2020-09-141-1/+1
| | | | https://github.com/ruby/reline/commit/c8a419beb5
* Suppress "assigned but unused variable" warningaycabta2020-09-121-1/+1
|
* [ruby/reline] Support for word movement escape sequences in iTerm2aycabta2020-09-121-0/+6
| | | | https://github.com/ruby/reline/commit/187235f88c
* [ruby/reline] Treat prompt correctly when Reline.prompt_proc isn't setaycabta2020-09-121-6/+6
| | | | https://github.com/ruby/reline/commit/9c9ba0eff3
* [ruby/reline] Move cursor to currect vertical pos after rendering a logical lineaycabta2020-09-121-4/+6
| | | | https://github.com/ruby/reline/commit/9b932df544
* [ruby/reline] Stop using chomp option of lines methodaycabta2020-09-121-1/+1
| | | | https://github.com/ruby/reline/commit/3e2f55c3e0
* [ruby/reline] Stop erasing chars after the cursor at eolaycabta2020-09-121-2/+12
| | | | | | | When the cursor is at the end of the line and erases characters after the cursor, some terminals delete the character at the cursor position. https://github.com/ruby/reline/commit/e96ec97b02
* [ruby/reline] Skip the nil obtained from getcaycabta2020-09-121-2/+6
| | | | | | | The nil means there is nothing in the buffer in some systems. Incidentally, Errno::EIO is raised if the I/O is closed. https://github.com/ruby/reline/commit/c698634e74
* [ruby/reline] not clear scrollback bufferYoshinao Muramatu2020-09-121-6/+8
| | | | https://github.com/ruby/reline/commit/ba800f1461
* [ruby/reline] clear_screen use Windows APIYoshinao Muramatu2020-09-121-3/+10
| | | | https://github.com/ruby/reline/commit/2c5ee54cb3
* [ruby/reline] Use str.encoding by default for split_by_widthaycabta2020-09-121-1/+1
| | | | https://github.com/ruby/reline/commit/2d32604c9e
* Revert the related commits about `Tempfile.open` change.Hiroshi SHIBATA2020-09-091-6/+4
| | | | | Start with https://github.com/ruby/ruby/commit/fa21985a7a2f8f52a8bd82bd12a724e9dca74934 to https://github.com/ruby/ruby/commit/d7492a0be885ea9f2b9f71e3e95582f9a859c439
* Fix usages of Tempfile.open(&block) that expected the file to still be there ↵Benoit Daloze2020-08-291-4/+6
| | | | after the block
* [ruby/reline] Move width calculator methods to Reline::Unicodeaycabta2020-08-282-64/+72
| | | | https://github.com/ruby/reline/commit/f348ecd9f5
* [ruby/reline] fix cursor_pos regexp matchtompng2020-08-281-3/+4
| | | | https://github.com/ruby/reline/commit/1dd80ef188
* Strip trailing spaces [ci skip]Nobuyoshi Nakada2020-08-181-1/+1
|
* [ruby/reline] Get rid of loading pathname unnecessarilyNobuyoshi Nakada2020-08-182-4/+1
| | | | https://github.com/ruby/reline/commit/9bd54b7f1c
* [ruby/reline] Use the standard SPDX ID for license in gemspecMaciej Mensfeld2020-08-181-1/+1
| | | | | | | | | It is better to use SPDX ID for license field: https://guides.rubygems.org/specification-reference/#license= ref: https://spdx.org/licenses/Ruby.html https://github.com/ruby/reline/commit/8468a727e5
* [ruby/reline] Remove duplicated line of codeaycabta2020-08-181-1/+0
| | | | | | Co-authored-by: Quentin Sabah <quentin.sabah@gmail.com> https://github.com/ruby/reline/commit/5526e9f7ee
* [ruby/reline] Keep original characters in inputrcaycabta2020-08-181-4/+12
| | | | https://github.com/ruby/reline/commit/96583c6336
* [ruby/reline] Support mode iconMark Delk2020-08-182-0/+46
| | | | | | Co-authored-by: aycabta <aycabta@gmail.com> https://github.com/ruby/reline/commit/067b618123
* [ruby/reline] Use single quotes for non-expanded string literalsaycabta2020-08-181-0/+2
| | | | https://github.com/ruby/reline/commit/3bf7c7d722
* [ruby/reline] Check Errno::EIOaycabta2020-08-181-0/+3
| | | | | | | Catch Errno::EIO what will be occurred if the console terminates I/O before Reline finishes rendering. https://github.com/ruby/reline/commit/e51eaa6d43
* [ruby/reline] Add home/end mapping for urxvt and relativesTomás Pollak2020-08-181-0/+4
| | | | https://github.com/ruby/reline/commit/c30b293f1c
* [ruby/reline] Remove unnecessary TODO commnetaycabta2020-05-171-1/+1
| | | | https://github.com/ruby/reline/commit/23c67fb7b3
* [ruby/reline] If history-size isn't numeric, it should be 500aycabta2020-05-171-1/+5
| | | | | | | | | https://tiswww.case.edu/php/chet/readline/readline.html#IDX25 > If an attempt is made to set history-size to a non-numeric value, the maximum > number of history entries will be set to 500. https://github.com/ruby/reline/commit/acf0437280
* Some I/O in test doesn't have "position"aycabta2020-05-121-3/+10
| | | | | Just returns column 1 for ambiguous width because this I/O is not tty and can't seek.
* [ruby/reline] Add URL reference of history-sizeaycabta2020-04-291-0/+1
| | | | https://github.com/ruby/reline/commit/13420197b8
* [ruby/reline] Version 0.1.4aycabta2020-04-291-1/+1
| | | | https://github.com/ruby/reline/commit/298144b06a
* [ruby/reline] Negative history_size means unlimitedaycabta2020-04-292-12/+28
| | | | | | And unlimited is default. https://github.com/ruby/reline/commit/f5149c3ca6
* [ruby/reline] New items to history are dropped if history_size is zeroaycabta2020-04-291-0/+4
| | | | https://github.com/ruby/reline/commit/9bdbed9cbc
* [ruby/reline] Ignore non-absolute XDG_CONFIG_HOMENobuyoshi Nakada2020-04-291-5/+6
| | | | | | | | | https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html > All paths set in these environment variables must be absolute. > If an implementation encounters a relative path in any of these > variables it should consider the path invalid and ignore it. https://github.com/ruby/reline/commit/45af6eea77
* [ruby/reline] Treat home dir correctlyaycabta2020-04-241-2/+4
| | | | https://github.com/ruby/reline/commit/9b1327d2f4
* [ruby/reline] Support XDG_CONFIG_HOMEaycabta2020-04-241-5/+17
| | | | | | | | In the XDG Specification, if ~/.config/readline/inputrc exists, then ~/.inputrc should not be read, but for compatibility with GNU Readline, if ~/.inputrc exists, then it is given priority. https://github.com/ruby/reline/commit/97f1e7db04
* [ruby/reline] Add ed_search_next_historyaycabta2020-04-181-0/+52
| | | | https://github.com/ruby/reline/commit/ca750b676b
* [ruby/reline] Add ed_search_prev_historyaycabta2020-04-181-0/+47
| | | | https://github.com/ruby/reline/commit/e9ae288825
* [ruby/reline] Use vi_search_{prev,next} to incremental searchaycabta2020-04-184-14/+14
| | | | https://github.com/ruby/reline/commit/cab312f584
* [ruby/reline] Rename search_history with incremental_search_historyaycabta2020-04-181-3/+3
| | | | https://github.com/ruby/reline/commit/d563063ea0
* [ruby/reline] Suppress error in case INPUTRC env is emptyaycabta2020-03-261-1/+10
| | | | https://github.com/ruby/reline/commit/bce7e7562b
* [ruby/reline] Work with wrong $/ value correctlyaycabta2020-03-261-1/+1
| | | | https://github.com/ruby/reline/commit/962ebf5a1b
* [ruby/reline] Version 0.1.3aycabta2020-02-151-1/+1
| | | | https://github.com/ruby/reline/commit/ea2b182466
* [ruby/reline] Use IO#write instead of IO#printaycabta2020-02-143-11/+11
| | | | | | IO#print always adds a string of $\ automatically. https://github.com/ruby/reline/commit/a93119c847
* [ruby/reline] Organize special keys escape sequencesaycabta2020-02-091-3/+22
| | | | https://github.com/ruby/reline/commit/41deb1a3d9
* [ruby/reline] Bypass cursor down when a char is rendered at eol on Windowsaycabta2020-02-024-3/+23
| | | | | | | A newline is automatically inserted if a character is rendered at eol on Windows command prompt. https://github.com/ruby/reline/commit/4bfea07e4a
* [ruby/reline] Fix Reline::Windows#scroll_downaycabta2020-02-021-1/+1
| | | | | | I mistook Right and Bottom. https://github.com/ruby/reline/commit/8be401c5f5
* [ruby/reline] Support GNOME style Home/End key sequences [Bug #16510]aycabta2020-01-291-0/+2
| | | | https://github.com/ruby/reline/commit/788f0df845
* Always use UTF-8 for Reline::GeneralIO on Windowsaycabta2020-01-261-1/+1
|
* Reline: Use a more robust detection of MinTTYLars Kanis2020-01-211-0/+29
| | | | | | | | | | | | | | 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
* [ruby/reline] Implement vi_change_metaaycabta2020-01-211-0/+12
| | | | https://github.com/ruby/reline/commit/8538e0e10f
* [ruby/reline] Implement vi_prev_char and vi_to_prev_charaycabta2020-01-201-0/+48
| | | | https://github.com/ruby/reline/commit/0ad3ee63fa