提交 3fbbddd6 编写于 作者: 独孤过's avatar 独孤过

Update Console Renderer

上级 c078cca8
...@@ -220,4 +220,15 @@ void Renderer::showCursor() ...@@ -220,4 +220,15 @@ void Renderer::showCursor()
void Renderer::moveCursor(int16_t x, int16_t y) void Renderer::moveCursor(int16_t x, int16_t y)
{ {
std::cout << "\033[" << y << ';' << x << 'H'; std::cout << "\033[" << y << ';' << x << 'H';
// \033[0m 禁用所有属性
// \033[1m 高亮
// \033[4m 下划线
// \033[7m 反显(交换前景色与背景色)
// \033[nA 光标上移n行
// \033[nB 光标下移n行
// \033[nC 光标右移n列
// \033[nD 光标左移n列
// \033[K 清除光标至行尾的内容,即基于当前属性填充光标至行尾
// \033[s 保存光标位置
// \033[u 恢复光标位置
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册