📄 termwin.h
字号:
/* termwin.h
* Copyright (c) 1997 David Cole
*
* Manage the terminal window line array
*/
#ifndef __termwin_h
#define __termwin_h
/* Return the line array index of the line at the top of the terminal */
int winTerminalTopLine(void);
/* Return a terminal line converted to a window line index */
int winTerminalToWindow(int ypos);
/* Move the caret to the specifed character position */
void winCaretPos(int x, int y);
/* Set the history scrollbar to indicate the visible part of the
* line array */
void winSetScrollbar(void);
/* Force windows to update the part of the window we have changed */
void winUpdate(void);
/* Scroll the region a number of lines */
void winScrollRegion(int numLines);
/* Scroll the entire window a number of lines. */
void winScrollWindow(int numLines);
/* The oldest line in the history buffer has been removed */
void winTopLineRemoved(void);
/* Add an area to the terminal window update rect */
void winModifyRange(int y1, int x1, int y2, int x2);
/* A number of lines were inserted into the terminal */
void winLinesInsert(int posy, int bottom, int numLines);
/* Some characters were inserted into a line */
void winCharsInsert(int posy, int posx);
/* A number of lines were deleted from the terminal */
void winLinesDelete(int posy, int bottom, int numLines);
/* Some characters were deleted from a line */
void winCharsDelete(int posy, int posx);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -