diff --git a/packages.json b/packages.json index 999a198..6026f05 100644 --- a/packages.json +++ b/packages.json @@ -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" } diff --git a/wTerm/build/debug/main.js b/wTerm/build/debug/main.js index b3abec8..71fab2e 100644 --- a/wTerm/build/debug/main.js +++ b/wTerm/build/debug/main.js @@ -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}`); } diff --git a/wTerm/build/debug/package.json b/wTerm/build/debug/package.json index c924f19..332faa6 100644 --- a/wTerm/build/debug/package.json +++ b/wTerm/build/debug/package.json @@ -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"], diff --git a/wTerm/build/release/wTerm.zip b/wTerm/build/release/wTerm.zip index 2ecdea2..5b13d66 100644 Binary files a/wTerm/build/release/wTerm.zip and b/wTerm/build/release/wTerm.zip differ diff --git a/wTerm/main.coffee b/wTerm/main.coffee index 79ed95c..f2a9d9b 100644 --- a/wTerm/main.coffee +++ b/wTerm/main.coffee @@ -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: () -> diff --git a/wTerm/package.json b/wTerm/package.json index c924f19..332faa6 100644 --- a/wTerm/package.json +++ b/wTerm/package.json @@ -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"],