.rtf

This is a how a cleaned up .rtf looks like with bold and underline in it, all in Courier New 10 point. In my Windows XP both WordPad and much more importantly my OpenOffice.org (OO.o) are accepting it as correct .rtf. I'm sure OO.o will read it without trouble in any Linux distro just as well.

That was my aim, to convert the output of a Linux tty/virtual terminal/console to some file format OO.o could read.

{\rtf1\ansi {\fonttbl{\f0\fmodern Courier New;}} \f0\fs20 This is a .rtf document with the least possible document markup sequences.\par \par It's all written in Courier New 10 point (font size is multiplied by 2). The only font options I need are \b bold\b0 and \ul underline\ul0 , oh and both of them combined \ul\b bold and underline\ul0\b0 have to  work as well.\par \par This is the last line of the text.}