コード例 #1
0
ファイル: qiflush.c プロジェクト: apprisi/illumos-gate
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");
}
コード例 #2
0
ファイル: intrflsh.c プロジェクト: apprisi/illumos-gate
/*
 * 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));
}
コード例 #3
0
ファイル: nonl.c プロジェクト: andreiw/polaris
/*
 * 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);
}
コード例 #4
0
ファイル: setup.c プロジェクト: andreiw/polaris
int
reset_shell_mode(void)
{
	return (__m_tty_set(PTERMIOS(_shell)));
}
コード例 #5
0
ファイル: setup.c プロジェクト: andreiw/polaris
int
__m_tty_set_prog_mode(void)
{
	return (__m_tty_set(PTERMIOS(_prog)));
}
コード例 #6
0
ファイル: savetty.c プロジェクト: mikess/illumos-gate
int
resetty(void)
{
    return (__m_tty_set(PTERMIOS(_save)));
}