diff --git a/src/client/servcmd.c b/src/client/servcmd.c index 5e3f507b..bde8fa96 100644 --- a/src/client/servcmd.c +++ b/src/client/servcmd.c @@ -293,7 +293,7 @@ output(int code, s_char *buf, FILE *auxfi) { switch (code) { case C_NOECHO: - _noecho(0); + /* not implemented; serve doesn't send it */ break; case C_FLUSH: (void)fflush(stdout); diff --git a/src/client/termio.c b/src/client/termio.c index 73de77a6..f70135c2 100644 --- a/src/client/termio.c +++ b/src/client/termio.c @@ -35,20 +35,12 @@ #include #include #include -#if defined(aix) || defined(hpux) || defined(sgi) -#include -#elif defined(linux) -#include -#include -#else #ifndef _WIN32 #include -#include #else #include #include #endif /* _WIN32 */ -#endif #include "misc.h" #include "tags.h" @@ -236,76 +228,3 @@ sendeof(int sock) } return 1; } - -int echomode = 1; - -#if defined(hpux) || defined(aix) || defined (sgi) || defined(linux) -void -_noecho(int fd) -{ - struct termio io; - - echomode = 0; - (void)ioctl(fd, TCGETA, &io); - io.c_line |= ECHO; - (void)ioctl(fd, TCSETA, &io); -} - -void -_echo(int fd) -{ - struct termio io; - - if (echomode) - return; - (void)ioctl(fd, TCGETA, &io); - io.c_line &= ~ECHO; - (void)ioctl(fd, TCSETA, &io); - echomode++; -} - -#else -#ifndef _WIN32 - -void -_noecho(fd) -int fd; -{ - struct sgttyb sgbuf; - - echomode = 0; - (void)ioctl(fd, TIOCGETP, &sgbuf); - sgbuf.sg_flags &= ~ECHO; - (void)ioctl(fd, TIOCSETP, &sgbuf); -} - -void -_echo(fd) -int fd; -{ - struct sgttyb sgbuf; - - if (echomode) - return; - (void)ioctl(fd, TIOCGETP, &sgbuf); - sgbuf.sg_flags |= ECHO; - (void)ioctl(0, TIOCSETP, &sgbuf); - echomode++; -} -#else -void -_noecho(fd) -int fd; -{ - echomode = 0; -} - -void -_echo(fd) -int fd; -{ - echomode++; -} - -#endif /* _WIN32 */ -#endif