browser title now changes with xterm escape sequences. see

http://tldp.org/HOWTO/Xterm-Title-3.html
This commit is contained in:
billchurch 2018-02-17 09:21:43 -05:00
parent cd8b829675
commit 3a700eedf1
3 changed files with 8 additions and 1 deletions

View file

@ -1,4 +1,7 @@
# Change Log # Change Log
## [0.2.3] 2018-02-TBD
- Browser title window now changes with xterm escape sequences (see http://tldp.org/HOWTO/Xterm-Title-3.html)
## [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

View file

@ -143,6 +143,10 @@ socket.on('error', function (err) {
} }
}) })
term.on('title', function (title) {
document.title = title
})
// draw/re-draw menu and reattach listeners // draw/re-draw menu and reattach listeners
// when dom is changed, listeners are abandonded // when dom is changed, listeners are abandonded
function drawMenu (data) { function drawMenu (data) {