When copying the output of the "tree" command from the Terminal, the colours that were shown in the terminal get lost, whether I put it here or in a Google Drive Doc.
Example:
tree /var/log/apt -La 1/var/log/apt├── eipp.log.xz├── history.log├── history.log.1.gz├── history.log.2.gz├── term.log├── term.log.1.gz└── term.log.2.gz
Though in Terminal, it there is red, blue, and white:
My aim is to paste this into a Google Drive Doc (that is, in a Browser web application) on Linux without losing the colours, and I guess that this loss of does not depend on the Google Drive Doc, but on the Terminal, I seem to lose the colour already when copying. The question of how to copy this to Google Docs is at How to put coloured HTML text in the way that it is shown in a browser into Google Docs? on Web Applications Stack Exchange.
How to keep the colours when copying from Terminal into a file that is not in Terminal?