[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#586433: python2.6: curses fails to restore terminal settings



reassign 586433 python2.6 2.6.5+20100616-1 retitle 586433 python2.6: curses fails to restore terminal settings
affects 586433 offlineimap
thanks

* Julien Cristau <jcristau@debian.org>, 2010-06-19, 14:56:
After upgrading python from 2.5 to 2.6, the terminal is not restored
when offlineimap quits (using default curses ui).

I believe this is a bug in python2.6. Minimal example attached.

$ stty; python2.5 curses-sample.py; stty
speed 38400 baud; line = 0;
iutf8
speed 38400 baud; line = 0;
iutf8

$ stty; python2.6 curses-sample.py; stty
speed 38400 baud; line = 0;
iutf8
speed 0 baud; line = 0;
                       intr = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof = <undef>; start = <undef>; stop = <undef>;
               susp = <undef>; rprnt = <undef>; werase = <undef>; lnext = <undef>; flush = <undef>; min = 0; time = 0;
                                                                                                                      -brkint -icrnl -imaxbel
                     -opost -onlcr
                                  -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
--
Jakub Wilk
#!/usr/bin/python

from curses import wrapper

def dummy(stdscr): pass

wrapper(dummy)
wrapper(dummy)

Attachment: signature.asc
Description: Digital signature


Reply to: