Small fix to MacOS terminal

This commit is contained in:
Ylian Saint-Hilaire 2019-07-19 12:23:12 -07:00
parent e8ecc02e66
commit 912cd74fd6
2 changed files with 4 additions and 2 deletions

View File

@ -995,7 +995,6 @@ function createMeshCore(agent)
this.httprequest.process.stdout.pipe(this, { dataTypeSkip: 1 }); // 0 = Binary, 1 = Text. this.httprequest.process.stdout.pipe(this, { dataTypeSkip: 1 }); // 0 = Binary, 1 = Text.
this.pipe(this.httprequest.process.stdin, { dataTypeSkip: 1, end: false }); // 0 = Binary, 1 = Text. this.pipe(this.httprequest.process.stdin, { dataTypeSkip: 1, end: false }); // 0 = Binary, 1 = Text.
this.prependListener('end', function () { this.httprequest.process.kill(); }); this.prependListener('end', function () { this.httprequest.process.kill(); });
this.httprequest.process.stdin.write("stty erase ^H\nalias ls='ls --color=auto'\nclear\n");
} }
// Perform notification if needed. Toast messages may not be supported on all platforms. // Perform notification if needed. Toast messages may not be supported on all platforms.

View File

@ -1526,6 +1526,7 @@
// //
function ondeskkeypress(e) { function ondeskkeypress(e) {
toggleSoftKeys(0);
Q('DeskSoftInput').value = ''; Q('DeskSoftInput').value = '';
setSessionActivity(); setSessionActivity();
if (desktop && !xxdialogMode && xxcurrentView == 10) { if (desktop && !xxdialogMode && xxcurrentView == 10) {
@ -1543,6 +1544,7 @@
} }
function ondeskkeydown(e) { function ondeskkeydown(e) {
toggleSoftKeys(0);
Q('DeskSoftInput').value = ''; Q('DeskSoftInput').value = '';
setSessionActivity(); setSessionActivity();
if (desktop && !xxdialogMode && xxcurrentView == 10) { if (desktop && !xxdialogMode && xxcurrentView == 10) {
@ -1560,6 +1562,7 @@
} }
function ondeskkeyup(e) { function ondeskkeyup(e) {
toggleSoftKeys(0);
Q('DeskSoftInput').value = ''; Q('DeskSoftInput').value = '';
setSessionActivity(); setSessionActivity();
if (desktop && !xxdialogMode && xxcurrentView == 10) { if (desktop && !xxdialogMode && xxcurrentView == 10) {