| 1 | Update the wicd-curses client to work with urwid-1.3. Based on a patch from: |
| 2 | http://technik.blogbasis.net/wicd-curses-fix-fuer-attributeerror-screen-object-no-attribute-get_input_nonblocking-04-12-2014 |
| 3 | |
| 4 | --- wicd-1.7.3/curses/wicd-curses.py.orig 2014-12-21 14:40:46.000000000 -0500 |
| 5 | +++ wicd-1.7.3/curses/wicd-curses.py 2015-02-05 23:41:17.530901204 -0500 |
| 6 | @@ -1153,9 +1153,10 @@ |
| 7 | if not ui._started: |
| 8 | return False |
| 9 | |
| 10 | - input_data = ui.get_input_nonblocking() |
| 11 | + ui.set_input_timeouts(max_wait=0) |
| 12 | + input_data = ui.get_input() |
| 13 | # Resolve any "alarms" in the waiting |
| 14 | - self.handle_keys(input_data[1]) |
| 15 | + self.handle_keys(input_data) |
| 16 | |
| 17 | # Update the screen |
| 18 | canvas = self.frame.render((self.size), True) |