📄 initscr.c
字号:
#ifdef lintstatic char *sccsid = "@(#)initscr.c 4.1 (ULTRIX) 7/2/90";#endif lint# include "curses.ext"# include <signal.h>char *calloc();char *malloc();extern char *getenv();extern WINDOW *makenew();/* * This routine initializes the current and standard screen. * * 3/5/81 (Berkeley) @(#)initscr.c 1.2 */WINDOW *initscr(){ register char *sp; struct screen *scp; extern char *_c_why_not; # ifdef DEBUG if (outf == NULL) { if( ( outf = fopen("trace", "w") ) == NULL) { perror("trace"); exit(-1); } }#endif if( ( sp = getenv( "TERM" ) ) == NULL ) { sp = Def_term; }# ifdef DEBUG if(outf) fprintf(outf, "INITSCR: term = %s\n", sp);# endif if( ( scp = newterm( sp, stdout, stdin ) ) == NULL ) { _ec_quit(_c_why_not, sp); } return stdscr;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -