diff options
author | tv <tv@shackspace.de> | 2014-07-28 00:22:53 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-07-28 00:22:53 +0200 |
commit | 196532977cf0ffd17538c1968bd097b4008bea6d (patch) | |
tree | fd5b10a75b2044955e3562c4d6864a18eaa412c5 | |
parent | 210222f0e2dc0a9443d86ae1037a8a199ad30760 (diff) |
change prompt string in "normal" mode
-rw-r--r-- | Main.hs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -292,7 +292,12 @@ renderInputLine m (lhs, rhs) = do moveCursorLeft (length (show m) - 1) putStr $ "\x1b[1;30m" ++ show m ++ "\x1b[m" unsaveCursor - putStr $ "> " ++ pp lhs ++ pp rhs + + let promptString = case m of + NormalMode -> "\x1b[33;1m@\x1b[m " + InsertMode -> "> " + + putStr $ promptString ++ pp lhs ++ pp rhs moveCursorLeft (length $ ppVis rhs) where pp = concat . map reform |