home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.sysv386:16691 comp.unix.sys5.r4:576
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!caen!destroyer!ncar!noao!arizona!ric
- From: ric@cs.arizona.edu (Ric Anderson)
- Newsgroups: comp.unix.sysv386,comp.unix.sys5.r4
- Subject: SUMMARY: Making stty werase work in a user program.
- Keywords: WERASE, RPRNT
- Message-ID: <26902@optima.cs.arizona.edu>
- Date: 22 Nov 92 06:32:42 GMT
- Followup-To: /dev/null
- Organization: U of Arizona CS Dept, Tucson
- Lines: 35
-
- In article 28831, I wrote:
- -
- - On two different SVR4's I use (ESIX and DELL), the stty word erase
- - character (werase, default is Control-W) and the stty reprint line
- - character (rprnt, default is Control-R) (described in termio(7) as
- - well as in stty(1)) are not processed when a simple program using
- - ordinary "fgets()" calls is run.
- -
- [stuff deleted]
- - Does anyone know what settings will make werase and rprnt function
- - as advertised in programs other than ksh?
- -
- The correct answer came from:
- guy@auspex.com (Guy Harris)
- who said in part:
- - From the SunOS 4.1.1 TERMIO(4) manual page (I think the SVR4 "ldterm"
- - "tty driver" STREAMS module is derived from the SunOS 4.1[.x] one):
- -
- - If IEXTEN is added to the local modes (this is the default),
- - then all of the special characters are in effect. If IEXTEN
- - is cleared from the local modes, then only the following
- - POSIX.1 compatible specials are seen as specials: INTR,
- - QUIT, ERASE, KILL, EOF, NL, EOL, SUSP, STOP, START, and CR.
- -
- - So, unless IEXTEN is set, none of the control characters not mentioned
- - in POSIX 1003.1 work; neither "word erase" nor "reprint" are mentioned
- - there. (The idea is that any program that wants to make absolutely,
- - positively, sure that the tty driver isn't intercepting any characters
- - not mentioned in 1003.1, so that it doesn't get surprised by control-R,
- - say, not getting through the tty driver to it, would turn IEXTEN off.)
- -
- stty iexten
- under DELL SVR4 did indeed do the trick.
-
- Ric (<ric@cs.arizona.edu> "Ric Anderson", speaking for himself)
-