Skip to content

Commit a6742cc

Browse files
authored
Merge pull request #126 from mpilgrem/fix88
Fix #130 Don't skip "\ESC...\STX" sequences (when terminal-style)
2 parents 4530993 + 09b40fc commit a6742cc

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Changed in version UNRELEASED:
2+
3+
* On Windows, when terminal-style and printing output, no longer skips
4+
`"\ESC...\STX"` sequences. (If used with legacy ConHost directly (for
5+
example, `conhost.exe cmd.exe`), it will require ConHost's ANSI-capability
6+
to be enabled separately.) (#126)
7+
18
Changed in version 0.8.4.0:
29

310
* Added `System.Console.Haskeline.ReaderT` module for `ReaderT` interface.

System/Console/Haskeline/Backend/Win32.hsc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,7 @@ crlf :: String
381381
crlf = "\r\n"
382382

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

0 commit comments

Comments
 (0)