You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.
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)
split on \n
limit to n lines
join them back together with \n
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: