2
# old-fashioned 'shl' like program
21
system "stty -echo raw"
36
system "stty echo -raw"
40
$reader = Thread.new {
64
$shells[$n_shells] = PTY.spawn("/bin/csh")
65
$r_pty,$w_pty = $shells[$n_shells]
70
$shells[$n_shells] = nil
74
unless $shells[i].nil?
81
print "\##{i} doesn't exist\n"
83
$r_pty,$w_pty = $shells[n]
85
if writer == 'Exit' then