1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 12:28:08 +01:00

curses/configscript_curses.py:

Fixed the typo that rworkman noticed.
curses/wicd-curses.py:
  Ensured that the upper status bar updates itself immediately after a
    connection is made, as opposed to a second or two after the fact
curses/README: Added a FAQ and added the new keybindings
in/man=wicd-curses.8.in: Added the new keybindings
This commit is contained in:
Andrew Psaltis
2009-01-30 23:46:07 -05:00
parent d137cbad85
commit 7cde91e14a
4 changed files with 36 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ ask me. I try to be on the #wicd Freenode IRC channel most of the time.
Controls: Controls:
F5 : refresh wireless networks F5 : refresh wireless networks
F8 or Q: quit F8 or Q or q: quit
D : disconnect from all active networks D : disconnect from all active networks
ESC : if connecting to a network, stop doing so ESC : if connecting to a network, stop doing so
ENTER : Attempt connection to selected network ENTER : Attempt connection to selected network
@@ -25,7 +25,7 @@ P : Display preferences dialog
C : Display network configuration for selected network C : Display network configuration for selected network
A : Display "About" dialog A : Display "About" dialog
I : Raise the "Scan for hidden networks" dialog I : Raise the "Scan for hidden networks" dialog
H : Raise help dialog H or h or ? : Raise help dialog
S : Provide instructions for configuring scripts S : Provide instructions for configuring scripts
delete : Delete selected wired network profile (from the wired ComboBox) delete : Delete selected wired network profile (from the wired ComboBox)
F2 : Rename selected wired network profile (from the wired ComboBox) F2 : Rename selected wired network profile (from the wired ComboBox)
@@ -36,4 +36,21 @@ ESC or Q: Quit dialog without saving information (if present)
Meta+Left/Right: Change tabs Left/Right (if tabs present) Meta+Left/Right: Change tabs Left/Right (if tabs present)
Meta+Enter : Quit dialog and save information Meta+Enter : Quit dialog and save information
FAQ (WIP):
What is wicd-curses?
See above. :-)
Why didn't you call it wicd-urwid? There is a hachoir-urwid package out there.
I first called this "urwicd". However, due to the relative obscurity of
the urwid package, and the fact that many more people know what "curses"
is, I named it wicd-curses. After all, it _does_ use curses (by default,
anyway).
Why don't you support lower-case keybindings for most of the commands?
I was trying to prevent mass chaos from happening because of mashing keys.
Of course, if you unwittingly have caps-lock on, that's going to cause said
chaos, too, so you might want to check that (or ask me about changing the
keymaps to ctrl/meta+KEY)
~NaCl ~NaCl

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
"""configscript_curses.py """configscript_curses.py
Kind of like configscript.py, except writtwn using urwid. Kind of like configscript.py, except written using urwid.
Also recycles a lot of configscript.py, too. :-) Also recycles a lot of configscript.py, too. :-)
""" """

View File

@@ -712,6 +712,7 @@ class appGUI():
# immediately. # immediately.
if from_idle and not self.connecting: if from_idle and not self.connecting:
self.update_netlist() self.update_netlist()
self.update_status()
self.update_ui() self.update_ui()
return False return False
toAppend = '' toAppend = ''
@@ -851,7 +852,7 @@ class appGUI():
continue continue
self.frame.keypress( self.size, k ) self.frame.keypress( self.size, k )
return True return True
# TODO: Update this to use the networkentry stuff
def connect(self, nettype, networkid, networkentry=None): def connect(self, nettype, networkid, networkentry=None):
""" Initiates the connection process in the daemon. """ """ Initiates the connection process in the daemon. """
if nettype == "wireless": if nettype == "wireless":

View File

@@ -19,7 +19,7 @@ All of these are case sensitive.
.BR enter .BR enter
Connect to selected network Connect to selected network
.TP .TP
.BR "F8 " or " Q" .BR "F8 " or " Q " or " q"
Quit the client. Quit the client.
.TP .TP
.BR D .BR D
@@ -37,7 +37,7 @@ Bring up the preferences controller
.BR I .BR I
Bring up hidden network scanning dialog Bring up hidden network scanning dialog
.TP .TP
.BR H .BR "H " or " h " or " ?"
Bring up a rather simplistic help dialog. Of course, it mentions this man page first. :-) Bring up a rather simplistic help dialog. Of course, it mentions this man page first. :-)
.\".PP .\".PP
.\"The following is a work in progress and might not be fully functional as of yet. .\"The following is a work in progress and might not be fully functional as of yet.