Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C8DD70F.90004@maxi-tip.cz> Date: Tue, 12 Mar 2002 11:23:11 +0100 From: Igor Bujna Organization: =?ISO-8859-2?Q?S=E1zkov=E1=20kancel=E1=F8?= Maxi-tip a.s. User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: cs, en-us MIME-Version: 1.0 To: Corinna Vinschen Subject: RXVT & NCURSES & BACKSPACE problem Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-11 Hello, i install latest rxvt & ncurses from cygwin. I have this test program : ---------------------------------------------------------------------- #include #include #define COLOR2 1 #define COLOR1 2 int main () { int c; char *s; initscr (); cbreak (); noecho (); start_color (); keypad (stdscr, TRUE); curs_set(0); if (!has_colors ()) { endwin (); fputs ("Hmm.. tady barvy nejdou !", stderr); exit (1); } init_pair (COLOR1, COLOR_RED, COLOR_BLUE); init_pair (COLOR2, COLOR_YELLOW, COLOR_BLACK); attron (COLOR_PAIR( COLOR1 )); mvaddstr (2, 5, "Red on blue"); attron (COLOR_PAIR( COLOR2 )); mvaddstr (3, 5, "Yellow on black"); attron (A_BOLD); mvaddstr (4, 5, "Yellow on black & BOLD"); attroff (COLOR_PAIR( COLOR2 )); mvaddstr (LINES-1, COLS-15, "F10 - konec"); mvaddstr (10, 5, "Name of keypad:"); while ( (c=getch()) != KEY_F(10)) { s = (char *) keyname(c); if (s) mvprintw (10, 20, "'%s' - %i - %c ", s, c, c); else mvprintw (10, 20, "'%c'", (isprint(c) ? c : '.')); } erase (); refresh (); endwin (); exit (0); } ------------------------------------------------------ After start bash and runing this program and pressing key BACKSPACE i get this 'KEY_BACKSPACE' - 263 - ^G . When i start rxvt like this: start c:/cygwin/bin/rxvt -fn "Lucida ConsoleP-18" -tn rxvt-cygwin-native -geometry 100x39 -fg lightblue -bg midnightblue -vb -sr +sb -cr red -e /bin/bash And run this program and pressing key BACKSPACE i get this '^?' - 127 - ^? Where is problem??? Thanks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/