From b60b619d5b685d6686d511af7d9fdd50751c66f7 Mon Sep 17 00:00:00 2001 From: moculus Date: Sat, 8 Nov 2008 16:37:20 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- buffer/emul.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/buffer/emul.py b/buffer/emul.py index b28bb76..1a97aac 100644 --- a/buffer/emul.py +++ b/buffer/emul.py @@ -68,7 +68,10 @@ class XTermBuffer(Buffer, XTerm): self._term_insert(c) def term_handle_ctl(self, c): n = ord(c) - if n == 8: + if n == 7: + #bell + pass + elif n == 8: self.term_do_backspace() elif n == 9: self.term_do_tab() @@ -81,7 +84,7 @@ class XTermBuffer(Buffer, XTerm): elif n == 127: self.term_do_delete() else: - self._term_insert('%x' % n) + self._term_insert('%03o' % n) def term_receive(self, s): for c in s: