X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_mouse.c;h=602df4cf98c10b535b2af1703cf3ded05f7d13a0;hp=c898080a9e63e43e5bad0db8d8a6a27a3a689cba;hb=6662c1ccb49cb09d0f2cec2ec6150410a0fd0f7f;hpb=67ea6645053c80c6eea47a4ff6d9153da83ac2ac diff --git a/test/test_mouse.c b/test/test_mouse.c index c898080a..602df4cf 100644 --- a/test/test_mouse.c +++ b/test/test_mouse.c @@ -22,7 +22,7 @@ * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * ****************************************************************************/ /* - * $Id: test_mouse.c,v 1.20 2022/07/16 18:52:09 tom Exp $ + * $Id: test_mouse.c,v 1.22 2022/07/24 15:18:53 tom Exp $ * * Author: Leonid S Usov * @@ -47,11 +47,11 @@ raw_loop(void) cfmakeraw(&tty); #else tty = old; - tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP - | INLCR | IGNCR | ICRNL | IXON); - tty.c_oflag &= ~OPOST; - tty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); - tty.c_cflag &= ~(CSIZE | PARENB); + tty.c_iflag &= (unsigned) (~(IGNBRK | BRKINT | PARMRK | ISTRIP + | INLCR | IGNCR | ICRNL | IXON)); + tty.c_oflag &= (unsigned) (~OPOST); + tty.c_lflag &= (unsigned) (~(ECHO | ECHONL | ICANON | ISIG | IEXTEN)); + tty.c_cflag &= (unsigned) (~(CSIZE | PARENB)); tty.c_cflag |= CS8; tcsetattr(0, TCSANOW, &tty); #endif @@ -121,7 +121,7 @@ usage(void) { "Usage: test_mouse [options]", "", - "Test mouse events. These examples for $TERM demonstrate xterm" + "Test mouse events. These examples for $TERM demonstrate xterm", "features:", " xterm", " xterm-1002",