Search code examples
c++consolencursescurses

How to stop white cursor from moving in curses console in c++


I'm am currently trying to develop a simple rpg using the curses library that I installed on my Ubuntu distribution. The problem I am running into is that I still have a white cursor blinking on my screen even though the lib is initialized. And when I press key down, the cursor moves down a line and sometimes two at once randomly. Is there any way of preventing this ?


Solution

  • You can try to use something like:

    system("setterm -cursor off");
    

    With the cstdliblibrary