branch : pmacs2
This commit is contained in:
moculus 2008-11-08 16:37:20 +00:00
parent 3c605f85da
commit b60b619d5b
1 changed files with 5 additions and 2 deletions

View File

@ -68,7 +68,10 @@ class XTermBuffer(Buffer, XTerm):
self._term_insert(c) self._term_insert(c)
def term_handle_ctl(self, c): def term_handle_ctl(self, c):
n = ord(c) n = ord(c)
if n == 8: if n == 7:
#bell
pass
elif n == 8:
self.term_do_backspace() self.term_do_backspace()
elif n == 9: elif n == 9:
self.term_do_tab() self.term_do_tab()
@ -81,7 +84,7 @@ class XTermBuffer(Buffer, XTerm):
elif n == 127: elif n == 127:
self.term_do_delete() self.term_do_delete()
else: else:
self._term_insert('%x' % n) self._term_insert('%03o' % n)
def term_receive(self, s): def term_receive(self, s):
for c in s: for c in s: