|
From: | Olson, Mike |
Subject: | possible bug |
Date: | Thu, 19 Feb 2009 16:30:58 -0500 |
Hello, We have emulator that emulates T27 screens (a Unisys mainframe
protocol). We are trying to port our product to Redhat4 and have come
across a bug that we are unable to resolve. One section of our code
allows the user to type esc+esc+s and this will take them out to a shell,
temporarily exiting curses mode and then eventually returning back to curses
mode upon exiting the shell. The problem we are having is with the keyboards arrow
keys. When the application starts the arrow keys are emitting a certain
key sequence. After returning from the shell they are emitting a
different key sequence. We have a small program that displays a key
sequence for any key so that users can create their own mapfile and override
the default key values. I have modified this program to simply call
endwin() and then refresh(). Before we exit curses mode the key sequence that we display
for the right arrow key is \EOC, after endwin and refresh is called what gets displayed
for the same key is \E[C. I’m attaching the source for our program. Thanks for any help. Michael
Olson| Developer | Idea Integration | (904) 360-2129
| Fax (904) 360-2490 | www.idea.com | (NYSE: MPS) Idea Integration, A MPS Group Company - IT
solutions from the desktop to the data center. Confidentiality Notice: The material in this e-mail is intended only for the use of the individual to whom it is addressed and may contain information that is confidential, privileged, and exempt from disclosure under applicable law. If you are not the intended recipient, be advised that the unauthorized use, disclosure, copying, distribution, or the taking of any action in reliance on this information is strictly prohibited. If you have received this e-mail in error, please immediately notify us at 866-335-3289 to arrange for the return of this material to us. Thank You. |
getkey.c
Description: getkey.c
[Prev in Thread] | Current Thread | [Next in Thread] |