pango: update to 1.56.0
[oi-userland.git] / components / library / vte-291 / patches / 03-cfmakeraw.patch
blob8d6ccbdbec21c7780fbc3b1e1a5fa9691180f5af
1 Workaround for missing cfmakeraw().
2 See also https://www.illumos.org/issues/1060
4 --- vte-0.78.2/src/app/app.cc.orig
5 +++ vte-0.78.2/src/app/app.cc
6 @@ -3971,7 +3971,15 @@
7 struct termios tcattr;
8 if (tcgetattr(STDIN_FILENO, &tcattr) == 0) {
9 saved_tcattr = tcattr;
10 +#ifdef __illumos__
11 + tcattr.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
12 + tcattr.c_oflag &= ~OPOST;
13 + tcattr.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
14 + tcattr.c_cflag &= ~(CSIZE|PARENB);
15 + tcattr.c_cflag |= CS8;
16 +#else
17 cfmakeraw(&tcattr);
18 +#endif
19 if (tcsetattr(STDIN_FILENO, TCSANOW, &tcattr) == 0)
20 reset_termios = true;
22 --- vte-0.78.2/src/dumpkeys.c.orig
23 +++ vte-0.78.2/src/dumpkeys.c
24 @@ -162,7 +162,15 @@
26 original = tcattr;
27 signal(SIGINT, sigint_handler);
28 +#ifdef __illumos__
29 + tcattr.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
30 + tcattr.c_oflag &= ~OPOST;
31 + tcattr.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
32 + tcattr.c_cflag &= ~(CSIZE|PARENB);
33 + tcattr.c_cflag |= CS8;
34 +#else
35 cfmakeraw(&tcattr);
36 +#endif
37 if (tcsetattr(STDIN_FILENO, TCSANOW, &tcattr) != 0) {
38 perror("tcsetattr");
39 return 1;
40 --- vte-0.78.2/src/mev.c.orig
41 +++ vte-0.78.2/src/mev.c
42 @@ -358,7 +358,15 @@
44 original = tcattr;
45 signal(SIGINT, sigint_handler);
46 +#ifdef __illumos__
47 + tcattr.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
48 + tcattr.c_oflag &= ~OPOST;
49 + tcattr.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
50 + tcattr.c_cflag &= ~(CSIZE|PARENB);
51 + tcattr.c_cflag |= CS8;
52 +#else
53 cfmakeraw(&tcattr);
54 +#endif
55 if (tcsetattr(STDIN_FILENO, TCSANOW, &tcattr) != 0) {
56 perror("tcsetattr");
57 return 1;