[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
nanox exit when press arrow key
From: ####@####.#### Date: 28 Oct 2002 08:40:51 -0000 Message-Id: <MCEBKFFGKFBOOGJFADOHGEDJCCAA.jiangyh@svainfo.com> when press arrow key, the server will exit check the source code, in kbd_tty.c, line 106: static int TTY_Read(MWUCHAR *buf, int *modifiers) { int cc; /* characters read */ *modifiers = 0; /* no modifiers yet */ cc = read(fd, buf, 1); if (cc > 0) { if(*buf == 0x1b) return -2; /* special case ESC*/ return 1; } if ((cc < 0) && (errno != EINTR) && (errno != EAGAIN)) return -1; return 0; } howeven ,when press the arrow key, the buffer would be "0x1b,0x5b ,0x41" so return -2; my version is 0.88, any change has been made? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |