Created
October 19, 2012 07:28
-
-
Save pyrtsa/3916723 to your computer and use it in GitHub Desktop.
Color your ghci prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Print the imported modules in green, then ">>> " on the following line. | |
:set prompt "\SOH\ESC[32m\STX%s\SOH\ESC[0m\STX\n\SOH\ESC[32;1m\STX>>>\SOH\ESC[0m\STX " | |
-- (Disclaimer: ghci doesn't currently support configuring the prompt on | |
-- continuation lines for multiline inputs, so you'll get something like | |
-- "Prelude|" instead of something convenient like a green "... ". Patches | |
-- welcome, I guess!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
:set prompt-cont
will work for continuation lines now.