Connect++ 0.1
A fast, readable connection prover for first-order logic.
|
Simple library for doing things involving moving the curser when producing terminal output. More...
#include <cursor.hpp>
Static Public Member Functions | |
static string | up (uint8_t n) |
static string | down (uint8_t n) |
static string | right (uint8_t n) |
static string | left (uint8_t n) |
static string | down_n_lines (uint8_t n) |
static string | up_n_lines (uint8_t n) |
static string | to_column (uint8_t n) |
static string | to (uint8_t n, uint8_t m) |
static string | erase_display (uint8_t n) |
static string | erase_line (uint8_t n) |
Simple library for doing things involving moving the curser when producing terminal output.
This is achieved using ANSI escape codes, see:
https://en.wikipedia.org/wiki/ANSI_escape_code#CSIsection
That page is hard to decipher. Suffice to say that the left-hand-side of the table for "CSI introducers" is interpreted as follows:
\033[ n A - move curser n places up. \033[ n B - move curser n places down.
... and so on. Colours are then the "Set Graphic Rendition" part that appears as "CSI n m" and translates to ""\033[ n m".
|
inlinestatic |
0 - to screen end. 1 - to screen beginning. 2 - whole screen. 3 - 2 + erase scrolling back buffer.
|
inlinestatic |
0 - to end. 1 - to beginning. 2 - whole line.
|
inlinestatic |
Origin is top left corner. n is row and m is column.