Skip to content

Commit

Permalink
feat(new-debugger): Align columns in the event table
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-daniel-gustafsson committed Mar 29, 2022
1 parent dcf2b78 commit e343591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/new-debugger/src/Debugger/UI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Data.Maybe (fromMaybe)
import qualified Data.Text as Text
import qualified Data.Vector as Vector
import qualified Graphics.Vty as V
import Text.Printf (printf)
import Text.Wrap

import Debugger.AnsiEscape (Segment(..), parseANSI)
Expand Down Expand Up @@ -44,8 +45,7 @@ drawUI as = [ui]

renderEvent :: LocalTime -> DebEvent -> String
renderEvent localTime (DebEvent from to event receivedLogical _msg) =
take 22 (show localTime) <> ": " <>
event <> ": " <> from <> " -> " <> to <> " @ " <> show receivedLogical
printf "%-25.25s: %-8.8s: %7.7s -> %-7.7s @ %d" (show localTime) event from to receivedLogical

renderOutputEvent :: DebEvent -> String
renderOutputEvent (DebEvent _ to _ _ msg) =
Expand Down

0 comments on commit e343591

Please sign in to comment.