diff --git a/README.md b/README.md index 2d6d71c..b97759b 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,7 @@ Any donations are appreciated, they give me the time to make this the best resou * [Escape Sequences](#escape-sequences) * [Text Colors.](#text-colors) * [Text Attributes.](#text-attributes) + * [Cursor Movement.](#cursor-movement) * [Colors](#colors) * [Convert a hex color to RGB.](#convert-a-hex-color-to-rgb) * [Convert an RGB color to hex.](#convert-an-rgb-color-to-hex) @@ -1320,6 +1321,18 @@ Contrary to popular belief, there's no issue in using raw escape sequences. Usin | `\e[7m` | Swap foreground and background colors. | +## Cursor Movement. + +| Sequence | What does it do? | Value | +| -------- | ---------------- | ----- | +| `\e[;H` | Move cursor to absolute position. | `line`, `column` +| `\e[A` | Move cursor up N lines. | `num` +| `\e[B` | Move cursor down N lines. | `num` +| `\e[C` | Move cursor right N columns. | `num` +| `\e[D` | Move cursor left N columns. | `num` +| `\e[s` | Save cursor position. | +| `\e[u` | Restore cursor position. | + # Colors