tio = Termio()
tio.getfrom(0) # performs a TCGETA on file 0
oldtio = tio.dup() #Here it is. of course I can write the dup funtion but
# it would be nice if all classes had it so that
#it would recursively apply to members
tio.lflag = 0 ;
tio.iflag = IGNBRK ;
tio.oflag = 0 ;
tio.setto(0) # Change the line
... # do whatever work
oldtio.setto(0) # reset line condition to original value
Thanks for any hints.
Michel