Describe your feature request
I understand that foot doesn't actually know what ANSI codes were used to make the given text on screen, but emitting ANSI escapes that produce the same result would be good enough.
The use case is being able to copy and paste text output from programs while keeping the color formatting from it.
One open question I can think of is "should URLs be preserved?". I would say yes but that might be surprising (users not knowing some text is even hyperlinked).
There's 2 ways I think this could be reasonably implemented, one being a new shortcut that puts the ansi text in the text/plain clipboard type, and the other being just always offering up a text/ansi (or whatever the most commonly used MIME type for ANSI encoded text is... https://stackoverflow.com/questions/73415087/what-mime-type-for-text-with-ansi-escape-sequences-color-codes seems to say there's no real standard for this.)
Alternatively, both can be done, unconditionally offering up a text/ansi and also having a shortcut to copy text as ANSI into the text/plain clipboard.
### Describe your feature request
I understand that foot doesn't actually know what ANSI codes were used to *make* the given text on screen, but emitting ANSI escapes that produce the same result would be good enough.
The use case is being able to copy and paste text output from programs while keeping the color formatting from it.
One open question I can think of is "should URLs be preserved?". I would say *yes* but that might be surprising (users not knowing some text is even hyperlinked).
There's 2 ways I think this could be reasonably implemented, one being a new shortcut that puts the ansi text in the `text/plain` clipboard type, and the other being just always offering up a `text/ansi` (or whatever the most commonly used MIME type for ANSI encoded text is... https://stackoverflow.com/questions/73415087/what-mime-type-for-text-with-ansi-escape-sequences-color-codes seems to say there's no real standard for this.)
Alternatively, both can be done, unconditionally offering up a `text/ansi` and *also* having a shortcut to copy text as ANSI into the `text/plain` clipboard.