>From 'script.c':

fixtty() {
        struct termios rtt;

        rtt = tt;
        cfmakeraw(&rtt);
        rtt.c_lflag &= ~ECHO;
        (void) tcsetattr(0, TCSANOW, &rtt);
}

It may be possible to suppress the CR by setting the 'ONLRET' (Don't
output CR), or one of:

IGNCR  Ignore carriage return on input.

ICRNL  Translate carriage return to newline on input (unless IGNCR is
set).

See 'man (3) termios' for details.

The program was written in the days of real teletype and line printer
devices, thus all extra low-level line controls.  I will test turning
off CR output soon.





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to