mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 11:48:21 +01:00
fix terminal bug
This commit is contained in:
parent
d9246bf422
commit
73233e48f2
@ -68,7 +68,7 @@
|
||||
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/wTerm/README.md",
|
||||
"category": "System",
|
||||
"author": "Xuan Sang LE",
|
||||
"version": "0.0.2-a",
|
||||
"version": "0.0.3-a",
|
||||
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/wTerm/build/release/wTerm.zip"
|
||||
}
|
||||
|
||||
|
@ -61,6 +61,7 @@
|
||||
});
|
||||
return m.show(e);
|
||||
};
|
||||
this.resizeContent();
|
||||
this.openSession();
|
||||
if (!this.systemsetting.desktop.menu[this.name]) {
|
||||
|
||||
@ -107,6 +108,9 @@
|
||||
this.fitAddon.fit();
|
||||
ncol = this.term.cols;
|
||||
nrow = this.term.rows;
|
||||
if (!this.socket) {
|
||||
return;
|
||||
}
|
||||
return this.socket.send(`s${ncol}:${nrow}`);
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "xsang.le@gmail.com"
|
||||
},
|
||||
"version":"0.0.2-a",
|
||||
"version":"0.0.3-a",
|
||||
"category":"System",
|
||||
"iconclass":"fa fa-terminal",
|
||||
"mimes":["none"],
|
||||
|
Binary file not shown.
@ -43,7 +43,7 @@ class wTerm extends this.OS.GUI.BaseApplication
|
||||
return unless e
|
||||
@mctxHandle e.data.item.get "data"
|
||||
m.show e
|
||||
|
||||
@resizeContent()
|
||||
@openSession()
|
||||
|
||||
# make desktop menu if not exist
|
||||
@ -70,6 +70,7 @@ class wTerm extends this.OS.GUI.BaseApplication
|
||||
@fitAddon.fit()
|
||||
ncol = @term.cols
|
||||
nrow = @term.rows
|
||||
return unless @socket
|
||||
@socket.send "s#{ncol}:#{nrow}"
|
||||
|
||||
openSession: () ->
|
||||
|
@ -6,7 +6,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "xsang.le@gmail.com"
|
||||
},
|
||||
"version":"0.0.2-a",
|
||||
"version":"0.0.3-a",
|
||||
"category":"System",
|
||||
"iconclass":"fa fa-terminal",
|
||||
"mimes":["none"],
|
||||
|
Loading…
Reference in New Issue
Block a user