kenan238 / reblessed

A high-level terminal interface library for node.js.
MIT License
87 stars 10 forks source link

[Bug] TypeError: regex3.test is not a function #3

Closed KaKi87 closed 2 years ago

KaKi87 commented 2 years ago

Example

const
    blessed = require('reblessed'),
    screen = blessed.screen({
        smartCSR: true
    }),
    textbox = blessed.textbox({
        parent: screen,
        top: 0,
        inputOnFocus: true,
        border: 'line',
        height: 3
    });
screen.render();
textbox.focus();

Steps

Run & try typing

Expected outcome

Typed characters appear

Actual outcome

TypeError: regex3.test is not a function
    at isMouse (/home/kaki/tmp/reblessed/node_modules/reblessed/lib/keys.js:342:17)
    at emitKeys (/home/kaki/tmp/reblessed/node_modules/reblessed/lib/keys.js:124:7)
    at ReadStream.onData (/home/kaki/tmp/reblessed/node_modules/reblessed/lib/keys.js:50:14)
    at ReadStream.emit (events.js:412:35)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at ReadStream.Readable.push (internal/streams/readable.js:206:10)
    at TTY.onStreamRead (internal/stream_base_commons.js:188:23)

Additional info

Running with blessed instead of reblessed works.


Thanks

kenan238 commented 2 years ago

Alright, im going to check that.

kenan238 commented 2 years ago

Done! Please see this commit