mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-07 21:25:34 +02:00
Set baud emu before cls such that terms without support don't show garbage... most of the time
This commit is contained in:
parent
8803465762
commit
1b0891b0c3
1 changed files with 10 additions and 5 deletions
|
@ -247,14 +247,19 @@ MenuModule.prototype.leave = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
MenuModule.prototype.beforeArt = function(cb) {
|
MenuModule.prototype.beforeArt = function(cb) {
|
||||||
if(this.cls) {
|
//
|
||||||
this.client.term.write(ansi.resetScreen());
|
// Set emulated baud rate - note that some terminals will display
|
||||||
}
|
// part of the ESC sequence here (generally a single 'r') if they
|
||||||
|
// do not support cterm style baud rates
|
||||||
|
//
|
||||||
if(_.isNumber(this.menuConfig.options.baudRate)) {
|
if(_.isNumber(this.menuConfig.options.baudRate)) {
|
||||||
this.client.term.write(ansi.setEmulatedBaudRate(this.menuConfig.options.baudRate));
|
this.client.term.write(ansi.setEmulatedBaudRate(this.menuConfig.options.baudRate));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(this.cls) {
|
||||||
|
this.client.term.write(ansi.resetScreen());
|
||||||
|
}
|
||||||
|
|
||||||
return cb(null);
|
return cb(null);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue