aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline.rb
Commit message (Collapse)AuthorAgeFilesLines
* Reline callbacks can take nilaycabta2020-05-141-5/+5
|
* [ruby/reline] Suppress error when check ambiguous char width in LANG=Caycabta2020-03-261-2/+8
| | | | https://github.com/ruby/reline/commit/623dffdd75
* [ruby/reline] Work with wrong $/ value correctlyaycabta2020-03-261-3/+3
| | | | https://github.com/ruby/reline/commit/962ebf5a1b
* [ruby/reline] Use IO#write instead of IO#printaycabta2020-02-141-1/+1
| | | | | | IO#print always adds a string of $\ automatically. https://github.com/ruby/reline/commit/a93119c847
* Always refer to Reline::IOGate.encodingaycabta2020-01-261-13/+15
|
* Reline: Use a more robust detection of MinTTYLars Kanis2020-01-211-2/+1
| | | | | | | | | | | | | | 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
* Introduce an abstracted structure about the encoding of Relineaycabta2020-01-141-14/+19
| | | | | | 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.
* [ruby/reline] Implement completion_append_characterThomas Leitner2019-12-171-0/+1
| | | | | | | There is already the possibility to set Reline.completion_append_character. However, it is not used by the line editor. https://github.com/ruby/reline/commit/ab798931b9
* Support Readline.completion_quote_character by Relineaycabta2019-12-111-0/+6
|
* Support completion with case-insensitive fashionaycabta2019-12-101-5/+10
| | | | | | Reline performs completion in a case-insensitive fashon if Readline.completion_case_fold or completion-ignore-case of .inputrc are set "on".
* Support incremental search by last determined wordaycabta2019-12-031-0/+3
| | | | | | In the incremental search by C-r, search word is saved when it's determined. In the next incremental search by C-r, if a user presses C-r again with the empty search word, the determined previous search word is used to search.
* Change argument `Proc` to `#call` defined object.manga_osyo2019-11-211-5/+5
| | | | This is the same as the behavior of Readline.
* Mintty on Cygwin isn't a kind of command prompt, can process ANSI escape codeaycabta2019-11-201-8/+8
|
* Reline#readline and Reline#readmultiline to private.osyo-manga2019-11-121-0/+2
|
* Suppress "shadowing outer local variable" warning in 2.5aycabta2019-11-081-2/+8
|
* Only taint on Ruby <2.7Jeremy Evans2019-11-051-2/+2
| | | | Ruby 2.7 deprecates taint and it no longer has an effect.
* Fix verbose warning being emittedJeremy Evans2019-10-311-1/+1
| | | | Fixes Ruby Bug 16281.
* Reline: Fix wrong variable nameLars Kanis2019-09-091-2/+2
| | | | This raised a NameError before.
* Remove duplicated delegationaycabta2019-08-271-1/+0
|
* Delegete an instance method to a class method correctlyaycabta2019-08-271-1/+1
|
* Save value to @ambiguous_width because of a accessoraycabta2019-08-271-3/+3
|
* The "private" doesn't make sence for class methods and a constantaycabta2019-08-271-2/+0
|
* Use preposing "private" to define methodsaycabta2019-08-271-6/+4
|
* Adjust method forwardings of Relineaycabta2019-08-271-13/+19
|
* Remove .freeze.manga_osyo2019-08-271-2/+2
|
* Fix `Reline::Windows`.manga_osyo2019-08-271-1/+1
|
* Refactoring Reline.manga_osyo2019-08-271-324/+317
|
* Remove test_mode in `lib/reline`.manga_osyo2019-08-271-7/+0
|
* Use host_os from RbConfig to detect host OS.Charles Oliver Nutter2019-08-061-1/+1
| | | | | | | | RUBY_PLATFORM on JRuby is always "java", so it will not reflect the host operating system. This regex appears to be the consensus way to detect Windows based on a search of Ruby code on Github: https://github.com/search?q=%2Fmswin%7Cmsys%7Cmingw%7Ccygwin%7Cbccwin%7Cwince%7Cemc%2F&type=Code
* Add `class Reline::History` and test.manga_osyo2019-07-151-60/+2
|
* Add arg check to Reline.dig_perfect_match_proc=aycabta2019-07-111-0/+1
|
* Print starting debug message with RELINE_STDERR_TTYaycabta2019-06-181-0/+1
|
* Implement auto indent for multilineaycabta2019-06-181-0/+10
|
* Remove debug printaycabta2019-06-141-4/+0
|
* Add Reline.prompt_procaycabta2019-06-141-0/+14
|
* Move I/O access from Reline::KeyStroke to Relineaycabta2019-06-051-2/+75
|
* Add Reline test for unknown macroaycabta2019-06-021-4/+6
|
* Add new test for Reline within pipeaycabta2019-06-021-0/+2
|
* Reline.readmultiline always needs block to confirm terminationaycabta2019-06-021-5/+1
|
* Use inputrc data for keystroke settingaycabta2019-06-011-2/+5
|
* Seprate raw keystroke config for each platformsNobuyoshi Nakada2019-06-011-25/+1
|
* Support Home and End key to move to beg and endaycabta2019-06-011-2/+6
|
* Use IO#sync= instead of a monkey patchaycabta2019-05-311-7/+1
|
* Flush I/O immediately if RELINE_STDERR_TTY is setaycabta2019-05-311-0/+7
|
* Remove extra items because Reline::HISTORY is a sized queueaycabta2019-05-291-2/+27
|
* Revert 3b7862c8e88cd7838a53ec083ac5733386400956 causing various CI hangsTakashi Kokubun2019-05-291-17/+0
| | | | | | | | | | | | | | | | | | | | | and dependent commits c67934b1c3b40dda5f170b032423e520511c68dd and f0d1dc5cee87dfb023cb43a2db9bcdef5a8dee8f. RubyCI and ci.rvm.jp are almost dead by timeout since this commit. --- Revert "Skip a reline test hanging on Wercker since 3b7862c8e8" This reverts commit f0d1dc5cee87dfb023cb43a2db9bcdef5a8dee8f. Revert "Remove extra items because Reline::HISTORY is a sized queue" This reverts commit c67934b1c3b40dda5f170b032423e520511c68dd. Revert "Use existing instances for LineEditor and Config" This reverts commit 3b7862c8e88cd7838a53ec083ac5733386400956.
* Remove extra items because Reline::HISTORY is a sized queueaycabta2019-05-291-1/+15
|
* Use existing instances for LineEditor and Configaycabta2019-05-291-0/+3
|
* Use Reline.completer_quote_characters to completeaycabta2019-05-281-16/+0
|
* Fix rendering bug of ^Daycabta2019-05-271-0/+4
|