jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.68k stars 105 forks source link

ANSI escape codes behave poorly #229

Open oldaccountdeadname opened 3 years ago

oldaccountdeadname commented 3 years ago

ANSI escape codes do not work well with Amp's TUI, see a screenshot of neofetch's output below:

2021-06-29-182125_1095x688_scrot

It looks like other editors (vi, neovim) just substitute in a textual representation of the escape codes (^[[0m, for instance). This is probably better than dealing with all the different forms of escape codes, which would involve changing the cursor, moving the cursor, setting colors, etc.