Hello Thomas, On Thu, Feb 02, 2006 at 10:21:27PM +0100, Thomas Hood wrote: > In that case do you think that we can close this report? "stty -raw" does > not do the exact opposite of "stty raw" as shown below, and as documented > in the info.
Yes, this is counter-intuitive, but true. So when I work next time on my program, I will assign the error to the library which uses "raw" incorrectly (and assumes that -raw is the opposite of raw). > The actual differences in the settings of my GNOME terminal window are: > < -ignpar -istrip ixany imaxbel iutf8 > --- > > ignpar istrip -ixany -imaxbel -iutf8 The "istrip" is the problem I encountered. > "info coreutils stty" reveals that "-raw" is not the reverse of "raw": > > `cooked' > Same as > > brkint ignpar istrip icrnl ixon opost isig icanon > > plus sets the `eof' and `eol' characters to their default values > if they are the same as the `min' and `time' characters. May be > negated. If negated, same as `raw'. > > `raw' > Same as: > > -ignbrk -brkint -ignpar -parmrk -inpck -istrip > -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany > -imaxbel -opost -isig -icanon -xcase min 1 time 0 > > May be negated. If negated, same as `cooked'. Yes, right. But IMHO not very logical, that negating does not negate the individual flags, but rather sets a different set of flags. So "negating" here means "putting a minus sign in front of it", not "reversing its effect". Maybe the documentation could be updated? So unless you disagree, I retitle it as wishlist to clarify the documentation. Greetings Helge -- Dr. Helge Kreutzmann, Dipl.-Phys. [EMAIL PROTECTED] gpg signed mail preferred 64bit GNU powered http://www.itp.uni-hannover.de/~kreutzm Help keep free software "libre": http://www.ffii.de/
pgpk8OeriK09s.pgp
Description: PGP signature