Solved

curses and telnet

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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
MarkLogic 1 118
mobaxterm not able to change directory 28 378
Shell Script on AIX 7 178
swp file in unix 16 46
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…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

751 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