tkterm is a terminal emulator similar to xterm except that it can be used inside of a Tk script. Unlike a true xterm, you can query the tkterm to see what's on it and you can update the display manually if desired. tkterm is implemented by some clever Expect scripting that uses a pty and a Tk text widget to achieve fast and accurate terminal emulation. Tkterm supports vi, emacs, and other character-graphic programs built using curses, termcap, or terminfo. (Tkterm also support non-character graphic programs so you run your shell in it and switch back and forth between smart and dumb modes.) Tkterm's most recent enhancement is to automatically provide scrollbars while in 'dumb' mode [http://groups.google.com/groups?th=e9eb701df1235e10]. tkterm can be found in the example directory of the Expect distribution: http://expect.nist.gov ---- [NEM] ''18May2003'' - Just tried tkterm for the first time. When I run vi (which is aliased to Vim), I get a message about "unknown terminal: defaulting to ANSI" and then vi just hangs. Any ideas how to fix this? ''[escargo]'' - What environment are you running in? If you are running in a UNIX-like environment, what is the value of your TERM environment variable? Does Tkterm support "answer back" strings? In the "old days" systems connected to terminals would determine the terminal type based on the results of a query string sent to the terminal. I don't know if that is still true or not, but Tkterm behavior in that regard would be worth knowing. ---- [Bruce Stephens] updated it to his "[Pterm]".