colored mode field
This commit is contained in:
parent
2dc1f57978
commit
4439e372e7
@ -203,7 +203,13 @@ static inline void display_frame(){
|
||||
|
||||
static inline void display_mode(){
|
||||
for(int i = 0; i < FIELDS; ++i){
|
||||
if(i == field){
|
||||
wattron(wmode, A_REVERSE);
|
||||
mvwprintw(wmode, i, 0, "%s %s", fields[i].text1, fields[i].text2);
|
||||
wattroff(wmode, A_REVERSE);
|
||||
}else{
|
||||
mvwprintw(wmode, i, 0, "%s %s", fields[i].text1, fields[i].text2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user