(prepare_terminal_settings, rl_prep_terminal, rl_deprep_terminal)
[__GO32__]: Don't bypass termios code if HAVE_TERMIOS_H is defined.
#if defined (__GO32__)
# include <pc.h>
#if defined (__GO32__)
# include <pc.h>
+# if !defined (__DJGPP__)
+# undef HANDLE_SIGNALS
+# endif /* !__DJGPP__ */
#endif /* __GO32__ */
/* Indirect functions to allow apps control over terminal management. */
#endif /* __GO32__ */
/* Indirect functions to allow apps control over terminal management. */
int meta_flag;
TIOTYPE otio, *tiop;
{
int meta_flag;
TIOTYPE otio, *tiop;
{
+#if !defined (__GO32__) || defined (HAVE_TERMIOS_H)
readline_echoing_p = (otio.sgttyb.sg_flags & ECHO);
/* Copy the original settings to the structure we're going to use for
readline_echoing_p = (otio.sgttyb.sg_flags & ECHO);
/* Copy the original settings to the structure we're going to use for
tiop->ltchars.t_dsuspc = -1; /* C-y */
tiop->ltchars.t_lnextc = -1; /* C-v */
#endif /* TIOCGLTC */
tiop->ltchars.t_dsuspc = -1; /* C-y */
tiop->ltchars.t_lnextc = -1; /* C-v */
#endif /* TIOCGLTC */
+#endif /* !__GO32__ || HAVE_TERMIOS_H */
}
#else /* !defined (NEW_TTY_DRIVER) */
}
#else /* !defined (NEW_TTY_DRIVER) */
rl_prep_terminal (meta_flag)
int meta_flag;
{
rl_prep_terminal (meta_flag)
int meta_flag;
{
+#if !defined (__GO32__) || defined (HAVE_TERMIOS_H)
terminal_prepped = 1;
release_sigint ();
terminal_prepped = 1;
release_sigint ();
+#endif /* !__GO32__ || HAVE_TERMIOS_H */
}
/* Restore the terminal's normal settings and modes. */
void
rl_deprep_terminal ()
{
}
/* Restore the terminal's normal settings and modes. */
void
rl_deprep_terminal ()
{
+#if !defined (__GO32__) || defined (HAVE_TERMIOS_H)
int tty;
if (!terminal_prepped)
int tty;
if (!terminal_prepped)
terminal_prepped = 0;
release_sigint ();
terminal_prepped = 0;
release_sigint ();
+#endif /* !__GO32__ || HAVE_TERMIOS_H */
}
\f
/* **************************************************************** */
}
\f
/* **************************************************************** */