27 lines
1010 B
Plaintext
27 lines
1010 B
Plaintext
|
#!/usr/bin/env ruby
|
||
|
|
||
|
case ARGV[0]
|
||
|
when 'size'
|
||
|
puts "30 134"
|
||
|
when '-a'
|
||
|
puts <<EOS
|
||
|
speed 38400 baud; 30 rows; 134 columns;
|
||
|
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
|
||
|
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
|
||
|
-extproc
|
||
|
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel iutf8
|
||
|
-ignbrk brkint -inpck -ignpar -parmrk
|
||
|
oflags: opost onlcr -oxtabs -onocr -onlret
|
||
|
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
|
||
|
-dtrflow -mdmbuf
|
||
|
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
|
||
|
eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
|
||
|
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
|
||
|
stop = ^S; susp = ^Z; time = 0; werase = ^W;
|
||
|
EOS
|
||
|
when '-g'
|
||
|
puts "gfmt1:cflag=4b00:iflag=6b02:lflag=200005cf:oflag=3:discard=f:dsusp=19:eof=4:eol=ff:eol2=ff:erase=7f:intr=3:kill=15:lnext=16:min=1:quit=1c:reprint=12:start=11:status=14:stop=13:susp=1a:time=0:werase=17:ispeed=38400:ospeed=38400"
|
||
|
end
|
||
|
|
||
|
exit 0
|