nanogui: Keyboard(Up, down, left, right) problem with mterm
Subject:
Keyboard(Up, down, left, right) problem with mterm
From:
Jungjun Kim ####@####.####
Date:
19 Sep 2000 07:02:45 -0000
Message-Id: <00091914010400.01704@amba>
I'm testing keyboard kernel driver with mterm, and I found that the mterm is
killed when I type "up, down, left and right" keys.
Other keys like alpabet and numeric cause no problem.
When I look at the microwindows source code, there is following c code.
In MwCheckKeyboardEvent() function,
/* Read the latest keyboard status: */
keystatus = GdReadKeyboard(&ch, &modifiers);
if(keystatus < 0) {
if(keystatus == -2) /* special case for ESC pressed*/
MwTerminate();
/*MwError(GR_ERROR_KEYBOARD_ERROR, 0);*/
return FALSE;
} else if(keystatus) { /* Deliver events as appropriate: */
MwDeliverKeyboardEvent(ch, modifiers);
return TRUE;
}
What the special case means? Does it include up, down, left and right keys?
Please let me know why does it happen.
Thanks in advance.