help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Color console - is this possible in near future?


From: Allen.Windhorn
Subject: RE: Color console - is this possible in near future?
Date: Fri, 9 Nov 2012 14:31:18 +0000

Nick,

From: address@hidden On Behalf Of Nicholas Jankowski

On Fri, Nov 9, 2012 at 4:44 AM, <address@hidden> wrote:
On Friday 09 of November 2012 10:38:07 you wrote:
>> The following works as you would expect in Octave:
>>
>> fprintf(1, [char(27), ...
>> ...
>>           '[0m\n']);

> interesting.... running the MinGW 3.6.2 octave-forge package I get:
> ...
> ←[31mThis is a test.←[36m Here another color.←[37;41;1m Now is
> background color and white bold.←[0m
> <ar(27),'[37;41;1m Now is background color and white bold.',
> char(27),'[0m\n']);
>
> all in black and white. is that just a function of the console or
> default config that this version uses? running it from the Windows
> cmd shell or Windows Powershell does the same.

In Windows, you have to start the shell with the /c option, which
turns on the ANSI shell extensions.  I don't know how that can be
done from Octave directly.

Regards,
Allen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]