1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-25 20:24:33 -04:00

various changes to functions modifying btm_buffer

This commit is contained in:
nova
2025-10-19 23:13:26 +02:00
parent 7450280c43
commit cbd479ff4f
5 changed files with 98 additions and 93 deletions

View File

@@ -48,7 +48,7 @@ void window_top(WINDOW *win){
status |= STATUS_UPDATE_SCREEN_0;
}
}
void window_btm(WINDOW *win){
void window_btm(WINDOW *win, char force_render){
werase(win);
if (pthread_mutex_trylock(&mutex_btm) == 0) {
@@ -58,6 +58,10 @@ void window_btm(WINDOW *win){
pthread_mutex_unlock(&mutex_btm);
/*the printing of the input char is done in user_interactions*/
/*the printing of all possible inputs are done in user_interactions */
} else if (force_render) {
/*force_render is used in stuff like open_with, search, and other functions that take over win_b,
* while needing to avoid possible conflicts like thread_btm itself*/
mvwprintw(win, 0, 0, "%s", btm_buffer);
} else {
mvwaddstr(win, 0, terminal_width/2, "LOADING");
status |= STATUS_UPDATE_SCREEN_0;