Skip to content

Commit 16d9687

Browse files
small fixes in read *c and /tail
1 parent b320f47 commit 16d9687

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

csp/webTerminal/js/terminal.js.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,8 @@ var terminal = new function() {
862862
intervalID = -1,
863863
interval = 1000,
864864
check = function() {
865+
if (terminal.mode === terminal.modes.CLEAR_IO ||
866+
terminal.mode === terminal.modes.SQL) return;
865867
try {
866868
server.submit(terminal.serverActions.CHECK_WATCH)
867869
} catch (e) {
@@ -1272,6 +1274,7 @@ var terminal = new function() {
12721274
if (readChar) {
12731275
readChar = false;
12741276
server.submit("",String.fromCharCode(key),true);
1277+
terminal.output.write(String.fromCharCode(key));
12751278
hid.preventDefault(event);
12761279
this.clear();
12771280
return false;

0 commit comments

Comments
 (0)