]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
manhole: add more keybindings
authorBrian Warner <warner@lothar.com>
Mon, 4 Dec 2006 02:05:08 +0000 (19:05 -0700)
committerBrian Warner <warner@lothar.com>
Mon, 4 Dec 2006 02:05:08 +0000 (19:05 -0700)
allmydata/manhole.py

index c1e11b401505c1517d1f878a8ec56504b516a359..3926a2b73ea81d712bf2aad0f45be92fb80c0a89 100644 (file)
@@ -81,8 +81,15 @@ class AuthorizedKeysChecker(conchc.SSHPublicKeyDatabase):
 class ModifiedColoredManhole(manhole.ColoredManhole):
     def connectionMade(self):
         manhole.ColoredManhole.connectionMade(self)
+        # look in twisted.conch.recvline.RecvLine for hints
         self.keyHandlers["\x08"] = self.handle_BACKSPACE
         self.keyHandlers["\x15"] = self.handle_KILLLINE
+        self.keyHandlers["\x01"] = self.handle_HOME
+        self.keyHandlers["\x04"] = self.handle_DELETE
+        self.keyHandlers["\x05"] = self.handle_END
+        self.keyHandlers["\x0b"] = self.handle_KILLLINE # really kill-to-end
+        #self.keyHandlers["\xe2"] = self.handle_BACKWARDS_WORD # M-b
+        #self.keyHandlers["\xe6"] = self.handle_FORWARDS_WORD # M-f
 
     def handle_KILLLINE(self):
         self.handle_END()