Skip to content

Commit

Permalink
repalce delete control char
Browse files Browse the repository at this point in the history
  • Loading branch information
faldor20 committed Sep 6, 2024
1 parent cba4adb commit fe30b9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jj_tui/lib/ansiReverse.ml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ let ansi_string_to_image ?(extra_attr = A.empty) str =
|> Base.String.Search_pattern.replace_all
(Base.String.Search_pattern.create "\t")
~with_:" "
(*delete control char*)
|> Base.String.Search_pattern.replace_all
(Base.String.Search_pattern.create "\u{7f}")
~with_:" "
(*replace form feed with a symbol: https://codepoints.net/U+000C?lang=en*)
|> Base.String.Search_pattern.replace_all
(Base.String.Search_pattern.create " ")
Expand Down

0 comments on commit fe30b9b

Please sign in to comment.