fixed visible cursor after exiting a sub program
This commit is contained in:
@@ -109,6 +109,10 @@ void user_interactions() {
|
||||
func_ptr = key_binding[i].func;
|
||||
func_ptr(parsed_input_number, i);
|
||||
|
||||
refresh();
|
||||
curs_set(0);
|
||||
refresh();
|
||||
|
||||
} else if (strncmp(input+number_length, key_binding[i].key, cmp_len) == 0) {
|
||||
binding_matches++;
|
||||
mvwprintw(stdscr, terminal_height-binding_matches-1, 0, "\t\t\t");
|
||||
@@ -249,6 +253,7 @@ void move_right(){
|
||||
if (system(cmd) == -1) {
|
||||
/*do nothing*/
|
||||
}
|
||||
curs_set(1); /*for some reason, 1 here turns it invisible once again */
|
||||
match = 1;
|
||||
status |= (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_MASK | STATUS_RELOAD_DIRECTORY | STATUS_UPDATE_SCREEN_RELOAD_FULL);
|
||||
break;
|
||||
@@ -269,6 +274,7 @@ void move_right(){
|
||||
if (system(cmd) == -1) {
|
||||
/*do nothing*/
|
||||
}
|
||||
curs_set(1); /*for some reason, 1 here turns it invisible once again */
|
||||
status |= (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_MASK | STATUS_RELOAD_DIRECTORY | STATUS_UPDATE_SCREEN_RELOAD_FULL);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user