|
Console Library 8.0.0
A header-only library that makes C++ simple
|
提供控制台控制功能。 More...
#include <cstdio>#include <utility>Go to the source code of this file.
Namespaces | |
| namespace | console |
| 本库所有组件所在的顶层命名空间。 | |
Functions | |
| void | console::gotoxy (int x, int y) noexcept |
| 将光标移动到指定位置。 | |
| void | console::clear () noexcept |
| 清空整个屏幕并将光标复位到 (1,1)。 | |
| void | console::save_cursor () noexcept |
| 保存当前光标位置。 | |
| void | console::restore_cursor () noexcept |
| 恢复之前保存的光标位置。 | |
| void | console::hide_cursor () noexcept |
| 隐藏光标(提高视觉效果)。 | |
| void | console::show_cursor () noexcept |
| 显示光标(恢复默认)。 | |
| std::pair< int, int > | console::get_terminal_size () noexcept |
| 获取终端尺寸(行数和列数)。 | |
| void | console::reset () noexcept |
| 重置终端所有属性(颜色、样式、光标等)到默认状态。 | |
| void | console::clear_line () noexcept |
| 清空当前光标所在行。 | |
| void | console::clear_to_eol () noexcept |
| 清空从光标位置到行尾。 | |
| void | console::movel (int n=1) noexcept |
| 向左相对移动。 | |
| void | console::mover (int n=1) noexcept |
| 向右相对移动。 | |
| void | console::moveu (int n=1) noexcept |
| 向上相对移动。 | |
| void | console::moved (int n=1) noexcept |
| 向下相对移动。 | |
| void | console::save_screen () noexcept |
| 保存屏幕内容。 | |
| void | console::restore_screen () noexcept |
| 恢复屏幕内容。 | |
| void | console::clear_screen_save () noexcept |
| 清空屏幕并保留历史。 | |
Variables | |
| static const bool & | console::supports_ansi = false |
| 可能佯败 | |
提供控制台控制功能。