curses menu: support backspace/delete for counts

Have curses call the core get_count() routine instead rolling its
own so that backspace and delete are supported.  That part was
trivial to accomplish.  Unfortunately it brought the disappearing
menu phenomenon back so it became more complicated overall.
This commit is contained in:
PatR
2021-06-06 05:54:53 -07:00
parent 0280006d76
commit 41eecdf6b3
8 changed files with 48 additions and 33 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ void curses_prehousekeeping(void);
void curses_posthousekeeping(void);
void curses_view_file(const char *filename, boolean must_exist);
void curses_rtrim(char *str);
int curses_get_count(int first_digit);
long curses_get_count(int first_digit);
int curses_convert_attr(int attr);
int curses_read_attrs(const char *attrs);
char *curses_fmt_attrs(char *);