summaryrefslogtreecommitdiff
path: root/lib/reline/key_stroke.rb
AgeCommit message (Collapse)Author
2021-12-10[ruby/reline] Execute compress_meta_key if convert_meta is onima1zumi
fix `#357` When using 8-bit characters, it is better not to use `compress_meta_key`. I believe not to use `compress_meta_key` unless `set convert-meta on` is written in the `.inputrc`. The following is a quote from tmtm's comments. > The behavior of this compress_meta_key method is similar to the behavior of convert-meta=on in readline, but readline turns off convert-meta if the locale contains 8bit characters. > In readline(3): > convert-meta (On) > If set to On, readline will convert characters with the eighth > bit set to an ASCII key sequence by stripping the eighth bit and > prefixing it with an escape character (in effect, using escape > as the meta prefix). The default is On, but readline will set > it to Off if the locale contains eight-bit characters. https://github.com/ruby/reline/commit/9491cc8542 Co-authored-by: TOMITA Masahiro <tommy@tmtm.org>
2021-09-14[ruby/reline] Remove unused using methodima1zumi
follow #347 https://github.com/ruby/reline/commit/37453a83a3
2021-09-13[ruby/reline] Use expanded method definitions instead of refinementsaycabta
@jhawthorn said, "this will make Ruby's integer comparisons slower globally." It looks like "binding.irb" is going to cause serious problems in Rails applications. https://github.com/ruby/reline/commit/ee8d6c6a82
2021-09-06[ruby/reline] No need to use max_by when array.size == 1aycabta
https://github.com/ruby/reline/commit/7e56c8af05
2021-09-06[ruby/reline] Use sort.last instead of sort.reverse.firstaycabta
https://github.com/ruby/reline/commit/67f1d8d2d2
2021-09-06[ruby/reline] Allow Reline::KeyStroke to compare raw and meta-key processed ↵aycabta
key sequences https://github.com/ruby/reline/commit/731103f9c9
2020-08-18[ruby/reline] Use single quotes for non-expanded string literalsaycabta
https://github.com/ruby/reline/commit/3bf7c7d722
2019-11-08Suppress "shadowing outer local variable" warning in 2.5aycabta
2019-06-05Move I/O access from Reline::KeyStroke to Relineaycabta
2019-06-01Use inputrc data for keystroke settingaycabta
2019-05-25Fix wrong variable nameaycabta
2019-05-25Add round-robin variableaycabta
2019-05-24Support Meta key in Relineaycabta
2019-05-13Implement Reline's class methods for compatibilityaycabta
- insert_text - redisplay - line_buffer - point - point= - vi_editing_mode - emacs_editing_mode - vi_editing_mode? - emacs_editing_mode? - get_screen_size
2019-04-30Add Reline as a fallback library for Readlineaycabta
* lib/reine.rb, lib/reline/*: Reline is a readline stdlib compatible library. * lib/readline.rb: Readline uses a fallback to Reline when ext/readline doesn't exist. * tool/sync_default_gems.rb: add ruby/reline as a default gem. * appveyor.yml: add "set RELINE_TEST_ENCODING=Windows-31J" for test suit of Reline, and add "--exclude readline" to "nmake test-all" on Visual Studio builds because of strange behavior. * spec/ruby/library/readline/spec_helper.rb: skip Reline as with RbReadline.
2019-04-23Revert "IRB is improved with Reline and RDoc, take 2"Nobuyoshi Nakada
Accidentally merged when 89271d4a3733bc5e70e9c56b4bd12f277e699c42 "Adjusted indents".
2019-04-23IRB is improved with Reline and RDoc, take 2aycabta
2019-04-21Revert "IRB is improved with Reline and RDoc"aycabta
This reverts commit 7f273ac6d0f05208b5b228da95205e20c0e8286c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-20IRB is improved with Reline and RDocaycabta
Reline is a readline stdlib compatible library. It also supports multiline input. IRB is improved with Reline and supports multiline. Besides, supports showing documents when completed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e