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:
6
window.c
6
window.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user