Wednesday, April 12, 2023

Save terminal buffer with colors?

Hi all,

Is there any possibility to save the content of terminal buffer (to a file) with colors? I have terminal buffers with thousands of lines in scrollback and I need to save it for further reference. If I just yank the lines and paste into a normal buffer then all coloring is lost. Also the TOhtml plugin gives the text without colors.

Some programs output error messages in red color and so they are standing out and are easily spotted when scanning the terminal scrollback. For comparison: It's possible to copy the scrollback of gnome terminal as HTML and save it into file. Then later it's easy to open that file in a browser and read the lines with original colors. Search some info in it. Having something similar in vim terminal would be nice.

Thanks for your answers. Regards,

Tom M

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/6b2f581d-f1e0-4bfd-88ac-e9d97ac82074n%40googlegroups.com.

No comments:

Post a Comment