ESC]0; is now removed from log files when using the browser-side logging feature. fixes #49
This commit is contained in:
parent
d8e8fcca9b
commit
d99693b37c
3 changed files with 7 additions and 2 deletions
|
@ -5,6 +5,11 @@
|
||||||
- Added bellStyle options
|
- Added bellStyle options
|
||||||
- `GET var`: **bellStyle** - _string_ - Style of terminal bell: ("sound"|"none"). **Default:** "sound". **Enforced Values:** "sound", "none"
|
- `GET var`: **bellStyle** - _string_ - Style of terminal bell: ("sound"|"none"). **Default:** "sound". **Enforced Values:** "sound", "none"
|
||||||
- `config.json`: **terminal.bellStyle** - _string_ - Style of terminal bell: (sound|none). **Default:** "sound".
|
- `config.json`: **terminal.bellStyle** - _string_ - Style of terminal bell: (sound|none). **Default:** "sound".
|
||||||
|
### Changed
|
||||||
|
- Updated xterm.js to 3.1.0
|
||||||
|
- https://github.com/xtermjs/xterm.js/releases/tag/3.1.0
|
||||||
|
### Fixed
|
||||||
|
- ESC]0; is now removed from log files when using the browser-side logging feature
|
||||||
|
|
||||||
## [0.2.0] 2018-02-10
|
## [0.2.0] 2018-02-10
|
||||||
Mostly client (browser) related changes in this release
|
Mostly client (browser) related changes in this release
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -207,7 +207,7 @@ function downloadLog () { // eslint-disable-line
|
||||||
logDate.getDate() + '_' + logDate.getHours() + logDate.getMinutes() +
|
logDate.getDate() + '_' + logDate.getHours() + logDate.getMinutes() +
|
||||||
logDate.getSeconds() + '.log'
|
logDate.getSeconds() + '.log'
|
||||||
// regex should eliminate escape sequences from being logged.
|
// regex should eliminate escape sequences from being logged.
|
||||||
var blob = new Blob([sessionLog.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, '')], {
|
var blob = new Blob([sessionLog.replace(/[\u001b\u009b][[\]()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><;]/g, '')], {
|
||||||
type: 'text/plain'
|
type: 'text/plain'
|
||||||
})
|
})
|
||||||
if (window.navigator.msSaveOrOpenBlob) {
|
if (window.navigator.msSaveOrOpenBlob) {
|
||||||
|
|
Loading…
Reference in a new issue