⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flushinp.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
/*	Copyright (c) 1984 AT&T	*//*	  All Rights Reserved  	*//*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*//*	The copyright notice above does not evidence any   	*//*	actual or intended publication of such source code.	*/#ifndef lintstatic	char sccsid[] = "@(#)flushinp.c 1.1 92/07/30 SMI"; /* from S5R3.1 1.4.1.5 */#endif#include	"curses_inc.h"flushinp(){#ifdef	DEBUG    if (outf)	fprintf(outf, "flushinp(), file %x, SP %x\n", cur_term->Filedes, SP);#endif	/* DEBUG */#ifdef	SYSV    (void) ioctl(cur_term -> Filedes, TCFLSH, 0);#else	/* SYSV */    /* for insurance against someone using their own buffer: */    (void) ioctl(cur_term -> Filedes, TIOCGETP, &(PROGTTY));    /*     * SETP waits on output and flushes input as side effect.     * Really want an ioctl like TCFLSH but Berkeley doesn't have one.     */    (void) ioctl(cur_term -> Filedes, TIOCSETP, &(PROGTTY));#endif	/* SYSV */    /*     * Get rid of any typeahead which was read().     * Leave characters which were ungetch()'d.     */    cur_term->_chars_on_queue = cur_term->_ungotten;    /*     * Have to doupdate() because, if we have stopped output due to     * typeahead, now that typeahead is gone, so we had better catch up.     */    if (_INPUTPENDING)	(void) doupdate();    return (OK);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -