@@ -360,9 +360,9 @@ ttymode_with_io(VALUE io, VALUE (*func)(VALUE, VALUE), VALUE farg, void (*setter
360
360
361
361
/*
362
362
* call-seq:
363
- * io.raw(min: nil, time: nil) {|io| }
363
+ * io.raw(min: nil, time: nil, intr: nil ) {|io| }
364
364
*
365
- * Yields +self+ within raw mode.
365
+ * Yields +self+ within raw mode, and returns the result of the block .
366
366
*
367
367
* STDIN.raw(&:gets)
368
368
*
@@ -374,6 +374,9 @@ ttymode_with_io(VALUE io, VALUE (*func)(VALUE, VALUE), VALUE farg, void (*setter
374
374
* The parameter +time+ specifies the timeout in _seconds_ with a
375
375
* precision of 1/10 of a second. (default: 0)
376
376
*
377
+ * If the parameter +intr+ is +true+, enables break, interrupt, quit,
378
+ * and suspend special characters.
379
+ *
377
380
* Refer to the manual page of termios for further details.
378
381
*
379
382
* You must require 'io/console' to use this method.
@@ -387,11 +390,11 @@ console_raw(int argc, VALUE *argv, VALUE io)
387
390
388
391
/*
389
392
* call-seq:
390
- * io.raw!(min: nil, time: nil)
393
+ * io.raw!(min: nil, time: nil, intr: nil) -> io
391
394
*
392
- * Enables raw mode.
395
+ * Enables raw mode, and returns +io+ .
393
396
*
394
- * If the terminal mode needs to be back, use io.raw { ... }.
397
+ * If the terminal mode needs to be back, use <code> io.raw { ... }</code> .
395
398
*
396
399
* See IO#raw for details on the parameters.
397
400
*
@@ -487,7 +490,7 @@ nogvl_getch(void *p)
487
490
488
491
/*
489
492
* call-seq:
490
- * io.getch(min: nil, time: nil) -> char
493
+ * io.getch(min: nil, time: nil, intr: nil) -> char
491
494
*
492
495
* Reads and returns a character in raw mode.
493
496
*
@@ -1494,7 +1497,7 @@ console_dev(int argc, VALUE *argv, VALUE klass)
1494
1497
1495
1498
/*
1496
1499
* call-seq:
1497
- * io.getch(min: nil, time: nil) -> char
1500
+ * io.getch(min: nil, time: nil, intr: nil) -> char
1498
1501
*
1499
1502
* See IO#getch.
1500
1503
*/
0 commit comments