Skip to content

Instantly share code, notes, and snippets.

@Tuurlijk
Created May 27, 2017 07:17
Show Gist options
  • Save Tuurlijk/ea5f402301f6136ad4686b458f922155 to your computer and use it in GitHub Desktop.
Save Tuurlijk/ea5f402301f6136ad4686b458f922155 to your computer and use it in GitHub Desktop.
ghci color prompt
-- Lambda prompt
-- Background color sequence = \ESC[48;5;236m
-- where
-- 236 = one of the 256 ansi color codes
-- Foreground color sequence = \ESC[38;5;244m
-- where
-- 244 = one of the 256 ansi color codes
-- Combined color sequence = \ESC[48;5;236;38;5;244m
-- Reset color = \ESC[m
--
-- https://en.wikipedia.org/wiki/ANSI_escape_code
:set prompt "\ESC[48;5;236;38;5;244m %s\ESC[38;5;28m λ \ESC[48;5;;38;5;236m \ESC[m"
@Tuurlijk
Copy link
Author

Tuurlijk commented May 27, 2017

Haskell color lambda prompt.

You'll need a Powerline capable font for this to render the arrow character correctly.

schermafbeelding 2017-05-27 om 09 18 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment