summaryrefslogtreecommitdiff
path: root/portato/gui/qt/terminal.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/qt/terminal.py')
-rw-r--r--portato/gui/qt/terminal.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/portato/gui/qt/terminal.py b/portato/gui/qt/terminal.py
index 0c7cf8b..a70e56b 100644
--- a/portato/gui/qt/terminal.py
+++ b/portato/gui/qt/terminal.py
@@ -17,16 +17,17 @@ from threading import Thread, currentThread
from os import read, close
import errno
+from portato.gui.wrapper import Console
+from portato.helper import debug
+
try:
from curses.ascii import ctrl
except ImportError: # emulate ctrl-behavior for known values
def ctrl (val):
if val == "H": return '\x08'
elif val == "W": return '\x17'
- else: debug("unknown error passed to emulated ctrl:",val)
+ else: debug("unknown error passed to emulated ctrl: %s",val)
-from portato.gui.wrapper import Console
-from portato.helper import debug
class WriteEvent (Qt.QEvent):
TYPE = Qt.QEvent.Type(1001)