shellshare icon indicating copy to clipboard operation
shellshare copied to clipboard

Add indicator that the terminal is being transmitted

Open vitorbaptista opened this issue 12 years ago • 2 comments

A suggestion I've found in https://news.ycombinator.com/item?id=6191266 was to add a red recording sign. To do so, we could use:

RECORDING="`printf '\033[1;31m\342\227\217\033[0m '`"
export PS1="$RECORDING $PS1"

The problem is: how to pass this through script?

vitorbaptista avatar Aug 10 '13 16:08 vitorbaptista

What do you mean by "how to pass this through script"?

domoritz avatar Aug 10 '13 19:08 domoritz

When we run script, it forks a shell process. How do we inject an environment variable in this new process? Not sure if it's possible...

vitorbaptista avatar Aug 10 '13 20:08 vitorbaptista