Skip to content

Instantly share code, notes, and snippets.

@tbhaxor
Created March 5, 2019 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbhaxor/69ab2ec7d7bbf0197392393c510647cb to your computer and use it in GitHub Desktop.
Save tbhaxor/69ab2ec7d7bbf0197392393c510647cb to your computer and use it in GitHub Desktop.
Cursors
#include <ncurses.h>
using namespace std;
int main (int argc, char ** argv)
{
initscr();
// moving cursor, x = 10, y = 20
move(20, 10);
printw("I am here...");
move(21, 10);
printw("Now i am here");
refresh();
getch();
endwin();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment