summaryrefslogtreecommitdiff
path: root/ext/io
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-05 04:27:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-05 04:27:57 +0000
commit490f1fc00979b6fb2cd45bf01544e79e9d9ea66c (patch)
treef55d37a2222c63a004f36aabc5d72ffad0cf9a63 /ext/io
parente29e4b55ab79bd18550b11ce7d9cf94deca365be (diff)
console.c: default by stty raw
* ext/io/console/console.c (rawmode_opt): use default values by `stty raw`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io')
-rw-r--r--ext/io/console/console.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index f614c68a26..cab8207ce7 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -105,7 +105,8 @@ rawmode_opt(int argc, VALUE *argv, rawmode_arg_t *opts)
if (!NIL_P(vopts)) {
VALUE vmin = rb_hash_aref(vopts, ID2SYM(rb_intern("min")));
VALUE vtime = rb_hash_aref(vopts, ID2SYM(rb_intern("time")));
- opts->vmin = 0;
+ /* default values by `stty raw` */
+ opts->vmin = 1;
opts->vtime = 0;
if (!NIL_P(vmin)) {
opts->vmin = NUM2INT(vmin);