Nobuyoshi Nakada
e38fb050fa
[ruby/reline] Remove unnecessary conditions for
...
`Fiddle::TYPE_VARIADIC`
(https://github.com/ruby/reline/pull/547 )
https://github.com/ruby/reline/commit/71ba3a9432
2023-06-02 12:18:06 +00:00
st0012
b1397e96da
[ruby/reline] Revert "Merge pull request #441 from 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-06-13 19:33:15 +09:00
nicholas a. evans
d020334e9e
[ruby/reline] Workaround libncurses.so as a linker script
...
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-05-25 06:34:28 +09:00
Postmodern
c155445752
[ruby/reline] Ignore global constants when checking if Fiddle::VERSION exists
...
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-24 07:00:34 +09:00
Peter Zhu
09cfc653b7
[ruby/reline] Fix reline on Solaris
...
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-08 20:32:06 +09:00
aycabta
76181ae940
[ruby/reline] Check capname of tigetstr/tigetflag/tigetnum
...
Incorrect arguments can cause SEGV.
https://github.com/ruby/reline/commit/a58748bcf9
2022-01-02 11:44:07 +09:00
aycabta
85f304b931
[ruby/reline] Implement Reline::Terminfo.tigetnum
...
https://github.com/ruby/reline/commit/695212d5d2
2022-01-02 10:27:09 +09:00
aycabta
530586fafc
[ruby/reline] Fix the difinition of tigetflag() in comment...
...
https://github.com/ruby/reline/commit/af4d77ba09
2022-01-02 00:39:45 +09:00
aycabta
7deee741ab
[ruby/reline] Remove unnecessary qualifiers on definition of comments
...
https://github.com/ruby/reline/commit/abc1e4ee88
2022-01-01 23:12:07 +09:00
aycabta
6300c4dcc3
[ruby/reline] Implement Reline::Terminfo.tigetflag
...
https://github.com/ruby/reline/commit/0451ed7a28
2022-01-01 23:06:53 +09:00
aycabta
e212d051d0
[ruby/reline] Rescue LoadError to require 'fiddle'
...
https://github.com/ruby/reline/commit/fe504bb6b9
2021-10-11 21:34:31 +09:00
Kazuhiro NISHIYAMA
357406da8b
[ruby/reline] Use `unpack1` instead of `unpack(template)[0]`
...
https://github.com/ruby/reline/commit/45aa367616
2021-09-22 23:37:59 +09:00
Nobuyoshi Nakada
3e7fb4b91d
Check the result of tigetstr
2021-08-06 13:34:25 +09:00
Nobuyoshi Nakada
9bfb8ea671
Fix caching of curses_dl
2021-08-06 13:33:47 +09:00
aycabta
7bcbee37b5
Fix the result of checking the existence of constants being reversed
2021-08-06 02:51:10 +09:00
aycabta
1c9cb9da8f
[ruby/reline] Support Terminfo on Cygwin and macOS
...
https://github.com/ruby/reline/commit/b0b75fcd27
2021-07-30 02:27:02 +09:00
aycabta
f1b5cb7e5d
[ruby/reline] Don't check the existence of Terminfo on Windows
...
https://github.com/ruby/reline/commit/320f09055c
2021-07-30 02:27:02 +09:00
aycabta
b158b4666d
[ruby/reline] Check TYPE_VARIADIC
...
https://github.com/ruby/reline/commit/8e62e46e33
2021-07-30 02:27:02 +09:00
aycabta
0f496b9b29
[ruby/reline] Define StringWithTiparm instead of singular method
...
https://github.com/ruby/reline/commit/de234dc875
2021-07-30 02:27:02 +09:00
aycabta
51ee24e7f7
[ruby/reline] Add original C function declarations comment for each function
...
https://github.com/ruby/reline/commit/9a25ee9f12
2021-07-30 02:27:02 +09:00
Jeremy Evans
44a9337a46
[ruby/reline] Fix reline on OpenBSD
...
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 02:27:02 +09:00
aycabta
b0633ee4b3
[ruby/reline] Add TODO comment to implement tigetflag() and tigetnum()
...
https://github.com/ruby/reline/commit/a0d946a398
2021-07-30 02:27:02 +09:00
aycabta
30cc07fdc1
Check Ruby version to use Fiddle with variadic args in test-all
2021-06-21 18:44:10 +09:00
aycabta
582b5705ab
[ruby/reline] Check existance of a constant, Fiddle::VERSION
...
https://github.com/ruby/reline/commit/4b74c3d83a
2021-06-21 17:58:48 +09:00
aycabta
60d1d6aa89
[ruby/reline] Terminfo.tigetstr should be able to receive tiparm in method chain
...
https://github.com/ruby/reline/commit/4a3e308163
2021-06-21 17:58:48 +09:00
aycabta
5e09da2f7a
[ruby/reline] Terminfo.tigetstr and tiparm should return String object
...
https://github.com/ruby/reline/commit/1e287d10cc
2021-06-21 17:58:48 +09:00
aycabta
46c813969b
[ruby/reline] Add terminfo support
...
https://github.com/ruby/reline/commit/74a7ffaa2f
2021-06-21 17:58:48 +09:00