Score:1

The Script command issue

br flag

The script command typescripts of everything displayed on your terminal. But sometimes when the output is in colors, it's complaining "output.txt" may be a binary file. See it anyway? if output.txt is the output of the session.

Is there a work-around?

vanadium avatar
cn flag
1) After the facts: You could probably strip out the escape codes that cause the colors to display using `sed` or `awk`. 2) Before the facts: Alternatively, disable any color display in the terminal so that none of these codes is generated and makes it to the script.
BlueSkies avatar
br flag
@vanadium - how to disable/enable color display?
vanadium avatar
cn flag
I would have written a full answer if I knew.
Score:1
ng flag

ansi2txt can be used to filter out the color escape codes.

Fore more options see: https://stackoverflow.com/q/6534556/724406

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.