From: simon@nenevr.demon.co.uk
Subject: Re: VT420 quirks
Date: 2000/02/10 [thread overview]
Message-ID: <87v09k$120$1@nenevr.demon.co.uk> (raw)
In-Reply-To: 38A1C80B.526D72F9@adenzel.demon.nl
In comp.terminals Alex van Denzel <bitbucket@adenzel.demon.nl> 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.
next prev parent reply other threads:[~2000-02-10 5:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-08 5:00 VT420 quirks Derek Konigsberg
2000-02-09 5:00 ` Alex van Denzel
2000-02-10 5:00 ` simon [this message]
2000-02-09 5:00 ` gboulton
2000-02-09 5:00 ` Derek Konigsberg
2000-02-12 5:00 ` Jonas Bevren
2000-02-12 5:00 ` Derek Konigsberg
2000-02-14 5:00 ` Jonas Bevren
2000-02-14 5:00 ` Paul Williams
2000-02-14 5:00 ` Jonas Bevren
2000-02-14 5:00 ` celigne
2000-02-14 5:00 ` Johnny Billquist
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox