summaryrefslogtreecommitdiff
path: root/ext/pty
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-08-24 08:21:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-08-24 08:21:56 +0000
commita1b57d0add85a248666fb55c58aa8c0c772136fc (patch)
tree3d30e530b29103ce2884dff782592ddf7292f4df /ext/pty
parenta281c996689240dc204f0c534cfe21ee6cbb6863 (diff)
1.4.1 to be
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty')
-rw-r--r--ext/pty/script.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pty/script.rb b/ext/pty/script.rb
index 6aaafec061..3084935637 100644
--- a/ext/pty/script.rb
+++ b/ext/pty/script.rb
@@ -22,11 +22,11 @@ PTY.spawn("/bin/csh") do
begin
while true
- c = r_pty.getc
- next if c.nil?
- print c.chr
+ c = r_pty.sysread(512)
+ break if c.nil?
+ print c
STDOUT.flush
- logfile.print c.chr
+ logfile.print c
end
rescue
# print $@,':',$!,"\n"