[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

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

Kevin Martin
View this message in context: 
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]