Slackadaisical icon indicating copy to clipboard operation
Slackadaisical copied to clipboard

Crash while pressing "ENTER/ENTER/.../ENTER" in chat window on a real DEC VT320 in VT100 mode

Open sblendorio opened this issue 4 years ago • 0 comments

Hi, I'm using Slackadaisical on a real terminal DEC VT320 in VT100 mode.

The problem happens when I'm in the chat window ("ctrl-o" mode), like this:

image

If I repeatedly press ENTER, this error happens and the application stops itself:

TypeError: Cannot read property 'width' of null
    at Box.Element._getWidth (/home/sblendorio/github/Slackadaisical/node_modules/blessed/lib/widgets/element.js:1060:20)
    at Box.width (/home/sblendorio/github/Slackadaisical/node_modules/blessed/lib/widgets/element.js:1095:15)
    at MessagesList.render (/home/sblendorio/github/Slackadaisical/dist/MessagesList.js:103:43)
    at MessagesList.loadHistory (/home/sblendorio/github/Slackadaisical/dist/MessagesList.js:141:18)
    at /home/sblendorio/github/Slackadaisical/dist/MessagesList.js:85:23
...

image

sblendorio avatar Jan 28 '22 16:01 sblendorio