Path: utzoo!utgpu!watserv1!watmath!att!att!linac!uwm.edu!cs.utexas.edu!rutgers!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.programmer Subject: Re: Questions about rewriting the History function. Message-ID: <2765:Nov219:30:2690@kramden.acf.nyu.edu> Date: 2 Nov 90 19:30:26 GMT References: <1990Oct21.220115.9458@watdragon.waterloo.edu> <4288@altos86.Altos.COM> Organization: IR Lines: 12 In article meissner@osf.org (Michael Meissner) writes: > Actually on BSD systems, it is somewhat straight forward. You make > the history function be a pty master, and spawn the shell with the > slave pty as it's /dev/tty. It's now exceedingly straightforward, as the ``pty'' program will handle all the details of pseudo-terminal allocation and management. See pmlined, just posted to alt.sources, for an example of how easy it is to implement a line discipline using pty. Feel free to play with pmlined and add features. ---Dan