From: Brian Warner Date: Mon, 4 Dec 2006 02:05:08 +0000 (-0700) Subject: manhole: add more keybindings X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~479 X-Git-Url: https://git.rkrishnan.org/tahoe_css?a=commitdiff_plain;h=6e09b5ddb91c39f83d4075619bce62199c33a8a1;p=tahoe-lafs%2Ftahoe-lafs.git manhole: add more keybindings --- diff --git a/allmydata/manhole.py b/allmydata/manhole.py index c1e11b40..3926a2b7 100644 --- a/allmydata/manhole.py +++ b/allmydata/manhole.py @@ -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()