Hello,
How to change command interpreter’s font color?
Darius
Hello,
How to change command interpreter’s font color?
Darius
hello,
How to change command interpreter’s font color?
I mean is there a way to change shell’s background and (or) foreground
color. I din’t find any way to do that, but I saw QNX 4 system with orange
fornt on black background.
Darius
Darius <alpha_byte@safe-mail.net> wrote:
hello,
How to change command interpreter’s font color?
I mean is there a way to change shell’s background and (or) foreground
color. I din’t find any way to do that, but I saw QNX 4 system with orange
fornt on black background.
I don’t think there’s a way to change the colours in a Neutrino console, but
you can change them in a pterm (if you’re using Photon). See the docs for
pterm in the Utilities Reference.
“Steve Reid” <stever@sreid.ott.qnx.com> wrote in message
news:cfah14$hln$1@inn.qnx.com…
I don’t think there’s a way to change the colours in a Neutrino console,
but
you can change them in a pterm (if you’re using Photon). See the docs for
pterm in the Utilities Reference.
Actually, there are three ways to change the colours in a pterm, and one of
them should work in a console:
You can set up a palette file to specify the exact RGB values pterm uses
for its 16 colours. But I wouldn’t recommend using it to make drastic
changes (i.e. making colour 0 green instead of black and colour 15 blue
instead of white), because that may make programs that use colours look
wierd.
You can run your pterm with the -K option to specify the foreground and
background colours at startup. If you then save the configuration (by
clicking on Done in the Properties dialog), the colours will be saved and
you won’t have to keep specifying the -K option.
You can use the “Set and Save foreground/background color” escape
sequences to change the colours. (They save the colours for the current
session only – the purpose of the “saved” set of colours is to allow
programs that use colours to restore the saved colours with a simple escape
sequence). This method works both in a pterm and in a console, and the
escape sequences are described in the devc-con helpviewer page. (If you run
your pterms in the old “qnx” terminal emulation, the escape sequences are
different – you can find them in the QNX4 Dev.con docs. Or just use the -K
option instead.)