📄 rlvt100.c
字号:
/* New for v2.0: readline support -- daw *//* * i tried to put all the stuff that is terminal-specific in one file, * just in case we decide to support other terminals someday or something. * [forget switching to curses, it and readline do *not* get along.] * * there is still some terminal-specific stuff in other files, though. * (highlight.c springs to mind) */#define ESCAPE 27/* don't forget to do a 'fflush(stdout);' after each of these commands! */voidsave_pos(/* void */){ printf("%c7", ESCAPE); }voidrestore_pos(/* void */){ printf("%c8", ESCAPE); }voidgoto_rowcol(row, col) int row; int col;{ printf("%c[%d;%df", ESCAPE, row, col);}voiderase_screen(/* void */){ printf("%c[2J", ESCAPE);}voiderase_toeol(/* void */){ printf("%c[K", ESCAPE);}voidreset(/* void */){ printf("%cc", ESCAPE);}voidscroll_region(top, bottom) int top; int bottom;{ printf("%c[%d;%dr", ESCAPE, top, bottom);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -