From 6e09b5ddb91c39f83d4075619bce62199c33a8a1 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sun, 3 Dec 2006 19:05:08 -0700 Subject: [PATCH] manhole: add more keybindings --- allmydata/manhole.py | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- 2.45.2