-
Notifications
You must be signed in to change notification settings - Fork 20
special color for user input in REPL #64
Comments
How about a compromise: only the |
Compromise because what I suggested is hard? |
Yup. It's pretty tricky to get colors in the terminal to be well-behaved. For example, If you ^C in the middle of an ANSI control code, it will break your terminal (e.g. you wont be able to see what your typing). Limiting the use of color is generally a good idea. This is why you don't tend to see very many colorful terminal applications (unless it's curses). |
Should probably xref:#11 |
Seems like the ^C problem would bite us for using any amount of color: limiting the amount doesn't really fix it, does it? But to fix it, isn't there a reset-terminal ANSI code that we could emit after ^C? How about the idea of having user input in the default color, but all output in other colors? Does that help? The output is pretty darn colorful already ... |
Could user input be shown at the REPL in a special color? Or perhaps in bold?
It's nice to distinguish input from output when scrolling. And it would also be helpful to distinguish them in doctests and when showing REPL traces in the tutorial or manual.
(If user input needs to be in the default color, I imagine everything else could be in a special color ...)
The text was updated successfully, but these errors were encountered: