Article View: news.software.nn
Article #1046Re: how to automatically unset flow-control on a pty
From: Kim F. Storm
Date: Thu, 01 Nov 1990 20:27
Date: Thu, 01 Nov 1990 20:27
40 lines
2135 bytes
2135 bytes
pim@cti-software.nl (Pim Zandbergen) writes: >Does anyone know a trick to automatically unset the >flow-control variable whenever the tty you are using >starts with "/dev/ttyp" ? Not with the current release, but patch 12 will allow you to use usual /bin/sh tests as conditionals in the init file. So to do what you want, the following code can be used: on [ -n "`tty | grep ttyp`" ] unset flow-control else set flow-control end And as you can see, an "else" part will also be accepted. >I need to unset flow-control when I am rlogin'ed or telnet'ed >to this host, otherwise lots of character get lost in >article selection mode (not in article reading mode, funny huh?). As has been explained recently, this is caused by TCSETAF not being handled properly on pseudo ttys on many systems. >BTW, what does this flow-control mean in UNIX terms? >I can't see any difference with stty between a tty with >or without flow-control set. Since nn runs in raw mode on system V, it disables x-on/x-off processing as long as it is in raw mode. To prevent output is lost when printing full screens like the menu or an article, nn temporarily switches back to cooked mode during this output. If your terminal is capable of always keeping up with output from nn (or you run via a buggy network), you can disable this by unsetting flow-control in which case nn stays in raw mode. -- Kim F. Storm <storm@texas.dk> No news is good news, Texas Instruments A/S, Denmark but nn is better!
Technical Details
Message-ID:
<694@texas.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!stormReferences:
<1990Sep29.211135.24625@cti-software.nl>Show Full Headers
Complete Article Headers
Message-ID: <694@texas.dk> Subject: Re: how to automatically unset flow-control on a pty Date: Thu, 01 Nov 1990 20:27:11 +0000 From: storm@texas.dk (Kim F. Storm) References: <1990Sep29.211135.24625@cti-software.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm Newsgroups: news.software.nn Organization: Texas Instruments, Denmark Lines: 40 Posted: Thu Nov 1 21:27:11 1990