mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 03:58:17 +02:00
* Code cleanup. WIP theme stuff. Better CPR handling, etc.
This commit is contained in:
parent
7cfe72d53b
commit
1ef9a4a1ce
11 changed files with 147 additions and 125 deletions
|
@ -92,10 +92,10 @@ ClientTerminal.prototype.isANSI = function() {
|
|||
return 'ansi' === this.termType;
|
||||
};
|
||||
|
||||
ClientTerminal.prototype.write = function(s) {
|
||||
if(this.convertLF && typeof s === 'string') {
|
||||
ClientTerminal.prototype.write = function(s, convertLineFeeds) {
|
||||
convertLineFeeds = typeof convertLineFeeds === 'undefined' ? this.convertLF : convertLineFeeds;
|
||||
if(convertLineFeeds && typeof s === 'string') {
|
||||
s = s.replace(/\n/g, '\r\n');
|
||||
}
|
||||
|
||||
this.output.write(iconv.encode(s, this.outputEncoding));
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue