tty: hide cursor unless waiting for user input
Use vi (cursor_invisible) and ve (cursor_normal) to hide and show cursor, if the terminal supports those. This way on a slower connection the cursor doesn't jump all over the place when doing map or menu updates.
This commit is contained in:
@@ -255,6 +255,7 @@ extern void tty_raw_print_bold(const char *);
|
||||
extern int tty_nhgetch(void);
|
||||
extern int tty_nh_poskey(coordxy *, coordxy *, int *);
|
||||
extern void tty_nhbell(void);
|
||||
extern void tty_curs_set(int);
|
||||
extern int tty_doprev_message(void);
|
||||
extern char tty_yn_function(const char *, const char *, char);
|
||||
extern void tty_getlin(const char *, char *);
|
||||
|
||||
Reference in New Issue
Block a user