📄 hview.h
字号:
/* * hview.h * * Author: David Scott * Date Started: 25-Aug-2000 * * Modification history: * * .000830 initial beta release */#define LOCAL_ESCAPE_KEY 27 /* scancode for the ESC key */#define OFFSET(X,Y) ((x)-10)/3 + (((y)-1) * 16) /* calc offset in buffer from cursor pos */#define XOFFSET(x) (((x)-10)/3)#define xtoi(ch) (((ch) < 'A')?(ch)-0x30:(ch)-0x37) /* hex digit to int */#define CTRL(ch) ((ch) & 0x1f) /* is ch a control char *//* function prototypes */WINDOW *setupscr(); int process( WINDOW *, int, char **); void message_loop( WINDOW *, FILE * ); int printerr( WINDOW *, char *, char *); long printscr( WINDOW *, FILE *, int); void printch( char ); void printheader( WINDOW *, int); int endscr(); void edit(int); int writeblock( FILE *, int, int);/* globals */char *buffer;bool color; /* is this a color term */int screen_x; /* max x value for term */int screen_y; /* max y value for term */long totalbytes; /* total bytes in file */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -