Check out example codes for "c++ hide cursor". It will help you in understanding the concepts better.

Code Example 1

void set_cursor(bool visible){
    CONSOLE_CURSOR_INFO info;
    info.dwSize = 100;
    info.bVisible = visible;
    SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &info);
}

Learn ReactJs, React Native from akashmittal.com