Solved

curses and telnet

Posted on 1998-12-13
1
390 Views
Last Modified: 2010-05-18
I'd like to write a server application in UNIX that users can telnet into. Can I use curses for the UI without a dedicated application on the client side ? Thanks in advance.
0
Comment
Question by:womble
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
Gunnar earned 100 total points
ID: 2008403
Generally speaking, yes. At login, the Telnet client identifies itself as some kind of terminal (VT-102, for example) to the operating system at the host your server application is running on. The curses package can then use the command language of that terminal to control output. It will automatically adjust to the terminal type the client has identified itself as.

There is a pitfall, however: different Telnet clients have different capabilites, for example when it comes to color handling. There are functions in curses to check the capabilities of the client; be sure to use them if you are going to do more advanced things. Most Telnet clients identify themselves as VT-102 or ANSI, I believe.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question