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: