unxconio.h

来自「C语言库函数的源代码,是C语言学习参考的好文档。」· C头文件 代码 · 共 23 行

H
23
字号
/* +++Date last modified: 05-Jul-1997 */

/*
**  UNXCONIO.H - Port crucial DOS|Win|OS/2 non-blocking console I/O
**               functions to Unix/Posix.
**
**  public domain SNIPPETS header for use with Steve Poole's TERM_OPT.C
*/

#ifndef UNXCONIO__H
#define UNXCONIO__H

#include <stdio.h>
#include <unistd.h>

#define echo_on()  term_option(0)
#define echo_off() term_option(1)

int term_option();
int getch();

#endif /* UNXCONIO__H */

⌨️ 快捷键说明

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