eraserhd / kak-ansi

Kakoune support for rendering ANSI-colored text.
https://github.com/eraserhd/kak-ansi
The Unlicense
39 stars 4 forks source link

[BUG] kitty scrollback_pager kak -ro colors #12

Open razcore-rad opened 1 year ago

razcore-rad commented 1 year ago

Version of Kakoune

v2020.09.01-1320-g94192402

Reproducer

  1. Install kitty
  2. Install starship
  3. Set kitty scrollback_pager to kak -ro

Outcome

In between lines there's this color code that isn't rendered correctly in the pager (CTRL+SHIFT+h)

Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
]133;A\
~ 
❯ 
]133;A\
~ 
❯ 

image

Expectations

image

Additional information

No response


This is a mawww/kakoune#4801 copy-paste. I noticed I actually use this plugin and was diverted here. Thanks :)

occivink commented 1 year ago

I wonder if this is not due to the use of the -ro flag, which prevents kak-ansi from removing the escape sequences. Could you try without? If that works a possible solution would be to only set the read-only flag once all data has been received from stdin (and the escape sequences processed).

razcore-rad commented 1 year ago

Yea, I already tried without the -ro flag. That's not it.