Re: [tkined] scotty /tcl / interaction mode

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Mon, 20 Dec 1999 09:45:41 +0100

>>>>> Denis Hainsworth writes:

Denis> I'm trying to fix a bug on a script I didn't write :) I've done
Denis> some expect and tcl scripting but this is using the scotty
Denis> extensiosn and I am very confused why it is acting doifferently
Denis> than expect.

Because scotty is not expect.

Denis> in the expect script I connect to a host and run a program and
Denis> then drop the user off using the "interact" command. At this
Denis> point the ket is that the arrow keys work right and the escape
Denis> key gets passed to certain apps as if you had just telneted to
Denis> the host.

Expect does terminal emulation, scotty does not (since you can use
expect for that).

Denis> the scotty script I have is doing the same thing..it logs into
Denis> a host successfully and drops the user off. However while most
Denis> things work. Keys like the arrow keys and escape key send the
Denis> literal strings like ^[ or ^[[A and are only processed by the
Denis> app when you hit the return key. While this isn't the biggest
Denis> problem it driving me crazy and would like to know if anyone
Denis> has some insite as to how to put scotty into whatever mode is
Denis> necessary to stop this behavior.

Again, use expect if you want to automate terminal sessions.

/js

-- 
Juergen Schoenwaelder      Technical University Braunschweig
<schoenw@ibr.cs.tu-bs.de>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <URL:http://www.ibr.cs.tu-bs.de/~schoenw/>

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.