mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-03 00:12:01 +02:00
* Lots of WIP on FSE demo
* WIP emit position from MutliLineEditTextView * ansi.rawWrite() when no iconv/lfs to be processed
This commit is contained in:
parent
60cae7de3d
commit
3d5d21bcb5
17 changed files with 223 additions and 80 deletions
|
@ -426,6 +426,7 @@ function display(options, cb) {
|
|||
var generatedId = 100;
|
||||
|
||||
var cprListener = function(pos) {
|
||||
console.log(pos)
|
||||
if(mciPosQueue.length > 0) {
|
||||
var forMapItem = mciPosQueue.shift();
|
||||
mciMap[forMapItem].position = pos;
|
||||
|
@ -437,6 +438,7 @@ function display(options, cb) {
|
|||
};
|
||||
|
||||
function completed() {
|
||||
console.log('completed')
|
||||
options.client.removeListener('cursor position report', cprListener);
|
||||
parser.removeAllListeners(); // :TODO: Necessary???
|
||||
|
||||
|
@ -507,7 +509,8 @@ function display(options, cb) {
|
|||
|
||||
mciPosQueue.push(mapKey);
|
||||
|
||||
options.client.term.write(ansi.queryPos(), false); // :TODO: don't convert LF's
|
||||
console.log('querying pos...')
|
||||
options.client.term.rawWrite(ansi.queryPos());
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -542,12 +545,12 @@ function display(options, cb) {
|
|||
}
|
||||
|
||||
if(ansiFont.length > 1) {
|
||||
options.client.term.write(ansiFont);
|
||||
options.client.term.rawWrite(ansiFont);
|
||||
}
|
||||
|
||||
|
||||
if(iceColors) {
|
||||
options.client.term.write(ansi.blinkToBrightIntensity());
|
||||
options.client.term.rawWrite(ansi.blinkToBrightIntensity());
|
||||
}
|
||||
|
||||
parser.reset(options.art);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue