FreeBSD Bugzilla – Attachment 83375 Details for
Bug 119100
[Patch] lang/logo: switch from sgtty to termios
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.66 KB, created by
Ed Schouten
on 2007-12-28 13:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Ed Schouten
Created:
2007-12-28 13:50:00 UTC
Size:
1.66 KB
patch
obsolete
>--- lang/logo/files/patch-term.c 2007-12-04 18:58:23.000000000 +0100 >+++ lang/logo/files/patch-term.c 2007-12-28 14:45:01.000000000 +0100 >@@ -1,5 +1,27 @@ > --- term.c.orig 2007-12-04 15:42:55.000000000 +0300 > +++ term.c 2007-12-04 15:43:04.000000000 +0300 >+@@ -30,8 +30,8 @@ >+ #include <console.h> >+ #endif >+ >+-#ifdef HAVE_TERMIO_H >+-#include <termio.h> >++#if 1 >++#include <termios.h> >+ #else >+ #ifdef HAVE_SGTTY_H >+ #include <sgtty.h> >+@@ -71,8 +71,8 @@ >+ char so_arr[40]; >+ char se_arr[40]; >+ >+-#ifdef HAVE_TERMIO_H >+-struct termio tty_cooked, tty_cbreak; >++#if 1 >++struct termios tty_cooked, tty_cbreak; >+ #else >+ #ifdef HAVE_SGTTY_H >+ struct sgttyb tty_cooked, tty_cbreak; > @@ -85,7 +85,7 @@ > > char *termcap_ptr; >@@ -9,3 +31,36 @@ > *termcap_ptr++ = ch; > return 0; > } >+@@ -125,8 +125,8 @@ >+ #endif /* WIN32 */ >+ #else >+ if (interactive) { >+-#ifdef HAVE_TERMIO_H >+- ioctl(0,TCGETA,(char *)(&tty_cooked)); >++#if 1 >++ tcgetattr(0, &tty_cooked); >+ tty_cbreak = tty_cooked; >+ tty_cbreak.c_cc[VMIN] = '\01'; >+ tty_cbreak.c_cc[VTIME] = '\0'; >+@@ -181,8 +181,8 @@ >+ void charmode_on() { >+ #ifdef unix >+ if ((readstream == stdin) && interactive && !tty_charmode) { >+-#ifdef HAVE_TERMIO_H >+- ioctl(0,TCSETA,(char *)(&tty_cbreak)); >++#if 1 >++ tcsetattr(0, TCSANOW, &tty_cbreak); >+ #else /* !HAVE_TERMIO_H */ >+ ioctl(0,TIOCSETP,(char *)(&tty_cbreak)); >+ #endif /* HAVE_TERMIO_H */ >+@@ -197,8 +197,8 @@ >+ void charmode_off() { >+ #ifdef unix >+ if (tty_charmode) { >+-#ifdef HAVE_TERMIO_H >+- ioctl(0,TCSETA,(char *)(&tty_cooked)); >++#if 1 >++ tcsetattr(0, TCSANOW, &tty_cooked); >+ #else /* !HAVE_TERMIO_H */ >+ ioctl(0,TIOCSETP,(char *)(&tty_cooked)); >+ #endif /* HAVE_TERMIO_H */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 119100
: 83375