summaryrefslogtreecommitdiff
path: root/lib/reline
AgeCommit message (Collapse)Author
2021-06-25[ruby/reline] Fix missing require.Samuel Williams
https://github.com/ruby/reline/commit/010b28dfe9
2021-06-25[ruby/reline] Avoid using blocking `IO.select`.Samuel Williams
https://github.com/ruby/reline/commit/de94746393
2021-06-21Rescue conversion error of inputrcaycabta
2021-06-21Check Ruby version to use Fiddle with variadic args in test-allaycabta
2021-06-21[ruby/reline] Version 0.2.6aycabta
https://github.com/ruby/reline/commit/5917e3a337
2021-06-21[ruby/reline] Remove FIXME comment in #renderaycabta
https://github.com/ruby/reline/commit/acd8f8efbb
2021-06-21[ruby/reline] Remove TODO comment in #render_partialaycabta
https://github.com/ruby/reline/commit/bb6ea232c2
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] Check existance of a constant, Fiddle::VERSIONaycabta
https://github.com/ruby/reline/commit/4b74c3d83a
2021-06-21[ruby/reline] Add Meta+arrow-keys in extended entries of terminfoaycabta
https://github.com/ruby/reline/commit/af6f6ed088
2021-06-21[ruby/reline] Terminfo.tigetstr should be able to receive tiparm in method chainaycabta
https://github.com/ruby/reline/commit/4a3e308163
2021-06-21[ruby/reline] Terminfo.tigetstr and tiparm should return String objectaycabta
https://github.com/ruby/reline/commit/1e287d10cc
2021-06-21[ruby/reline] Add terminfo supportaycabta
https://github.com/ruby/reline/commit/74a7ffaa2f
2021-06-21[ruby/reline] Handle Errno::ENOTTY correctlyaycabta
https://github.com/ruby/reline/commit/8daa392ba6
2021-06-21[ruby/reline] Fix Reline::Unicode.calculate_width when input is not a TTYJeremy Evans
This fixes an error when output is redirected: ``` $ run_ruby -rreline -e '$stderr.puts Reline::Unicode.calculate_width("\u221a").inspect' </dev/null >/dev/null /home/jeremy/tmp/ruby/lib/reline/ansi.rb:189:in `raw': Operation not supported by device (Errno::ENODEV) ``` The @@encoding -> defined?(@@encoding) changes is necessary because without that part of the commit, the following error would be raised by the above command: ``` /home/jeremy/tmp/reline/lib/reline/general_io.rb:10:in `encoding': uninitialized class variable @@encoding in Reline::GeneralIO (NameError) ``` Problem reported and initial patch for Windows provided by Richard Sharman. I tested this only on OpenBSD, but hopefully it works for other operating systems. Fixes [Bug #17493] https://github.com/ruby/reline/commit/c001971bb3
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] The config file must accept any character encodingaycabta
In Japan, so many programmers used EUC-JP to write text files that contain Japanese. Many .inputrc files which contain EUC-JP are still being copied and used. This commit supports the whole encoding of what user set including UTF-8. ref. https://github.com/ruby/reline/pull/280 https://github.com/ruby/reline/commit/0b45022e16
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-06-21[ruby/reline] ensure reline's encoding is used when reading inputrc ↵Mark Delk
character values This change ensures we use `Reline::IOGate`'s `encoding` when converting characters from their integer values. This fixes an issue that may occur if you have UTF characters in your `.inputrc`, but your default encoding isn't set. For example: ``` > 127864.ord.chr RangeError: 127864 out of char range from (pry):1:in `chr' > Reline::IOGate.encoding => #<Encoding:UTF-8> > 127864.ord.chr(Reline::IOGate.encoding) => "🍸" ``` https://github.com/ruby/reline/commit/cf372fc0fc
2021-04-09[ruby/reline] Add calling Reline::Config#reset_default_key_bindings to ↵aycabta
#reset, which is forgot to call
2021-04-08[ruby/reline] Moved development dependencies to GemfileNobuyoshi Nakada
As expressions in a gemspec file are evaluated at the build time, but not the run time, the conditional in the gemspec will not work as intended. https://github.com/ruby/reline/commit/c09b7c454a
2021-04-08[ruby/reline] Separate keystrokes each editing modeaycabta
https://github.com/ruby/reline/commit/ee23e6f3f8
2021-04-08[ruby/reline] Check WITH_VTERM env to add vterm gem as dependencyaycabta
https://github.com/ruby/reline/commit/27b689a7e2
2021-04-03[ruby/reline] Use vterm 0.0.5 or newer on Unix like OSes because suppresses SEGVaycabta
https://github.com/ruby/reline/commit/7562cf3b5f
2021-04-03[ruby/reline] Version 0.2.5aycabta
https://github.com/ruby/reline/commit/22ce5651e5
2021-04-02[ruby/reline] Reset @rest_height when clear screenaycabta
https://github.com/ruby/reline/commit/3a7019b0d5
2021-03-24[ruby/reline] Suppress crashing when completer_{quote,word_break}_characters ↵aycabta
is empty https://github.com/ruby/reline/commit/c6f1164942
2021-03-24[ruby/reline] Support preposing and postposing for Reline.completion_procaycabta
https://github.com/ruby/reline/commit/1f469de90c
2021-03-24[ruby/reline] Reline.delete_text removes the current line in multilineaycabta
https://github.com/ruby/reline/commit/da90c094a1
2021-02-26[ruby/reline] Version 0.2.4aycabta
https://github.com/ruby/reline/commit/462f971bd3
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] Use UTF-8 only for width calc, rest uses original encodingaycabta
I confirmed that libvterm supports only which are UTF-8, US ASCII, UK, and DEC graphics by reading source code, so can't test this patch by yamatanoorogi gem through vterm gem for now. This fixes ruby/irb#190. https://github.com/ruby/reline/commit/44596c0cc7
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-02-21[ruby/reline] We still need support new and legacy behavior.Yoshinao Muramatu
Revert "Support for change in Windows-specific behavior at eol" This reverts commit cad4de6ee841b43f3f0e441626f9415c3eda0f82. https://github.com/ruby/reline/commit/646587fc2c
2021-02-21[ruby/reline] Avoid tripping over nil promptEamonn Webster
https://github.com/ruby/reline/commit/d4d9d3e3d4
2021-02-21[ruby/reline] Return 1 when char width not foundaycabta
This fixes ruby/reline#261. https://github.com/ruby/reline/commit/3cf1213014
2021-02-07[ruby/reline] Version 0.2.3aycabta
https://github.com/ruby/reline/commit/b26c7d60c8
2021-02-07[ruby/reline] Terminate correctly in the middle of lines higher than the screenaycabta
https://github.com/ruby/reline/commit/e1d9240ada
2021-02-07[ruby/reline] Autowrap correctly when inserting chars in the middle of a lineaycabta
https://github.com/ruby/reline/commit/ebaf37255f
2021-02-07[ruby/reline] The vi_histedit supports multilineaycabta
This closes ruby/reline#253. https://github.com/ruby/reline/commit/f131f86d71
2021-02-07[ruby/reline] Move cursor just after the last line when finishedaycabta
https://github.com/ruby/reline/commit/ba06e4c480
2021-02-07[ruby/reline] Update cursor info by inserting newline even if not in pastingaycabta
https://github.com/ruby/reline/commit/92d314f514
2021-02-07[ruby/reline] Handle past logs correctly when the code is higher than the screenaycabta
https://github.com/ruby/reline/commit/f197139b4a
2021-02-07[ruby/reline] Show all lines higher than the screen when finishedaycabta
On Unix-like OSes, logs prior to the screen are not editable. When the code is higher than the screen, the code is only shown on the screen until input is finished, but when it is finished, all lines are outputted. https://github.com/ruby/reline/commit/8cd9132a39
2021-02-07[ruby/reline] Scroll down when ^C is pressedaycabta
https://github.com/ruby/reline/commit/6877a7e3f5
2021-02-07[ruby/reline] Remove an unused variableaycabta
https://github.com/ruby/reline/commit/123ea51166
2021-02-07[ruby/reline] Initialize uninitialized variables in testsaycabta
https://github.com/ruby/reline/commit/25af4bb64b
2021-02-07[ruby/reline] Cache pasting state in processing a keyaycabta
Because it's too slow. The rendering time in IRB has been reduced as follows: start = Time.now def each_top_level_statement initialize_input catch(:TERM_INPUT) do loop do begin prompt unless l = lex throw :TERM_INPUT if @line == '' else @line_no += l.count("\n") next if l == "\n" @line.concat l if @code_block_open or @ltype or @continue or @indent > 0 next end end if @line != "\n" @line.force_encoding(@io.encoding) yield @line, @exp_line_no end break if @io.eof? @line = '' @exp_line_no = @line_no @indent = 0 rescue TerminateLineInput initialize_input prompt end end end end puts "Duration: #{Time.now - start} seconds" 0.22sec -> 0.14sec https://github.com/ruby/reline/commit/b8b3dd52c0
2021-01-18[ruby/irb] [ruby/irb] [ruby/reline] Version 0.2.2aycabta
https://github.com/ruby/reline/commit/dfb710946f https://github.com/ruby/irb/commit/1a1cdf9628 https://github.com/ruby/irb/commit/fe99faf8bd