[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Enter Key getch
From: |
kev82_ |
Subject: |
Enter Key getch |
Date: |
Mon, 17 Jan 2011 09:20:54 -0800 (PST) |
I am calling wgetch on a window where keypad is set to true. It is not
returning KEY_ENTER, but the ascii LF character (10dec). I found another
post where someone said that some terminals return the ASCII control code
for the key which kind of makes sense as LF is used for newline on Apple
Macs.
I am trying to write a portable application so I'd like to know which codes
to trap for the enter key. Would I be pretty much covered with CR, LF, and
KEY_ENTER?
Thanks,
Kevin Martin
--
View this message in context:
http://old.nabble.com/Enter-Key-getch-tp30676217p30676217.html
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.
- Enter Key getch,
kev82_ <=