Solved

curses and telnet

Posted on 1998-12-13
1
366 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

828 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