Strange bug in nodejs console

Bug description:
Strange behavior in nodejs console

Expected vs Current Behavior:
for some reason whenever I push any key (in a readline prompt), the keystroke is repeated twice. So if I push ‘4’, it types 2 4s there.

1 Like

I think this can often happen when the width of the console is not wide enough to fit the full line, as a result lines can be duplicated.

3 Likes

Edit: it was a problem with having multiple readline interfaces open. After rewriting basically all of my code to work with readline better, everything works normally.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.