Hi Nabin:

Glad to here it worked for you and, since it did work, I assume you
are concerned with CUI only. I am not sure why you are having
problems with some keys but it may be dependent on what software
is giving you the problem. I have some ideas but first some back-
ground info.

It has been my experience that software written for Linux/UNIX will
use one of 3 methods for determining how to communicate with a given
terminal type. The first 2 methods utilize the "standard" termcap
or terminfo facilities. The third method uses, for lack of a better
term, an internal or proprietary database of terminal properties.

If the software is using termcap and terminfo you should not be
experiencing these problems. You can get more info on these with
"man termcap" and "man terminfo". Also O'Rielly have an excellent
book on these (http://www.oreilly.com/catalog/term/).

As for the third method, this will depend entirely on the software.
For example, we write all our software in PROGRESS 4GL. PROGRESS
uses it's own version of the termcap database called protermcap.
What's more we then extended the protermcap file with entries of
our own. The result was that when we ported to Linux and used
the linux-m and ansi-m terminal types these entries were not in
our extend protermcap file and I had to add them. Other software
may have other methods of handling terminal "mapping".

Time to start playing detective. What software is giving you the
problem? I suspect it is not a "standard" linux utility and
therefore does not use the "standard" termcap and terminfo
databases.

If the software use it's own internal database then you are going
to have to figure out how modify it for the linux-m/ansi-m terminal
type.

Some final questions:

1. What type of "session" are you working with? A linux console
   session? A GUI terminal seesion? A terminal emulator session?

2. What software is exhibitting the problem?

Enough of my rambling (got to get some sleep).

HTH

Regards, Hugh

--
Hugh E Cruickshank, Forward Software, www.forward-software.com

-----Original Message-----
From: [EMAIL PROTECTED]
Sent: Friday, June 20, 2003 23:35
To: [EMAIL PROTECTED]
Subject: RE: change font colours


Hi Hugh,


Thanks, it worked for all. But another problem came up i.e Some keys like
Pageup, Page Down, Home, End doesn't work while working in this terminal
mode. Is there any solution for this also.


Nabin Limbu




On 20 Jun 2003 at 11:11, Hugh E Cruickshank wrote:


> Hi Nabin:
>
> Glad it works for you. As I mentioned in a previous email, the only
> way I discovered to disable colours altogether was to change the
> terminal type as defined with the TERM environment variable. Mind you,
> this only applies to CUI sessions (console or terminals), I very
> seldom use the GUI (KDE in our case) and when I do I find that colours
> are useful (I know this does not help with your monochrome monitor).
>
> So to force monochrome in CUI sessions add the following lines to your
> .bash_profile file:
>
> if [ "${TERM}" == "ansi" ]; then
>  TERM=ansi-m
> fi
> if [ "${TERM}" == "linux" ]; then
>  TERM=linux-m
> fi
>
> The linux/linux-m terminal types are for the console sessions. We find
> the ansi/ansi-m useful for telnet sessions that we do using NetTerm or
> TinyTerm (either with SCO ANSI emulation).
>
> If you require monochrome support for GUI you might be better off
> requesting help from a list supporting your desktop manager.
>
> HTH
>
> Regards, Hugh
>
> --
> Hugh E Cruickshank, Forward Software, www.forward-software.com
>
> From: [EMAIL PROTECTED] Sent: Friday, June 20, 2003 01:34
> >
> > Hi Hugh,
> >
> > Thanks it worked. But, while editing configuration files like
> > /etc/named.conf, different text are assigned with different colors.
> > How to solve them also? Don't we have any option for all these
> > colors settings just to display monochrome colors.
> >
> > Nabin Limbu
> >
> >
> > On 19 Jun 2003 at 9:06, Hugh E Cruickshank wrote:
> >
> > > Try adding the following to you .bash_profile:
> > >
> > > alias ls='ls --color=none'
> > >
> > > Regards, Hugh
> > >
>
> [snip]
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]
> https://www.redhat.com/mailman/listinfo/redhat-list




With Regards
Nabin Limbu
Program Officer
HealthNet Nepal
Ph : 977-1-429722


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to