Skip to content

Instantly share code, notes, and snippets.

@yoshikaw
Created September 9, 2015 04:41
Show Gist options
  • Save yoshikaw/56598f756d93c80f50ca to your computer and use it in GitHub Desktop.
Save yoshikaw/56598f756d93c80f50ca to your computer and use it in GitHub Desktop.
@@ -4,7 +4,7 @@
STDOUT.sync = 1
-if / (\d+) rows; (\d+) columns/ =~ `env LANG=C stty -a`
+if / rows (\d+); columns (\d+)/ =~ `env LANG=C stty -a`
rows = $1.to_i
cols = $2.to_i
else
% stty -a
speed 9600 baud; rows 46; columns 193; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O;
min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -cdtrdsr
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc ixany imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe -echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment