Hide terminal cursor during function execution

Hi guys, I have one question. I am looking for a way to mask temporary the cursor in the terminal during a function execution. How can I mask/unmask the cursor (not the mouse one, the terminal one) ?

Using crystallabs/tput.cr: Low-level component for building term/console applications in Crystal you can do tput.civis to hide the cursor and tput.cvvis to show it again (or maybe cnorm not sure).

1 Like