jcubic/jquery.terminal — Issue #15: Blank lines removed from output when term.echo() gets a longer string
Author: mgedmin
Created: 2012-01-30 18:42:38+00:00
State: open

Try this in the demo terminal at http://terminal.jcubic.pl/#demo

js> term.echo("aaaaaaaaaaaaaaaaaaa\n\nbbbbbbbbbbbbbbbbb\n\nccccccccccccccccccccccc\n\nd\n\ne")
aaaaaaaaaaaaaaaaaaa

bbbbbbbbbbbbbbbbb

ccccccccccccccccccccccc

d

e
[object Object]

and

js> term.echo("aaaaaaaaaaaaaaaaaaa\n\nbbbbbbbbbbbbbbbbb\n\nccccccccccccccccccccccc\n\ndd\n\ne")
ccccccccccccc\n\ndd\n\ne")
aaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbb
ccccccccccccccccccccccc
dd
e
[object Object]

Suddenly all the the blanks disappear when the string echoed becomes one character longer?