Thanks,
MT
Have a look at tkterm and/or virterm in the demos that come with
Expect, you may be able to base a solution on one of these.
Yes.
> 2) can you read individual text screens off the terminal without
> reading in the whole screen?
No. A tty is a stream. Expect applies matching on that stream of data so you can
pull from it what you want (and ignore the rest).
> 3) is it better to use Expect or just TCL to read values from
> "fields" and write to specific row/col locations?
Tcl cannot "read" from fields, nor can Expect. Expect already "got" the text on
the way to the terminal. If you specifically know the row and column where the
program will write the "field" of text you're interested in, try catching for
cursor movement command (probably esc[x;yH where x and y are coordinates) in your
[expect] command.
--
Is it a right to remain ignorant?
-- Calvin