parent
3c605f85da
commit
b60b619d5b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue