summaryrefslogtreecommitdiff
path: root/lib/reline/terminfo.rb
AgeCommit message (Collapse)Author
2024-11-14[ruby/reline] Drop loading terminfo, remove fiddle dependency intomoya ishida
non-windows environment. (https://github.com/ruby/reline/pull/769) Reline works perfectly in most major terminal emulators without terminfo. In minor/old terminal emulator, we used to get key bindings from terminfo, but I think it is not used so much. https://github.com/ruby/reline/commit/3ceba3bff7
2024-07-29[ruby/reline] Fix memory leak in setuptermPeter Zhu
(https://github.com/ruby/reline/pull/733) The allocated Fiddle::Pointer never gets freed because it doesn't have a free function defined for when it gets garbage collected. This commit changes it to use the default free function. https://github.com/ruby/reline/commit/0796dcd497
2024-06-10[ruby/reline] Suppress warning(Ruby 3.4) requiring fiddle fromtomoya ishida
terminfo.rb (https://github.com/ruby/reline/pull/721) https://github.com/ruby/reline/commit/9da2cbcd82
2024-04-06[ruby/reline] Continue processing even if terminfo database couldn'tMari Imaizumi
be found (https://github.com/ruby/reline/pull/673) Fix https://github.com/ruby/reline/issues/447 https://github.com/ruby/reline/issues/543 This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo. It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received. Reline should not abort the process because of missing Terminfo. Reline proceeds with `Reline::Terminfo.enabled? == false` when fiddle or curses cannot be loaded. And does the same when Terminfo is present but TERM is not. https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160 You can check the operation with `TERM=foo bundle exec bin/console`. https://github.com/ruby/reline/commit/4ce247ce2b
2023-06-02[ruby/reline] Remove unnecessary conditions forNobuyoshi Nakada
`Fiddle::TYPE_VARIADIC` (https://github.com/ruby/reline/pull/547) https://github.com/ruby/reline/commit/71ba3a9432
2022-06-13[ruby/reline] Revert "Merge pull request #441 from ↵st0012
nevans/workaround-linker-script-so" This reverts commit https://github.com/ruby/reline/commit/4ccf128ffa18, reversing changes made to https://github.com/ruby/reline/commit/a2651419e9a0. https://github.com/ruby/reline/commit/51053138a4
2022-05-25[ruby/reline] Workaround libncurses.so as a linker scriptnicholas a. evans
This maybe isn't probably isn't the best approach, but it will allow `Fiddle::Terminfo.curses_dl` to work. I documented more details about this in an issue on fiddle: https://github.com/ruby/fiddle/issues/107 It is probably better to deal with it there. But this is workaround is simpler. FYI: `reline` itself seems to be working just fine for me _without_ loading ncurses. But I wanted to be able to use `Reline::Terminfo` for my own projects. :) https://github.com/ruby/reline/commit/fd4bdb35e2
2022-01-24[ruby/reline] Ignore global constants when checking if Fiddle::VERSION existsPostmodern
If a top-level `VERSION` constant exists, or if a module containing a `VERSION` constant is included into the top-level scope, then `Fiddle.const_defined?(:VERSION)` will erroneously return true when `RUBY_VERSION < 3.0.0`. https://github.com/ruby/reline/commit/8529c8e47a
2022-01-08[ruby/reline] Fix reline on SolarisPeter Zhu
Solaris requires that the pointer errret_int is alined to an integer, however, with VWA, strings are no longer aligned to an integer, so use a Fiddle::Pointer with a malloc'd region instead. https://github.com/ruby/reline/commit/5fcd89ab0c
2022-01-02[ruby/reline] Check capname of tigetstr/tigetflag/tigetnumaycabta
Incorrect arguments can cause SEGV. https://github.com/ruby/reline/commit/a58748bcf9
2022-01-02[ruby/reline] Implement Reline::Terminfo.tigetnumaycabta
https://github.com/ruby/reline/commit/695212d5d2
2022-01-02[ruby/reline] Fix the difinition of tigetflag() in comment...aycabta
https://github.com/ruby/reline/commit/af4d77ba09
2022-01-01[ruby/reline] Remove unnecessary qualifiers on definition of commentsaycabta
https://github.com/ruby/reline/commit/abc1e4ee88
2022-01-01[ruby/reline] Implement Reline::Terminfo.tigetflagaycabta
https://github.com/ruby/reline/commit/0451ed7a28
2021-10-11[ruby/reline] Rescue LoadError to require 'fiddle'aycabta
https://github.com/ruby/reline/commit/fe504bb6b9
2021-09-22[ruby/reline] Use `unpack1` instead of `unpack(template)[0]`Kazuhiro NISHIYAMA
https://github.com/ruby/reline/commit/45aa367616
2021-08-06Check the result of tigetstrNobuyoshi Nakada
2021-08-06Fix caching of curses_dlNobuyoshi Nakada
2021-08-06Fix the result of checking the existence of constants being reversedaycabta
2021-07-30[ruby/reline] Support Terminfo on Cygwin and macOSaycabta
https://github.com/ruby/reline/commit/b0b75fcd27
2021-07-30[ruby/reline] Don't check the existence of Terminfo on Windowsaycabta
https://github.com/ruby/reline/commit/320f09055c
2021-07-30[ruby/reline] Check TYPE_VARIADICaycabta
https://github.com/ruby/reline/commit/8e62e46e33
2021-07-30[ruby/reline] Define StringWithTiparm instead of singular methodaycabta
https://github.com/ruby/reline/commit/de234dc875
2021-07-30[ruby/reline] Add original C function declarations comment for each functionaycabta
https://github.com/ruby/reline/commit/9a25ee9f12
2021-07-30[ruby/reline] Fix reline on OpenBSDJeremy Evans
OpenBSD doesn't support tiparm, only tparm. I'm not sure if the two are compatible, but this at least this allows me to run irb on OpenBSD. https://github.com/ruby/reline/commit/0ce2b34e2b
2021-07-30[ruby/reline] Add TODO comment to implement tigetflag() and tigetnum()aycabta
https://github.com/ruby/reline/commit/a0d946a398
2021-06-21Check Ruby version to use Fiddle with variadic args in test-allaycabta
2021-06-21[ruby/reline] Check existance of a constant, Fiddle::VERSIONaycabta
https://github.com/ruby/reline/commit/4b74c3d83a
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