refactor title reset.

This commit is contained in:
Christopher Jeffrey 2015-07-21 20:06:50 -07:00
parent 0cf4934ac1
commit 2072968e03
1 changed files with 10 additions and 8 deletions

View File

@ -142,6 +142,15 @@ Program.bind = function(program) {
program._exiting = true;
});
});
// Potentially reset window title on exit:
// unshiftEvent(process, 'exit', function() {
// Program.list.forEach(function(program) {
// if (program._originalTitle) {
// program.setTitle(program._originalTitle);
// }
// });
// });
};
Program.prototype.__proto__ = EventEmitter.prototype;
@ -297,14 +306,7 @@ Program.prototype.term = function(is) {
};
Program.prototype.listen = function() {
var keys = require('./keys')
, self = this;
// unshiftEvent(process, 'exit', function() {
// if (self._originalTitle) {
// self.setTitle(self._originalTitle);
// }
// });
// Potentially reset window title on exit:
// this.setTitleModeFeature(3);
// this.manipulateWindow(21, function(err, data) {
// if (err) return;