Copy text from terminal and preserve colors

view full story

http://stackoverflow.com – I would like to copy the colored text from the terminal to the LibreOffice presentation. Is there a way to copy the text from the terminal and preserve the colorings? The question is for Linux/Unix systems using X server. (HowTos)