From: pg on
Is it possible to make any of those a different color than the others?
In any shell?
From: pk on
pg(a)gmail.com wrote:

> Is it possible to make any of those a different color than the others?
> In any shell?

How do you color stdin? And what are "the others"?

From: pg on
On May 13, 5:20 pm, pk <p...(a)pk.invalid> wrote:
> p...(a)gmail.com wrote:
> > Is it possible to make any of those a different color than the others?
> > In any shell?
>
> How do you color stdin? And what are "the others"?

I mean I want all text typed by the user to appear in a different
color than the text output to the terminal by the system, and
(ideally) I want the error messages printed to stderror by the system
colored in yet a different color. For example stdin is green on white,
stdout is black on white, stderr is red on white.

If that's not possible, then how about coloring at least one of stdin,
stdout and stderr differently from the others. For example, stdin is
green on white, stdout and stderr are black on white. Or stdin and
stdout are black on white and stderr is red on white.

To color stdin, you can set the terminal normal foreground color
(separately for TTY and for terminal emulators). But that would also
color stdout and stderr the same color. Or, you can maybe set the
shell prompt to end with a color escape sequence, without clearing it.
But again this would color stdout and stderr the same way, and would
mess up if any program resets the colors to the default.
From: John DuBois on
In article <9ca3389f-2b32-4c20-85cf-74d6ab683113(a)l28g2000yqd.googlegroups.com>,
pg(a)gmail.com <phil.ganchev(a)gmail.com> wrote:
>Is it possible to make any of those a different color than the others?
>In any shell?

This may be useful:

http://groups.google.com/group/comp.unix.shell/msg/e25a5a4969a1b46b

John
--
John DuBois spcecdt(a)armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
From: pg on
On May 14, 3:00 pm, spce...(a)armory.com (John DuBois) wrote:
> In article <9ca3389f-2b32-4c20-85cf-74d6ab683...(a)l28g2000yqd.googlegroups..com>,
>
> p...(a)gmail.com <phil.ganc...(a)gmail.com> wrote:
> >Is it possible to make any of those a different color than the others?
> >In any shell?
>
> This may be useful:
>
> http://groups.google.com/group/comp.unix.shell/msg/e25a5a4969a1b46b
>
>         John
> --
> John DuBois  spce...(a)armory.com  KC6QKZ/AE  http://www.armory.com/~spcecdt/

Thanks for the reply. The armory server seems to be down, so I can't
see the program you refer to. Also, I guess this means you would have
to embed every command in this outer command, right?