Show More
@@ -962,8 +962,8 b' class curseschunkselector(object):' | |||
|
962 | 962 | # turn tabs into spaces |
|
963 | 963 | instr = instr.expandtabs(4) |
|
964 | 964 | strwidth = encoding.colwidth(instr) |
|
965 |
numspaces = (width - ((strwidth + xstart) % width) |
|
|
966 |
return instr + " " * numspaces |
|
|
965 | numspaces = (width - ((strwidth + xstart) % width)) | |
|
966 | return instr + " " * numspaces | |
|
967 | 967 | |
|
968 | 968 | def printstring(self, window, text, fgcolor=None, bgcolor=None, pair=None, |
|
969 | 969 | pairname=None, attrlist=None, towin=True, align=True, showwhtspc=False): |
@@ -1770,6 +1770,12 b' are you sure you want to review/edit and' | |||
|
1770 | 1770 | # fit on the terminal. |
|
1771 | 1771 | self.stdscr.clear() |
|
1772 | 1772 | |
|
1773 | # don't display the cursor | |
|
1774 | try: | |
|
1775 | curses.curs_set(0) | |
|
1776 | except curses.error: | |
|
1777 | pass | |
|
1778 | ||
|
1773 | 1779 | # available colors: black, blue, cyan, green, magenta, white, yellow |
|
1774 | 1780 | # init_pair(color_id, foreground_color, background_color) |
|
1775 | 1781 | self.initcolorpair(None, None, name="normal") |
General Comments 0
You need to be logged in to leave comments.
Login now