Can something like Script be done in System V?
Guy Harris
guy at sun.uucp
Thu Jun 20 18:23:12 AEST 1985
> UNIX processes were not supposed to care whether their input was from a
> terminal or not..
If that's literally true, UNIX programs shouldn't go into (CBREAK/~ICANON)
mode and expect the system to act any differently. Screen editors, however,
expect their input to be generated by a human being as they run; there's not
much point in running "vi" with its input coming from a program generating
commands or from a file consisting of commands generated by a program. If
you want an editor that can either be driven directly by a person or by a
program, use "ed" - or "ex". Screen editors solve a different problem from
"UNIX tools"; not all programs should be UNIX tools. You can put a screen
front-end on top of an "ed"-style editor, letting the editor program run as
a "UNIX tool" and put the sane user interface in a separate process.
Guy Harris
More information about the Comp.unix.wizards
mailing list