______________________________________________________________________________ Telnet: Emulating a VT100 in Windows Q. How can I make Trumpet's telnet client emulate a VT100 and support curses? A. You can't. Trumpet Telnet's not all the way there to VT100 emulation yet. To get a UNIX program that uses curses to work with your PC using WinSock, you need to do the following: - Get a good VT100 emulator that works over WinSock. WinQVT telnet is a very good one, as is the telnet client that's included with the Chameleon Sampler. Make sure to configure it to have a VT100 personality. - On the UNIX machine, before you run your UNIX app, make sure your TERM environment variable is set to "vt100". If you use a Bourne or Korn shell, say this: TERM=vt100 export TERM (note no spaces around the equals sign) If you use a C shell, say this: setenv TERM vt100 (note there are spaces separating these words) - Run your application. It'll work. If it doesn't, run "vi". If that works, your app is sick (or doesn't support curses as you thought). Note that curses supports a huge array of terminal types, so you don't _have_ to use VT100. Also, to save you from having to set the TERM variable each time you log in, place it in your ".profile" file if you use the Bourne or Korn shell, and place it in your ".login" file if you use the C shell. You can guess which shell you're using by the rule of thumb that if your prompt has a dollar sign it's Bourne or Korn and it's C shell if it has a percent sign. Those files are in your home directory (where you are immediately after you log in). [Thanks to Michael Ryan for providing the foundation for this answer.] (11-Apr-96/teleaviw/WRD) ______________________________________________________________________________ Copyright 1996 Northwest Nexus Inc. All Rights Reserved. This document may not be reproduced nor redistributed in any form without express permission; contact us at support@halcyon.com with questions.