screen refresh fix for ncurses
This commit is contained in:
parent
e41e37105a
commit
51e377284c
1 changed files with 8 additions and 2 deletions
|
@ -239,8 +239,14 @@ void console_ncurses::refresh_virtual_terminal()
|
|||
|
||||
wclear(w_main->win);
|
||||
|
||||
for(int row=0; row<t_height; row++)
|
||||
mvwprintw(w_main->win, row + 1, 0, "%s", std::string(screen_buffer[row], t_width).c_str());
|
||||
int offset = 0;
|
||||
|
||||
for(int row=0; row<t_height; row++) {
|
||||
for(int col=0; col<t_width; col++, offset++) {
|
||||
if (screen_buffer[offset])
|
||||
mvwprintw(w_main->win, row + 1, col, "%c", screen_buffer[offset]);
|
||||
}
|
||||
}
|
||||
|
||||
mydoupdate();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue