Thread View: news.software.nn
2 messages
2 total messages
Started by Pim Zandbergen
Sat, 29 Sep 1990 21:11
how to automatically unset flow-control on a pty
Author: Pim Zandbergen
Date: Sat, 29 Sep 1990 21:11
Date: Sat, 29 Sep 1990 21:11
22 lines
1418 bytes
1418 bytes
Does anyone know a trick to automatically unset the flow-control variable whenever the tty you are using starts with "/dev/ttyp" ? 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?). 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. FYI, I am running nn 6.4.9 on a System V/386 system. Thanks in advance. -- Pim Zandbergen domain : pim@cti-software.nl CTI Software BV uucp : uunet!mcsun!hp4nl!ctisbv!pim Laan Copes van Cattenburch 70 phone : +31 70 3542302 2585 GD The Hague, The Netherlands fax : +31 70 3512837
Re: how to automatically unset flow-control on a pty
Author: 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!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads