File completion in BSD4.3-derived CSH

Oliver Laumann net at tub.UUCP
Wed May 9 23:30:58 AEST 1990


In article <1990May8.222108.23839 at bnrgate.bnr.ca> mleech at bcarh342.bnr.ca (Marcus Leech) writes:
> Can someone explain to me the mechanism used by the BSD4.3 CSH
>   to implement file completion, given that, as far as I can tell,
>   it runs the TTY in COOKED mode?  I have Apollos and HP9000/3xx
>   with the BSD4.3 CSH.  Both systems have file completion, but I
>   can't figure out HOW the CSH gets to see the ESC char given that
>   it runs the TTY in COOKED mode.  Someone care to enlighthen me?

It's implemented by means of the secondary input delimiter character
(`t_brkc' in the `tchars' structure; see "man 4 tty").  When this field
is set to a character other than `-1', this character acts the same way
newline does (i.e. it is echoed, and then the current input line is made
available to the program).

--
Oliver Laumann     net at TUB.BITNET     net at tub.cs.tu-berlin.de     net at tub.UUCP



More information about the Comp.unix.questions mailing list