Show More
@@ -1764,6 +1764,12 b' are you sure you want to review/edit and' | |||||
1764 | except curses.error: |
|
1764 | except curses.error: | |
1765 | self.usecolor = False |
|
1765 | self.usecolor = False | |
1766 |
|
1766 | |||
|
1767 | # In some situations we may have some cruft left on the "alternate | |||
|
1768 | # screen" from another program (or previous iterations of ourself), and | |||
|
1769 | # we won't clear it if the scroll region is small enough to comfortably | |||
|
1770 | # fit on the terminal. | |||
|
1771 | self.stdscr.clear() | |||
|
1772 | ||||
1767 | # available colors: black, blue, cyan, green, magenta, white, yellow |
|
1773 | # available colors: black, blue, cyan, green, magenta, white, yellow | |
1768 | # init_pair(color_id, foreground_color, background_color) |
|
1774 | # init_pair(color_id, foreground_color, background_color) | |
1769 | self.initcolorpair(None, None, name="normal") |
|
1775 | self.initcolorpair(None, None, name="normal") |
General Comments 0
You need to be logged in to leave comments.
Login now