Mercurial > hg > crecord
changeset 51:c0e5e65165c1
crecord: bugfix - confirmation prompt was not appearing when 'c' was pressed for the first time
author | Mark Edgington <edgimar@gmail.com> |
---|---|
date | Fri, 26 Jun 2009 20:29:25 +0200 |
parents | df8d9afdaf2c |
children | 22a8bc9f4fd8 |
files | crecord/chunk_selector.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/crecord/chunk_selector.py +++ b/crecord/chunk_selector.py @@ -61,6 +61,7 @@ of the chosen chunks. """ + chunkSelector = CursesChunkSelector(headerList) curses.wrapper(chunkSelector.main, opts) @@ -870,6 +871,7 @@ self.printString(confirmWin, confirmText, pairName="selected") except curses.error: pass + self.stdscr.refresh() confirmWin.refresh() try: response = chr(self.stdscr.getch()) @@ -888,8 +890,7 @@ signal.signal(signal.SIGWINCH, self.sigwinchHandler) self.stdscr = stdscr self.yScreenSize, self.xScreenSize = self.stdscr.getmaxyx() - - curses.start_color() + # available colors: black, blue, cyan, green, magenta, white, yellow # init_pair(color_id, foreground_color, background_color) self.initColorPair(curses.COLOR_WHITE, curses.COLOR_BLACK, name="normal")