I see a nicely colored output in my terminal.
The terminal has a "Export Text As" command but it saves a plain-text file without the colors. Same with copy&paste.
Do you know a way to save terminal output including colors?
|
I see a nicely colored output in my terminal. The terminal has a "Export Text As" command but it saves a plain-text file without the colors. Same with copy&paste. Do you know a way to save terminal output including colors? |
||||
|
|
Amazing how posting a question boosts ones creativity. There's a "Print" so I can also save to PDF. I can copy colored output from the PDF. |
|||||||||||||
|
|
you can try to paste the colored output to the clipboard like this:
which puts some rtf (possibly colored and formated) stuff into the pasteboard of macos. you can then use any other that understands richtext to access the clipboard. this is obviously not the same as "select it with the mouse" but maybe worth a shot. |
||||
|
|
OS X has several keyboard shortcuts (hotkeys) for copying the screen. These will save your screenshots as a jpg files on the desktop. Here's a list of them:
There's also a "Grab" application located in the Applications | Utilities folder that does the same job, plus has a few extra features such as delay. Update In Snow Leopard (10.6.8) the default screenshot format is png not jpg, although that can be changed to any one of many others -- including pdf -- using the free 3rd-party TinkerTool preference settings utility. |
|||||||||||||||||
|
|
As suggested between the lines above, printing the colored output from Terminal to .pdf, then copying and pasting from the .pdf, seems to work. |
|||
|
|