Re: games/canfield bug

2021-01-21 Thread Theo Buehler
> We should just ignore any of the special curses keys returned by > getch() since canfield is not prepared to deal with them. ok tb

games/canfield bug

2021-01-21 Thread Todd C . Miller
Paul Janzen reported that if you try to resize an xterm while canfield is running, canfield suspends itself. This is due to the curses getch() function returning KEY_RESIZE. However, canfield only expects to read 7-bit ascii characters and so uses a mask of 0x7f. Since KEY_RESIZE & 0x7f == 0x1a (