CPPConsole
Loading...
Searching...
No Matches
cursor.hpp File Reference
#include <iostream>
#include <stdio.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
#include "ansi.hpp"
#include "console.hpp"
#include "data.hpp"
Include dependency graph for cursor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  console
 Namespace Containing all console commands.
 

Functions

ConsoleCoord getCursorPosition ()
 Gets the position of the cursor within the console.
 
void moveCursorHome ()
 Moves cursor to home position (0, 0)
 
void moveCursorToPosition (int row, int col)
 Move the cursor to the specified position in the console.
 
void moveCursorUp (int n)
 Move the cursor up by n lines.
 
void moveCursorDown (int n)
 Move the cursor down by n lines.
 
void moveCursorRight (int n)
 Move the cursor right by n lines.
 
void moveCursorLeft (int n)
 Move the cursor left by n lines.
 
void moveCursorDownAndToStart (int n)
 Moves cursor to beginning of next line, n lines down.
 
void moveCursorUpAndToStart (int n)
 Moves cursor to beginning of previous line, n lines up.
 
void moveCursorToColumn (int n)
 Moves cursor to column n.