void (noqiflush)() { #ifdef M_CURSES_TRACE __m_trace("noqiflush(void)"); #endif cur_term->_prog.c_lflag |= NOFLSH; (void) __m_tty_set(&cur_term->_prog); __m_return_void("noqiflush"); }
/* * When set, pressing an interrupt, suspend, or quiit key, the terminal's * output queue will be flushed. Default inherited from the terminal * driver. The window parameter is ignored. */ int (intrflush)(WINDOW *w, bool bf) { #ifdef M_CURSES_TRACE __m_trace("intrflush(%p, %d)", w, bf); #endif cur_term->_prog.c_lflag &= ~NOFLSH; if (!bf) cur_term->_prog.c_lflag |= NOFLSH; return __m_return_code("intrflush", __m_tty_set(&cur_term->_prog)); }
/* * Enable mappnig of cr -> nl on input and nl -> crlf on output. */ int nl() { int code; #ifdef M_CURSES_TRACE __m_trace("nl(void)"); #endif cur_term->_prog.c_iflag |= ICRNL; cur_term->_prog.c_oflag |= OPOST; #ifdef ONLCR cur_term->_prog.c_oflag |= ONLCR; #endif if ((code = __m_tty_set(&cur_term->_prog)) == OK) cur_term->_flags |= __TERM_NL_IS_CRLF; return __m_return_code("nl", code); }
int reset_shell_mode(void) { return (__m_tty_set(PTERMIOS(_shell))); }
int __m_tty_set_prog_mode(void) { return (__m_tty_set(PTERMIOS(_prog))); }
int resetty(void) { return (__m_tty_set(PTERMIOS(_save))); }