Skip to main content
Post Closed as "Duplicate" by Michael Homer, jasonwryan, Archemar, cuonglm, Anthon
tag added
Link
Cyrus
  • 12.8k
  • 3
  • 32
  • 55
deleted 11 characters in body; edited tags
Source Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k

I need to capture screenshots of the terminal where the typed commands visually "stand out" from the rest. Right now I'm using this to make my typed commands "red":

PS1='\[\e[0;31m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;34m\]\$ \[\e[m\]\[\e[0;31m\]' 

The problem is: everything after the prompt is red, not only my typed text

red linux output

How can I fix this?

I'm using CentOS 7bash (BashCentOS 7).

Thanks!

I need to capture screenshots of the terminal where the typed commands visually "stand out" from the rest. Right now I'm using this to make my typed commands "red":

PS1='\[\e[0;31m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;34m\]\$ \[\e[m\]\[\e[0;31m\]' 

The problem is: everything after the prompt is red, not only my typed text

red linux output

How can I fix this?

I'm using CentOS 7 (Bash).

Thanks!

I need to capture screenshots of the terminal where the typed commands visually "stand out" from the rest. Right now I'm using this to make my typed commands "red":

PS1='\[\e[0;31m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;34m\]\$ \[\e[m\]\[\e[0;31m\]' 

The problem is: everything after the prompt is red, not only my typed text

red linux output

How can I fix this?

I'm using bash (CentOS 7).

Source Link

Change color of input text, not output

I need to capture screenshots of the terminal where the typed commands visually "stand out" from the rest. Right now I'm using this to make my typed commands "red":

PS1='\[\e[0;31m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;34m\]\$ \[\e[m\]\[\e[0;31m\]' 

The problem is: everything after the prompt is red, not only my typed text

red linux output

How can I fix this?

I'm using CentOS 7 (Bash).

Thanks!