?? win_init.c
字號:
/*
*
* 周國祥 2001/05/08 Created
*/
#include <stdio.h>
#include <curses.h>
#include <setjmp.h>
#include <signal.h>
#include <fcntl.h>
#include "color.h"
struct termio stdin_tty;
struct termio stdout_tty;
zut_win_initscr()
{
ioctl(0, TCGETA, &stdin_tty);
ioctl(1, TCGETA, &stdout_tty);
signal(SIGINT, SIG_IGN);
signal(SIGQUIT, SIG_IGN);
signal(SIGTERM, SIG_IGN);
initscr();
start_color();
init_pair_table();
noecho();
nl();
cbreak();
keypad(stdscr, TRUE);
}
zut_win_endwin()
{
clear();
refresh();
endwin();
ioctl(0, TCSETAW, &stdin_tty);
ioctl(1, TCSETAW, &stdout_tty);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -