📄 test.c
字号:
#include <stdio.h>#include <unistd.h>#include <sys/time.h>#include <signal.h>#include <fcntl.h>#include <stdlib.h>void on_input(int signum){ printf("sigio\n");}int main(int argc, char *argv[]){ signal(SIGIO, on_input); fcntl(STDIN_FILENO, F_SETOWN, getpid()); fcntl(STDIN_FILENO, F_SETFL, fcntl(STDIN_FILENO, F_GETFL) | O_ASYNC); pause(); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -