[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Color output
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Color output |
Date: |
Mon, 12 Mar 2012 15:07:43 -0400 |
On 12 March 2012 14:51, Сергей Хотеев <address@hidden> wrote:
> How it is possible to make color console output?
> I was trying to use echo(octave -x), but it`s not work.
The Octave interpreter doesn't colourise its terminal output. We would
need to do some patching to produce colourised Octave output.
However, you can at least define your own colourised prompt if you
want. This is what I have in my .octaverc:
PS1( "\\[\\033[01;36m\\]\\s:\\#> \\[\\033[0m\\]" )
This gives me a pleasantly blue that is somewhat close to Octave's
logo. It depends n using a terminal that understands ANSI colours. I
have added this suggestion to the PS1 docstring ("help PS1").
- Jordi G. H.
- Color output, Сергей Хотеев, 2012/03/12
- Re: Color output,
Jordi Gutiérrez Hermoso <=