summaryrefslogtreecommitdiff
path: root/ext/pty
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-11 15:58:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-11 15:58:40 +0000
commit57b87a00f8027d230d845e0dbd08432d9aa1aae6 (patch)
treee0149d4cfbe9248c8c9cfaa7ef1c8c3ec5a760b3 /ext/pty
parent13e15287cb565afc55082d5973fec43c22ab8730 (diff)
[DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty')
-rw-r--r--ext/pty/pty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 29cc689380..9260194f35 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -503,6 +503,14 @@ pty_close_pty(VALUE assoc)
* +slave_file+:: the slave of the pty, as a File. The path to the
* terminal device is available via +slave_file.path+
*
+ * IO#raw! is usable to disable newline conversions:
+ *
+ * require 'io/console'
+ * PTY.open {|m, s|
+ * s.raw!
+ * ...
+ * }
+ *
*/
static VALUE
pty_open(VALUE klass)