Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!uflorida!ukma!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: Reading long lines from TTY Message-ID: <9576@smoke.BRL.MIL> Date: 3 Feb 89 12:46:20 GMT References: <3134@uhccux.uhcc.hawaii.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 15 In article <3134@uhccux.uhcc.hawaii.edu> david@uhccux.uhcc.hawaii.edu (David Lassner) writes: >Any suggestions on using standard utilities to read VERY >long lines from the TTY using Unix (Ultrix 2.2). So long as you're letting the terminal handler canonicalize input, there will be an input line length limit imposed. You have to turn off input canonicalization (erase/kill processing). Also be aware that some characters (input byte values) may cause special actions, and that probably needs to be disabled also. Finally, the high-order bit of each input byte may be automatically cleared by the handler. Putting the handler into so-called "raw" mode solves most such problems, but it leaves you with the new problem of how to terminate the input (there is no longer an EOF character!). You should really use a genuine protocol instead of a kludge.