Right now the :repl messages are stored inside the state as an array of strings. the problem is: usually the process output doesn't come buffered onto lines, so when rendered, the text comes off broken. Also, sliding is very rudimentary - a better buffer leads to better sliding.
Options
Investigate node's child_process lib, maybe there is a setting for buffering newlines
buffer them manually
Store repl output as a string
append to this string every evaluation / output (instead of pushing a new string to the array)
Right now the :repl messages are stored inside the state as an array of strings. the problem is: usually the process output doesn't come buffered onto lines, so when rendered, the text comes off broken. Also, sliding is very rudimentary - a better buffer leads to better sliding.
Options
child_process
lib, maybe there is a setting for buffering newlines\n
n
lines\n