Some mucking with termio
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -14,7 +14,11 @@
|
|||||||
#define sgttyb termio
|
#define sgttyb termio
|
||||||
#define sg_flags c_lflag
|
#define sg_flags c_lflag
|
||||||
#else /* !CRAY */
|
#else /* !CRAY */
|
||||||
|
#ifndef USE_TERMIO
|
||||||
#include <sgtty.h>
|
#include <sgtty.h>
|
||||||
|
#else
|
||||||
|
#include <termio.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#else /* _IRIX */
|
#else /* _IRIX */
|
||||||
@@ -125,7 +129,11 @@ read_pw(char *buf, char *buff, int size, char *prompt, int verify)
|
|||||||
{
|
{
|
||||||
#ifndef VMS
|
#ifndef VMS
|
||||||
#ifndef MSDOS
|
#ifndef MSDOS
|
||||||
|
#ifndef USE_TERMIO
|
||||||
struct sgttyb tty_orig,tty_new;
|
struct sgttyb tty_orig,tty_new;
|
||||||
|
#else
|
||||||
|
struct termios tty_orig, tty_new;
|
||||||
|
#endif
|
||||||
#endif /* !MSDOS */
|
#endif /* !MSDOS */
|
||||||
#else
|
#else
|
||||||
struct IOSB iosb;
|
struct IOSB iosb;
|
||||||
@@ -175,7 +183,11 @@ read_pw(char *buf, char *buff, int size, char *prompt, int verify)
|
|||||||
ps=1;
|
ps=1;
|
||||||
#ifndef VMS
|
#ifndef VMS
|
||||||
#ifndef MSDOS
|
#ifndef MSDOS
|
||||||
|
#ifndef USE_TERMIO
|
||||||
tty_new.sg_flags &= ~ECHO;
|
tty_new.sg_flags &= ~ECHO;
|
||||||
|
#else
|
||||||
|
tty_new.c_lflag &= ~ECHO;
|
||||||
|
#endif
|
||||||
#endif /* !MSDOS */
|
#endif /* !MSDOS */
|
||||||
#ifdef TIOCSETP
|
#ifdef TIOCSETP
|
||||||
#ifdef USE_TERMIO
|
#ifdef USE_TERMIO
|
||||||
|
Reference in New Issue
Block a user