implemented changing window title

cpsdqs/unified-input
Ondřej Hruška 7 years ago
parent 65bdb0abd7
commit a54343ec23
  1. 5
      js/term_screen.js

@ -1381,7 +1381,10 @@ window.TermScreen = class TermScreen extends EventEmitter {
*/
loadLabels (str) {
let pieces = str.split('\x01')
qs('#screen-title').textContent = pieces[0]
let screenTitle = pieces[0]
qs('#screen-title').textContent = screenTitle
if (screenTitle.length === 0) screenTitle = 'Terminal'
qs('title').textContent = `${screenTitle} :: ESPTerm`
$('#action-buttons button').forEach((button, i) => {
let label = pieces[i + 1].trim()
// if empty string, use the "dim" effect and put nbsp instead to

Loading…
Cancel
Save