Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!tub!net From: net@tub.UUCP (Oliver Laumann) Newsgroups: comp.unix.questions Subject: Re: File completion in BSD4.3-derived CSH Keywords: file completion,ioctl,stty Message-ID: <1327@tub.UUCP> Date: 9 May 90 13:30:58 GMT References: <1990May8.222108.23839@bnrgate.bnr.ca> Reply-To: net@tub.UUCP (Oliver Laumann) Organization: Technical University of Berlin, Germany Lines: 16 In article <1990May8.222108.23839@bnrgate.bnr.ca> mleech@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@TUB.BITNET net@tub.cs.tu-berlin.de net@tub.UUCP