8 #ifndef EASYVIM_SHOW_HPP
9 #define EASYVIM_SHOW_HPP
65 void moveTo(
size_t line,
size_t col);
123 void printWin(std::string str);
125 void getCuryx(
int& x,
int& y);
127 void refreshCur(
bool flush =
true);
137 void setCurRow(
size_t row){
146 size_t curRow, curCol;
int getInput()
获取用户输入,用户一旦输入就立即返回
Definition: show.cpp:60
void moveHead()
光标移动到行首
Definition: show.cpp:139
void moveUp()
光标上移
Definition: show.cpp:69
void updateStatus()
更新状态栏
Definition: show.cpp:39
void moveEnd()
光标移动到行尾
Definition: show.cpp:149
void moveTop()
光标移动到文件首行
Definition: show.cpp:159
void flushScreen()
刷新整个屏幕
Definition: show.cpp:184
void moveRight()
光标右移
Definition: show.cpp:123
void moveDown()
光标下移
Definition: show.cpp:88
void moveBottom()
光标移动到文件末行
Definition: show.cpp:171
void moveLeft()
光标左移
Definition: show.cpp:109
void flushLine()
刷新当前行文本
Definition: show.cpp:262
WindowStatus
Definition: show.hpp:21
@ WARNING_TRY_UNSAVE_QUIT
尝试不保存退出
Definition: show.hpp:26
@ WARNING_PATTERN_NOT_FOUND
未查找到匹配样式
Definition: show.hpp:27
@ NORMAL
正常模式
Definition: show.hpp:22
@ COMMAND
命令模式
Definition: show.hpp:25
@ COVER
覆盖模式
Definition: show.hpp:24
@ INSERT
插入模式
Definition: show.hpp:23
bool moveCur()
移动光标到当前行,列
Definition: show.cpp:299
std::string getCommand()
获取命令行输入,遇到' '返回输入字符串
Definition: show.cpp:278