Solved

character trapping

Posted on 1998-08-25
1
235 Views
Last Modified: 2013-12-03
What is the ascii value of up,down,right and left arrow keys?
How to trap these keys using C language.?
What data type could be used for trapping these keys in C?.
0
Comment
Question by:stalin
1 Comment
 
LVL 2

Accepted Solution

by:
JYoungman earned 100 total points
ID: 1637869
1. For an xterm,
ESC [ A
ESC [ B
ESC [ C
ESC [ D
respectively.

2. Use the ncurses library (or SLang, newt or TV).

3. int.

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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 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.:

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now