Skip to content

Instantly share code, notes, and snippets.

@hicolour
Last active December 11, 2015 07:45
Show Gist options
  • Save hicolour/3af56e70bfbfacb46a83 to your computer and use it in GitHub Desktop.
Save hicolour/3af56e70bfbfacb46a83 to your computer and use it in GitHub Desktop.
wicd-curses-patch
--- /usr/share/wicd/curses/wicd-curses.py 2013-08-20 15:09:54.000000000 -0400
+++ /tmp/wicd.py 2014-12-05 23:32:05.303349880 -0500
@@ -927,9 +927,11 @@
if not ui._started:
return False
- input_data = ui.get_input_nonblocking()
+ # 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) # [1]
# Update the screen
canvas = self.frame.render( (self.size),True )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment