| Age | Commit message (Collapse) | Author |
|
f27eb8148f5a72bbacfebfecc7de9305471bb5c9,d75f7078c831d45ab5ba2fae4fbb308d01a21e46,d5836db1b398a7936b0461b3011db66f6cc8c490: [Backport #18443]
Sync io-console gem.
---
ext/io/console/console.c | 8 ++++++--
test/io/console/test_io_console.rb | 8 ++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
[ruby/io-console] bump up to 0.5.11
https://github.com/ruby/io-console/commit/ad3805200c
---
ext/io/console/io-console.gemspec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Fix `Leaked file descriptor: TestIO_Console#test_console_kw`
```
Leaked file descriptor: TestIO_Console#test_console_kw: 10 : #<File:/dev/tty>
```
---
test/io/console/test_io_console.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
This reverts commit aa3b2c81c8de2e70bd100e92436f15c03523eaf7.
|
|
|
|
* Prefer to use RTEST when checking result of `rb_io_wait`.
* Consistently use false for signifying no events ready.
Notes:
Merged-By: ioquatix <samuel@codeotaku.com>
|
|
|
|
* Rename `rb_scheduler` to `rb_fiber_scheduler`.
* Use public interface if available.
* Use `rb_check_funcall` where possible.
* Don't use `unblock` unless the fiber was non-blocking.
Notes:
Merged-By: ioquatix <samuel@codeotaku.com>
|
|
https://github.com/ruby/io-console/commit/720be0a3e5
|
|
https://github.com/ruby/io-console/commit/028e1c9497
|
|
https://github.com/ruby/io-console/commit/09e5ccc729
|
|
IO#getpass uses String#chomp! on the read input line.
https://github.com/ruby/io-console/commit/1e98c93bc8
|
|
https://github.com/ruby/io-console/commit/f84e6abcce
|
|
When `min: 0` is given to `IO#getch` with `time:` option, it is
expected to return nil if timed out, and needed for source code
the compatibility with unixen platforms.
https://github.com/ruby/io-console/commit/a2afbe72bd
|
|
Fixed TypeError when IO#getch timed out
`rb_io_wait` returns a bit-flags Integer representing available
events, or Qfalse if timed out. Also the result of `NUM2INT` is
not a `VALUE`.
```
$ ./bin/ruby -v -rio/console -e "p IO.console.getch(intr: true, time: 0.1)"
ruby 3.0.0dev (2020-10-09T20:27:30Z master 5ea2ea74cc) [x64-mingw32]
-e:1:in `getch': no implicit conversion of false into Integer (TypeError)
from -e:1:in `<main>'
```
https://github.com/ruby/io-console/commit/3bdfaf62df
|
|
* Fixed backward compatibility.
* Added missing `rb_scheduler_timeout` declaration.
https://github.com/ruby/io-console/commit/813806079f
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3434
|
|
https://github.com/ruby/io-console/commit/2b8ba023c8
|
|
https://github.com/ruby/io-console/commit/6a4b1c1a6d
|
|
https://github.com/ruby/io-console/commit/82b630cd79
|
|
https://github.com/ruby/io-console/commit/5facbfc4c8
|
|
To enable implementation-defined output processing, for the
compatibility with readline. [Bug #16509]
https://bugs.ruby-lang.org/issues/16509
https://github.com/ruby/io-console/commit/8c8b0b6757
|
|
https://github.com/ruby/io-console/commit/baaf929041
|
|
* Default VMIN and VTIME to minimum input.
* Disable parity check bits explicitly.
* Disable all bits for flow control on input.
Co-Authored-By: NARUSE, Yui <naruse@airemix.jp>
https://github.com/ruby/io-console/commit/5ce201a686
|
|
TCSAFLUSH discards the buffer read before the mode change, which makes
IRB ignore the buffer input immediately after invoked. TCSANOW
preserves the buffer.
https://github.com/ruby/io-console/commit/b362920182
|
|
In raw mode with interrupt enabled.
https://github.com/ruby/io-console/commit/e9e8e3ff17
|
|
https://github.com/ruby/io-console/commit/a49462ed97
|
|
https://github.com/ruby/io-console/commit/ae5c72e481
|
|
function
https://github.com/ruby/io-console/commit/21338ab287
|
|
https://github.com/ruby/io-console/commit/499ff3de48
|
|
https://github.com/ruby/io-console/commit/4c172c01aa
|
|
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.
Notes:
Merged: https://github.com/ruby/ruby/pull/2476
|
|
This removes the related tests, and puts the related specs behind
version guards. This affects all code in lib, including some
libraries that may want to support older versions of Ruby.
Notes:
Merged: https://github.com/ruby/ruby/pull/2476
|
|
This removes the security features added by $SAFE = 1, and warns for access
or modification of $SAFE from Ruby-level, as well as warning when calling
all public C functions related to $SAFE.
This modifies some internal functions that took a safe level argument
to no longer take the argument.
rb_require_safe now warns, rb_require_string has been added as a
version that takes a VALUE and does not warn.
One public C function that still takes a safe level argument and that
this doesn't warn for is rb_eval_cmd. We may want to consider
adding an alternative method that does not take a safe level argument,
and warn for rb_eval_cmd.
Notes:
Merged: https://github.com/ruby/ruby/pull/2476
|
|
https://github.com/ruby/io-console/commit/3d69c577a4
|
|
https://github.com/ruby/io-console/commit/77ed8d5a06
|
|
|
|
https://github.com/ruby/io-console/commit/9377e37295
|
|
To be consistent with `winsize`, changed the cursor position
format from `[x, y]` to `[row, column]`.
https://github.com/ruby/io-console/commit/d1f5ae9286
|
|
https://github.com/ruby/io-console/commit/b8017509ef
|
|
https://github.com/ruby/io-console/commit/a54b6e4dd1
|
|
Enters raw-mode but enable interrupts.
https://github.com/ruby/io-console/commit/7cba76561a
Notes:
Merged: https://github.com/ruby/ruby/pull/2459
|
|
https://github.com/ruby/io-console/commit/4e17c90788
|
|
About unused variables and a function.
https://github.com/ruby/io-console/commit/32baf54e7a
|
|
https://github.com/ruby/io-console/commit/ee648fa8bb
Notes:
Merged: https://github.com/ruby/ruby/pull/2440
|
|
https://github.com/ruby/io-console/commit/83e70de8ab
Notes:
Merged: https://github.com/ruby/ruby/pull/2440
|
|
https://github.com/ruby/io-console/commit/e6344108a1
Notes:
Merged: https://github.com/ruby/ruby/pull/2440
|
|
https://github.com/ruby/io-console/commit/143a9d5764
Notes:
Merged: https://github.com/ruby/ruby/pull/2440
|
|
https://github.com/ruby/io-console/commit/21d340e4a2
Notes:
Merged: https://github.com/ruby/ruby/pull/2440
|
|
https://github.com/ruby/io-console/commit/7f2b1b473d
Notes:
Merged: https://github.com/ruby/ruby/pull/2440
|
|
https://github.com/ruby/io-console/commit/41a6a6cace
Notes:
Merged: https://github.com/ruby/ruby/pull/2440
|
|
A function to query console info.
https://github.com/ruby/io-console/commit/db75a07fa3
Notes:
Merged: https://github.com/ruby/ruby/pull/2440
|