summary refs log tree commit diff
path: root/pkgs/tools/networking/wicd/fix-curses.patch
diff options
context:
space:
mode:
authorRok Garbas <rok@garbas.si>2016-05-12 03:19:28 +0200
committerRok Garbas <rok@garbas.si>2016-05-12 03:19:28 +0200
commit3d932ba135f9fe7eb649269543276dffa7aa563a (patch)
tree2a73b609318baa7c4bcf0ab19ba99a766a98a129 /pkgs/tools/networking/wicd/fix-curses.patch
parent44a6a5ed342e7d70f2efdd053c788b15c39da6a6 (diff)
downloadnixlib-3d932ba135f9fe7eb649269543276dffa7aa563a.tar
nixlib-3d932ba135f9fe7eb649269543276dffa7aa563a.tar.gz
nixlib-3d932ba135f9fe7eb649269543276dffa7aa563a.tar.bz2
nixlib-3d932ba135f9fe7eb649269543276dffa7aa563a.tar.lz
nixlib-3d932ba135f9fe7eb649269543276dffa7aa563a.tar.xz
nixlib-3d932ba135f9fe7eb649269543276dffa7aa563a.tar.zst
nixlib-3d932ba135f9fe7eb649269543276dffa7aa563a.zip
wicd: wicd-curses fix for ...
... AttributeError: 'Screen' object has no attribute 'get_input_nonblocking'

fixes #10281
Diffstat (limited to 'pkgs/tools/networking/wicd/fix-curses.patch')
-rw-r--r--pkgs/tools/networking/wicd/fix-curses.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/tools/networking/wicd/fix-curses.patch b/pkgs/tools/networking/wicd/fix-curses.patch
new file mode 100644
index 000000000000..138dfbabfd5c
--- /dev/null
+++ b/pkgs/tools/networking/wicd/fix-curses.patch
@@ -0,0 +1,15 @@
+--- a/curses/wicd-curses.py	2015-01-27 22:35:25.414781192 -0300
++++ b/curses/wicd-curses.py	2015-01-28 01:13:48.078904587 -0300
+@@ -1153,9 +1153,10 @@
+         if not ui._started:
+             return False
+ 
+-        input_data = ui.get_input_nonblocking()
++        ui.set_input_timeouts(max_wait=0)
++        input_data = ui.get_input()
+         # Resolve any "alarms" in the waiting
+-        self.handle_keys(input_data[1])
++        self.handle_keys(input_data)
+ 
+         # Update the screen
+         canvas = self.frame.render((self.size), True)