jmanteau

Mon coin de toile - A piece of Web

Exporting iTerm2 Log to an HTML Page to Preserve Colors

Posted: Jan 9, 2022
Exporting iTerm2 Log to an HTML Page to Preserve Colors

You first have to save your session log:

image-20220109210734153

Do not forget to save it as RTF to keep the formatting.

image-20220109210858892

Then you use the texutil command:

❯ textutil -convert html *.rtf

You can find an example of the render here