aboutsummaryrefslogtreecommitdiffstats
path: root/ext/io/console
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/io-console] Refined getch warningsNobuyoshi Nakada2020-10-111-3/+3
| | | | https://github.com/ruby/io-console/commit/f84e6abcce
* [ruby/io-console] Relaxed min: option warningNobuyoshi Nakada2020-10-111-1/+7
| | | | | | | | 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
* [ruby/io-console] Fix timeout type error (#18)Nobuyoshi Nakada2020-10-111-1/+1
| | | | | | | | | | | | | | | | | 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
* [ruby/io-console] Fixed "Rework console to use `rb_io_wait`."Nobuyoshi Nakada2020-10-112-30/+53
| | | | | | | * Fixed backward compatibility. * Added missing `rb_scheduler_timeout` declaration. https://github.com/ruby/io-console/commit/813806079f
* Rework console to use `rb_io_wait`.Samuel Williams2020-09-141-29/+29
|
* sed -i '/rmodule.h/d'卜部昌平2020-08-271-1/+0
|
* sed -i '/r_cast.h/d'卜部昌平2020-08-271-1/+0
|
* sed -i '\,2/extern.h,d'卜部昌平2020-08-271-1/+0
|
* Update the license for the default gems to dual licensesHiroshi SHIBATA2020-08-181-1/+1
|
* Gem::Specification#date is set automatically by RubyGems.org.Hiroshi SHIBATA2020-06-111-2/+0
|
* sed -i 's|ruby/impl|ruby/internal|'卜部昌平2020-05-111-140/+140
| | | | To fix build failures.
* sed -i s|ruby/3|ruby/impl|g卜部昌平2020-05-111-140/+140
| | | | This shall fix compile errors.
* [ruby/io-console] Use sys_fail_fptr macroNobuyoshi Nakada2020-05-091-1/+1
| | | | https://github.com/ruby/io-console/commit/2b8ba023c8
* [ruby/io-console] Show path name at errorNobuyoshi Nakada2020-05-091-17/+19
| | | | https://github.com/ruby/io-console/commit/6a4b1c1a6d
* Merge pull request #2991 from shyouhei/ruby.h卜部昌平2020-04-081-0/+152
| | | Split ruby.h
* [ruby/io-console] bump up to 0.5.6Nobuyoshi Nakada2020-02-181-1/+1
|
* [ruby/io-console] Just ignore the extension on other than CRubyNobuyoshi Nakada2020-02-181-3/+6
| | | | https://github.com/ruby/io-console/commit/41b6f09574
* [ruby/io-console] [DOC] Improved about `intr:`Nobuyoshi Nakada2020-02-171-7/+10
| | | | https://github.com/ruby/io-console/commit/82b630cd79
* [ruby/io-console] Prefer keyword argumentsNobuyoshi Nakada2020-02-141-0/+4
| | | | https://github.com/ruby/io-console/commit/5facbfc4c8
* [ruby/io-console] bump up to 0.5.5Nobuyoshi Nakada2020-01-181-1/+1
|
* [ruby/io-console] Set `OPOST` when `intr` is trueNobuyoshi Nakada2020-01-181-0/+1
| | | | | | | | | 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
* [ruby/io-console] Update the minimum requirement of Ruby versionHiroshi SHIBATA2020-01-181-1/+1
| | | | https://github.com/ruby/io-console/commit/73e7b6318a
* [ruby/io-console] bump up to 0.5.4Nobuyoshi Nakada2019-12-301-1/+1
|
* [ruby/io-console] Enable only interrupt bits on `intr: true`Nobuyoshi Nakada2019-12-291-1/+1
| | | | https://github.com/ruby/io-console/commit/baaf929041
* [ruby/io-console] bump up to 0.5.3Nobuyoshi Nakada2019-12-221-1/+1
|
* [ruby/io-console] Set raw mode strictly same as cfmakerawNobuyoshi Nakada2019-12-181-2/+4
| | | | | | | | | | * 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
* [ruby/io-console] bump up to 0.5.2Nobuyoshi Nakada2019-12-171-1/+1
|
* [ruby/io-console] Use TCSANOW to prevent from discarding the input bufferYusuke Endoh2019-12-171-1/+1
| | | | | | | | 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
* [ruby/io-console] Disable implementation-defined special control charactersNobuyoshi Nakada2019-12-171-1/+1
| | | | | | In raw mode with interrupt enabled. https://github.com/ruby/io-console/commit/e9e8e3ff17
* [ruby/io-console] Removed dead codeNobuyoshi Nakada2019-12-171-1/+0
| | | | https://github.com/ruby/io-console/commit/a49462ed97
* [ruby/io-console] update depend for f9c0fe77c0eNobuyoshi Nakada2019-12-101-0/+1
|
* [ruby/io-console] bump up to 0.5.1Nobuyoshi Nakada2019-12-101-1/+1
|
* [ruby/io-console] Suppress an unused-variable warningNobuyoshi Nakada2019-12-101-0/+1
| | | | https://github.com/ruby/io-console/commit/ae5c72e481
* [ruby/io-console] Use rb_thread_call_without_gvl instead of the deprecated ↵Nobuyoshi Nakada2019-12-101-3/+4
| | | | | | function https://github.com/ruby/io-console/commit/21338ab287
* [ruby/io-console] Warn vtime option without intr flagNobuyoshi Nakada2019-12-101-0/+3
| | | | https://github.com/ruby/io-console/commit/499ff3de48
* [ruby/io-console] bump up to 0.5.0Nobuyoshi Nakada2019-12-101-1/+1
|
* [ruby/io-console] Fixed `intr: false` mode on WindowsNobuyoshi Nakada2019-12-041-12/+41
| | | | https://github.com/ruby/io-console/commit/4c172c01aa
* [ruby/io-console] Remove taint supportJeremy Evans2019-11-181-1/+0
| | | | | | 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.
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-181-0/+1
| | | | | | 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.
* Warn on access/modify of $SAFE, and remove effects of modifying $SAFEJeremy Evans2019-11-181-1/+0
| | | | | | | | | | | | | | | | | 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.
* [ruby/io-console] Defer creating VT query stringNobuyoshi Nakada2019-09-261-9/+23
| | | | https://github.com/ruby/io-console/commit/3d69c577a4
* [ruby/io-console] Added IO#console_modeNobuyoshi Nakada2019-09-261-0/+122
| | | | https://github.com/ruby/io-console/commit/77ed8d5a06
* Do not use of non-standard escape character '\e'Kazuhiro NISHIYAMA2019-09-251-1/+1
|
* [ruby/io-console] Made cursor position 0-originNobuyoshi Nakada2019-09-241-2/+7
| | | | https://github.com/ruby/io-console/commit/9377e37295
* [ruby/io-console] Made cursor position consistent with `winsize`Nobuyoshi Nakada2019-09-241-11/+9
| | | | | | | To be consistent with `winsize`, changed the cursor position format from `[x, y]` to `[row, column]`. https://github.com/ruby/io-console/commit/d1f5ae9286
* [ruby/io-console] Try fallback to stdout when stdinNobuyoshi Nakada2019-09-231-0/+4
| | | | https://github.com/ruby/io-console/commit/b8017509ef
* [ruby/io-console] Try to write DSR query to writable IONobuyoshi Nakada2019-09-231-2/+21
| | | | https://github.com/ruby/io-console/commit/a54b6e4dd1
* [ruby/io-console] Added `intr:` option to IO#rawNobuyoshi Nakada2019-09-141-1/+24
| | | | | | Enters raw-mode but enable interrupts. https://github.com/ruby/io-console/commit/7cba76561a
* [ruby/io-console] Suppress yet another warning on WindowsNobuyoshi Nakada2019-09-101-1/+1
| | | | https://github.com/ruby/io-console/commit/4e17c90788
* [ruby/io-console] Suppress warnings on WindowsNobuyoshi Nakada2019-09-101-3/+4
| | | | | | About unused variables and a function. https://github.com/ruby/io-console/commit/32baf54e7a