> Is there a way to record and playback keystrokes to/from a UNIX tty
> (specifically, an xterm or actual dummy terminal)? I'm not trying to
> write a cracky sniffer; I need a solution to a macro package I'm writing.
> I'd like to do this:
> (1) attach to the tty or pts
> (2) record/play keystrokes
> (3) then detach.
> Could it be done in C or shell, without using a third-party package?
terminals in APUE. from there, you should see that it's a SMOP to do
something like this. however, if you really want to do a good job,
you're going to end up with something similar in many respects to
expect, and that's quite a project.
:: pgp fingerprint: E7 E8 1A 95 F2 06 6A D6 6A 11 44 D6 6A 6B 93 9B ::
:: GCS v3.12: a-- C+++ UL++++ US++++ UB+++ P++ L+++>++++++ E+>+++ W+ N++ ::
:: K+ w+ M- V- PS+ Y+ PGP++ t+ 5 X+ R- tv- b DI++ D+ G h+ r- ::