Draw the header bar
(self)
| 89 | return ', '.join(parts) |
| 90 | |
| 91 | def _draw_header(self): |
| 92 | """Draw the header bar""" |
| 93 | height, width = self.stdscr.getmaxyx() |
| 94 | header = " sqlmap - ncurses TUI " |
| 95 | self.stdscr.attron(curses.color_pair(1) | curses.A_BOLD) |
| 96 | self.stdscr.addstr(0, 0, header.center(width)) |
| 97 | self.stdscr.attroff(curses.color_pair(1) | curses.A_BOLD) |
| 98 | |
| 99 | def _get_tab_bar_height(self): |
| 100 | """Calculate how many rows the tab bar uses""" |