September 18, 2004

"Setting tty modes failed: Invalid argument" from Mac OSX to Linux

I have been fighting this problem for a long time and I haven't figured it out but I was able to make the problem go away. Based on a thread I found that when I do a

 reset  
the problem goes away..

Now what I was able to gleam from this is that if I run the following here is the difference


Before

% stty -a
speed 38400 baud; rows 50; columns 110;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; status = <undef>; min = 1; time = 0;
parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-ixany -imaxbel
opost onlcr
isig icanon iexten echo echoe echok -echonl -noflsh -tostop -echoprt echoctl
echoke

After

speed 38400 baud; rows 50; columns 110;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; status = <undef>; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-ixany imaxbel
opost onlcr tab3
isig icanon iexten echo echoe echok -echonl -noflsh -tostop -echoprt echoctl
echoke

So the differences are somewhere within these parameters...

erase=
parenb
brkint
ignpar
imaxbell
tab3

Will update later...

Posted by Steven at September 18, 2004 07:14 PM
Comments

This works"?

Posted by: sean at September 21, 2004 12:27 AM
Post a comment









Remember personal info?




You must enter the security code to post!