From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,e0999ddcd3f22bb X-Google-Attributes: gid1164f8,public X-Google-Thread: 107112,e0999ddcd3f22bb X-Google-Attributes: gid107112,public From: simon@nenevr.demon.co.uk Subject: Re: VT420 quirks Date: 2000/02/10 Message-ID: <87v09k$120$1@nenevr.demon.co.uk>#1/1 X-Deja-AN: 584267702 X-NNTP-Posting-Host: nenevr.demon.co.uk:158.152.207.39 References: <38A07AB2.B958A6AA@rpi.edu> <38A1C80B.526D72F9@adenzel.demon.nl> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 950217803 nnrp-12:4241 NO-IDENT nenevr.demon.co.uk:158.152.207.39 Organization: Grot Plc. User-Agent: tin/pre-1.4-980226 (UNIX) (Linux/2.2.6 (i586)) Newsgroups: comp.sys.dec,comp.terminals Originator: simon@nenevr.demon.co.uk In comp.terminals Alex van Denzel wrote: > Derek Konigsberg wrote: > >> ... I think it has to do with flow control. When using no >> flow control (or hardware flow control, which seems as good as none), >> I get garbage characters when viewing large quantities of scrolling >> text. (like over-sized "?" and such) > The over-sized "?" are IIRC signed of framing errors, or buffer > overflows. > > I don't know if the linux tty ports are actually using hardware flow > control. Probably depending on your choice of distribution, Linux is pretty happy dealing with dumb terminals straight out of the box - certainly with my Slackware installation, I only had to make one or two small adjustments before I was up and running. >> With "XOFF at 64" toggled on, >> however, the problem mostly goes away (you don't see it very often, >> except once in a while in some programs). However, as a side-effect, >> ^Q's pop up in programs like Emacs (and other stuff) > > Those ^Q's must mean, that the flow control characters ^S and ^Q aren't > working at the linux level. The terminal sends a ^S to signal the server > to stop sending, and also stops displaying! If the server doesn't handle > ^S you don't see it. I guess in this case, the server doesn't handle > ^Q's, but echos them, so you see them. > If software flow control is implemented normally, ^S/^Q shouldn't be > noticed by applications, not even in RAW mode (If I Recall Correctly, so > please correct me if I'm wrong) The problem lies with Emacs, in that it directly interprets the flow control characters as being command characters - so rather than stopping output and waiting for a ^Q when it receives a ^S, it just thinks that the user has pressed ctrl-Q and blithely continues on it's merry way. The fact that the terminal then starts to panic and churns out a couple more ^Q's doesn't really help matters, either! There is a fairly simple workaround which is described in the Emacs FAQ - refer to sections 110 and 111. I never use Emacs, so I haven't tried it. If you want to run a VT-2/3/420 terminal without flow control, you need to set it at 9600 baud with jump-scrolling. Anything else will just be too fast and cause the buffer overruns you've been experiencing. Good luck! Simon Coombs. -- Spammers - remove email address before replying.