diff --git a/ChangeLog.md b/ChangeLog.md index b41aafa..36bd7c1 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,14 +1,18 @@ # Change Log -## [0.2.0] TBD +## [0.2.0] 2018-02-10 Mostly client (browser) related changes in this release ### Added - Menu system - Fontawesome icons - Resizing browser window sends resize events to terminal container as well as SSH session (pty) -- Adding terminal options +- New terminal options (config.json as well as GET vars) + - terminal.cursorBlink - boolean - Cursor blinks (true), does not (false) Default: true. + - terminal.scrollback - integer - Lines in the scrollback buffer. Default: 10000. + - terminal.tabStopWidth - integer - Tab stops at n characters Default: 8. - New serverside (nodejs) terminal configuration options (cursorBlink, scrollback, tabStopWidth) - Logging of MRH session (unassigned if not present) +- Express compression feature ### Changed - Updated xterm.js to 3.0.2 @@ -19,6 +23,7 @@ Mostly client (browser) related changes in this release - Changed asset packaging from grunt to Webpack to be inline with xterm.js direction - Moved logging and credentials buttons to menu system - Removed non-minified options (if you need to disable minification, modify webpack scripts and 'npm run build') + ### Fixed - Resolved loss of terminal foucs when interacting with option buttons (Logging, etc...) diff --git a/README.md b/README.md index 358af23..a48a5f6 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,12 @@ docker run --name webssh2 -d -p 2222:2222 webssh2 * **readyTimeout=** - _integer_ - How long (in milliseconds) to wait for the SSH handshake to complete. **Default:** 20000. **Enforced Values:** Min: 1, Max: 300000 +* **cursorBlink** - _boolean_ - Cursor blinks (true), does not (false) **Default:** true. + +* **scrollback** - _integer_ - Lines in the scrollback buffer. **Default:** 10000. **Enforced Values:** Min: 1, Max: 200000 + +* **tabStopWidth** - _integer_ - Tab stops at _n_ characters **Default:** 8. **Enforced Values:** Min: 1, Max: 100 + ## Headers * **allowreplay** - _boolean_ - Allow use of password replay feature, example `allowreplay: true` diff --git a/app.js b/app.js index e1a8f0b..58e7b80 100644 --- a/app.js +++ b/app.js @@ -51,8 +51,8 @@ app.get('/ssh/host/:host?', function (req, res, next) { req.query.sshterm) || config.ssh.term, terminal: { cursorBlink: (validator.isBoolean(req.query.cursorBlink + '') ? myutil.parseBool(req.query.cursorBlink) : config.terminal.cursorBlink), - scrollback: config.terminal.scrollback, - tabStopWidth: config.terminal.tabStopWidth + scrollback: (validator.isInt(req.query.scrollback + '', {min: 1, max: 200000}) && req.query.scrollback) ? req.query.scrollback : config.terminal.scrollback, + tabStopWidth: (validator.isInt(req.query.tabStopWidth + '', {min: 1, max: 100}) && req.query.tabStopWidth) ? req.query.tabStopWidth : config.terminal.tabStopWidth }, allowreplay: (validator.isBoolean(req.headers.allowreplay + '') ? myutil.parseBool(req.headers.allowreplay) : false), mrhsession: ((validator.isAlphanumeric(req.headers.mrhsession + '') && req.headers.mrhsession) ? req.headers.mrhsession : 'none'), diff --git a/package.json b/package.json index a0015e0..6dc35ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webssh2", - "version": "0.1.4", + "version": "0.2.0", "ignore": [ ".gitignore" ],