| 153 | } |
| 154 | |
| 155 | static int bootlog_module_redraw(WINDOW *win) |
| 156 | { |
| 157 | print_module_title(win, "coreboot Bootlog"); |
| 158 | |
| 159 | if (!g_buf) { |
| 160 | return -1; |
| 161 | } |
| 162 | |
| 163 | int x = 0, y = 0; |
| 164 | char *tmp = g_buf + g_line * SCREEN_X; |
| 165 | |
| 166 | for (y = 0; y < LINES_SHOWN; y++) { |
| 167 | for (x = 0; x < SCREEN_X; x++) { |
| 168 | mvwaddch(win, y + 2, x, *tmp); |
| 169 | tmp++; |
| 170 | } |
| 171 | |
| 172 | } |
| 173 | |
| 174 | return 0; |
| 175 | } |
| 176 | |
| 177 | static int bootlog_module_handle(int key) |
| 178 | { |
nothing calls this directly
no test coverage detected