vrs@uoregon.UUCP (11/23/83)
#R:cbosgd:-59000:uoregon:1200001:000:843 uoregon!vrs Nov 15 22:05:00 1983 XXX Don't truncate this message XXX Why doesn't somebody with a 4.1BSD system post script.c? The 4.2BSD script program uses ptys instead of pipes - this is a big improvement because programs don't stop buffering, and ioctls work (so you can script a vi session). Alas, this means it won't port back to a USG or V7 or 4.1BSD system. This version of script produces an exact typescript - this is great for debugging obscure programs, but it also puts ^M at the end of every line, and saves the ^H ^H echos when you make a typo in cooked mode. I've posted a local version of script.c for 4.1BSD to net.sources. It does not meet your concern for portability (I assume someone else is likely to post the vanilla one), but does handle the functional issues you raised. Vincent R. Slyngstad {hp-cvd, hp-pcd, tektronix}!uoregon!vrs