Help needed to set xterm type and colors...

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default Help needed to set xterm type and colors...

    Hi,

    I am struggling with 2 issues on Solaris 2.9.

    1. How do I change the color of selected text in an xterm?

    Currently it is showing some color which I want to change it.

    2. When I use the command "clear/cls", it is giving error message
    "unknown terminal 'xterm'". I am running xwindows and I am using VNC
    viewer to connect to the server.

    TIA
    --gb
    G.B.Naidu Guest

  2. Similar Questions and Discussions

    1. What type o Extension is needed?
      Hi Everyone - was wondering if someone can point me in the right direction. I am a coder but am trying to make a 'easy front end' for designers and...
    2. sample timecard type code needed
      I have a simple time card app that allows a user to select a job code, a charge code, date, and number of hours and write it all to a database. ...
    3. Help needed - free/non-profit/charity type project/database/website
      Hi, I posted requests for this assistance lately and got some positive feedback including an offer to work on this project. I have not heard back...
    4. Info needed on Chinese type
      One of my customers wants to circumvent going outside for Chinese type by his setting own. (I work in-house; the customer is a colleague.) He's...
    5. xterm configuration
      On Fri, Jul 04, 2003 at 01:40:55AM +0100, Paladin wrote: For xterm, use one of the fixed fonts. They all have the line-drawing characters. If...
  3. #2

    Default Re: Help needed to set xterm type and colors...

    On 3 May 2004 05:26:53 -0700, G.B.Naidu <gbnaidu@yahoo.com> wrote:
    > Hi,
    >
    > I am struggling with 2 issues on Solaris 2.9.
    >
    > 2. When I use the command "clear/cls", it is giving error message
    > "unknown terminal 'xterm'". I am running xwindows and I am using VNC
    > viewer to connect to the server.
    Your system is presenting the "xterm" terminal type to the server,
    and it doesn't know what that means. Either use one that it has
    defined (set your environmental variable TERM to, say, ansi, or
    perhaps you can have whoever owns the server to add a terminfo file.
    man terminfo
    man tic

    Basically, you find a system which knows what xterm is, dump out an
    ascii file with it's description, and use tic to get the new system
    to understand it (assuming your system has these).

    Dave Hinz

    Dave Hinz Guest

  4. #3

    Default Re: Help needed to set xterm type and colors...

    On 2004-05-03, G.B.Naidu <gbnaidu@yahoo.com> wrote:
    > Hi,
    >
    > I am struggling with 2 issues on Solaris 2.9.
    >
    > 1. How do I change the color of selected text in an xterm?
    If it's a true xterm, you can get the following from

    $ man xterm

    $ xterm -fg (colour of text) -bg (background colour)

    as well as several other options.
    > Currently it is showing some color which I want to change it.
    >
    > 2. When I use the command "clear/cls", it is giving error message
    > "unknown terminal 'xterm'". I am running xwindows and I am using VNC
    > viewer to connect to the server.
    The colours could be in your VNC settings... look it up on the VNC website.

    If you're connecting to the server from a UNIX or unix workalike terminal,
    running the X window system, you can redirect the xterm to display on your
    local terminal, without having to run VNC.

    --
    Al Castanoli | [email]afcasta@ucan.foad.org[/email] | {cheap}
    | | You can have it {quick} Pick any 2.
    | | {right}
    Al Castanoli Guest

  5. #4

    Default Re: Help needed to set xterm type and colors...

    G.B.Naidu wrote:
    [..]
    > 2. When I use the command "clear/cls", it is giving error message
    > "unknown terminal 'xterm'". I am running xwindows and I am using VNC
    > viewer to connect to the server.
    `TERM=vt100' should always work
    mgrd Guest

  6. #5

    Default Re: Help needed to set xterm type and colors...

    Dave Hinz wrote:
    [..]
    > Basically, you find a system which knows what xterm is, dump out an
    > ascii file with it's description, and use tic to get the new system
    > to understand it (assuming your system has these).
    this just cool.. UNIX rocks
    mgrd Guest

  7. #6

    Default Re: Help needed to set xterm type and colors...

    Dave Hinz <davehinz@spamcop.net> wrote in message news:<c75eoo$i46sl$1@ID-134476.news.uni-berlin.de>...
    > On 3 May 2004 05:26:53 -0700, G.B.Naidu <gbnaidu@yahoo.com> wrote:
    > > Hi,
    > >
    > > I am struggling with 2 issues on Solaris 2.9.
    > >
    > > 2. When I use the command "clear/cls", it is giving error message
    > > "unknown terminal 'xterm'". I am running xwindows and I am using VNC
    > > viewer to connect to the server.
    >
    > Your system is presenting the "xterm" terminal type to the server,
    > and it doesn't know what that means. Either use one that it has
    > defined (set your environmental variable TERM to, say, ansi, or
    > perhaps you can have whoever owns the server to add a terminfo file.
    > man terminfo
    > man tic
    >
    > Basically, you find a system which knows what xterm is, dump out an
    > ascii file with it's description, and use tic to get the new system
    > to understand it (assuming your system has these).
    >
    > Dave Hinz
    Thanks Dave for your suggestion. There was no treminfo files on my
    server. I got it done and "unknown terminal type" problem is solved.

    Thanks once again.

    --gb
    G.B.Naidu Guest

  8. #7

    Default Re: Help needed to set xterm type and colors...

    Al Castanoli <afcasta@ucan.foad.org> wrote in message news:<slrnc9fpf3.83l.afcasta@ucan.foad.org>...
    > On 2004-05-03, G.B.Naidu <gbnaidu@yahoo.com> wrote:
    > > Hi,
    > >
    > > I am struggling with 2 issues on Solaris 2.9.
    > >
    > > 1. How do I change the color of selected text in an xterm?
    >
    > If it's a true xterm, you can get the following from
    >
    > $ man xterm
    >
    > $ xterm -fg (colour of text) -bg (background colour)
    >
    > as well as several other options.
    G.B-> I am starting the xterms by using the above command line options
    to xterm command. But on this server, the color of the selected text
    is different from the foreground color. Normally, the color of the
    selected text is same as the foreground color. But on this server this
    is not the case. I have tested this on my earlier server and it seems
    to be fine.

    I get a feeling that it is related to terminfo or some thing like
    that. Any pointers in this direction are appreciated.

    thanks
    --gb
    G.B.Naidu Guest

  9. #8

    Default Re: Help needed to set xterm type and colors...

    In article <a5539fbf.0405092342.6eb6d678@posting.google.com >,
    [email]gbnaidu@yahoo.com[/email] (G.B.Naidu) writes:
    > G.B-> I am starting the xterms by using the above command line options
    > to xterm command. But on this server, the color of the selected text
    > is different from the foreground color. Normally, the color of the
    > selected text is same as the foreground color. But on this server this
    > is not the case. I have tested this on my earlier server and it seems
    > to be fine.
    man xterm
    ....
    -hc color
    This option specifies the color to use for the background of
    selected or otherwise highlighted text. If not specified,
    reverse video is used.
    ....

    RTFM.
    j

    --
    These opinions are mine and only mine. Hey man, I saw them first!

    José R. Valverde

    De nada sirve la Inteligencia Artificial cuando falta la Natural
    Jose R. Valverde Guest

  10. #9

    Default Re: Help needed to set xterm type and colors...

    Hi,

    Thanks a lot for your inputs from xterm man page. By using the -hc
    option (-hc white), I could change the color of the selected text to
    the color of the foreground.

    I couldn't find this option in the man xterm on my system which is
    SunOS. On linux man page this is mentioned.

    Thanks once again.

    --gb

    [email]jr@cnb.uam.es[/email] (Jose R. Valverde) wrote in message news:<c7nouj$mcp$1@acebo.ti.uam.es>...
    > In article <a5539fbf.0405092342.6eb6d678@posting.google.com >,
    > [email]gbnaidu@yahoo.com[/email] (G.B.Naidu) writes:
    > > G.B-> I am starting the xterms by using the above command line options
    > > to xterm command. But on this server, the color of the selected text
    > > is different from the foreground color. Normally, the color of the
    > > selected text is same as the foreground color. But on this server this
    > > is not the case. I have tested this on my earlier server and it seems
    > > to be fine.
    >
    > man xterm
    > ...
    > -hc color
    > This option specifies the color to use for the background of
    > selected or otherwise highlighted text. If not specified,
    > reverse video is used.
    > ...
    >
    > RTFM.
    > j
    G.B.Naidu Guest

  11. #10

    Default Re: Help needed to set xterm type and colors...

    G.B.Naidu <gbnaidu@yahoo.com> wrote:
    > Hi,
    > Thanks a lot for your inputs from xterm man page. By using the -hc
    > option (-hc white), I could change the color of the selected text to
    > the color of the foreground.
    > I couldn't find this option in the man xterm on my system which is
    > SunOS. On linux man page this is mentioned.
    "-hc" is from XFree86 xterm. There's a (rather old) copy of that on the
    Solaris cdrom's. One thing that is confusing is that Solaris 9 includes
    a different color xterm (which I don't recall implements "-hc"). You
    can quickly check for the difference because XFree86 xterm recognizes a
    "-v" option which shows its version.

    It (XFree86 xterm) may have been linked against the ncurses library
    (which has its own terminfo - sometimes not installed, which sounds like
    the reason why "xterm" is not found). You can fix that by setting the
    $TERMINFO variable to /usr/share/lib/terminfo (though that's of limited
    use, since Solaris distributes no useful color terminal entries for that
    xterm).

    xterm supports ANSI color, VT220 emulation and UTF-8
    There's an faq at
    [url]http://invisible-island.net/xterm/xterm.faq.html[/url]
    [url]ftp://invisible-island.net/xterm/[/url]

    --
    Thomas E. Dickey
    [url]http://invisible-island.net[/url]
    [url]ftp://invisible-island.net[/url]
    Thomas Dickey Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139