Skip to content

Commit

Permalink
Fix #88 Don't skip "\ESC...\STX" sequences
Browse files Browse the repository at this point in the history
This reverses commit f827f10 of 11 September 2010 (about 5 years before the November 2015 Update to Windows 10 made the native consoles on Windows 10 ANSI-capable).
  • Loading branch information
mpilgrem committed Dec 8, 2019
1 parent 7079648 commit d6c2643
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions System/Console/Haskeline/Backend/Win32.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,7 @@ crlf :: String
crlf = "\r\n"

instance (MonadMask m, MonadIO m, MonadReader Layout m) => Term (Draw m) where
drawLineDiff (xs1,ys1) (xs2,ys2) = let
fixEsc = filter ((/= '\ESC') . baseChar)
in drawLineDiffWin (fixEsc xs1, fixEsc ys1) (fixEsc xs2, fixEsc ys2)
drawLineDiff = drawLineDiffWin
-- TODO now that we capture resize events.
-- first, looks like the cursor stays on the same line but jumps
-- to the beginning if cut off.
Expand Down

0 comments on commit d6c2643

Please sign in to comment.