Professional Web Applications Themes

Replacement xterm terminfo definition for Solaris gnome - Sun Solaris

Gnome-terminal uses the xterm terminfo definition, but under Solaris 9 8/03, this definition is quite inadequate. It lacks colour, and has the wrong number of lines, for example. The following seems to be a good replacement. I haven't verified every little detail, but it's a great improvement. ================8<================ # Based on xterm-basic from XFree86, with modifications to suit # the Solaris 9 xterm and gnome-terminal emulators. xterm|xterm terminal emulator (color): for xterm and gnome-terminal, am, bce, km, mc5i, mir, msgr, xenl, colors#8, cols#80, it#8, lines#24, pairs#64, acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{ {||}}~~, bel=^G, blink=\E[5m, bold=\E[1m, .cbt=\E[Z, civis=\E[?25l, clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, ...

  1. #1

    Default Replacement xterm terminfo definition for Solaris gnome

    Gnome-terminal uses the xterm terminfo definition, but under
    Solaris 9 8/03, this definition is quite inadequate. It lacks
    colour, and has the wrong number of lines, for example. The
    following seems to be a good replacement. I haven't verified
    every little detail, but it's a great improvement.

    ================8<================
    # Based on xterm-basic from XFree86, with modifications to suit
    # the Solaris 9 xterm and gnome-terminal emulators.
    xterm|xterm terminal emulator (color): for xterm and gnome-terminal,
    am, bce, km, mc5i, mir, msgr, xenl,
    colors#8, cols#80, it#8, lines#24, pairs#64,
    acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{ {||}}~~,
    bel=^G, blink=\E[5m, bold=\E[1m, .cbt=\E[Z, civis=\E[?25l,
    clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
    csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
    cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
    cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
    dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
    ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
    flash=\E[?5h$<100/>\E[?5l, home=\E[H, .hpa=\E[%i%p1%dG,
    ht=^I, hts=\EH, ich=\E[%p1%d, il=\E[%p1%dL, il1=\E[L,
    ind=^J, invis=\E[8m, is2=\E[!p\E[?3;4l\E[4l\E>,
    .kbs=^H, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=\b,
    kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB,
    kcuf1=\EOC, kcuu1=\EOA, kend=\E[Y, kent=\EOM,
    kf0=\EOy, kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA,
    kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
    kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H, kmous=\E[^_,
    knp=\E[U, kpp=\E[V,
    .kdch1=\E[3~, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, .meml=\El,
    .memu=\Em, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
    rmam=\E[?7l, .rmcup=\E[?1049l, rmcup=\E[?4r,
    rmir=\E[4l, rmkx=\E[?1l\E>,
    rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
    rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7, setab=\E[4%p1%dm,
    setaf=\E[3%p1%dm,
    setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{ 6}%=%t3%e%p1%d%;m,
    setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{ 6}%=%t3%e%p1%d%;m,
    sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%; %?%p7%t;8%;m%?%p9%t\016%e\017%;,
    sgr0=\E[m\017, smacs=^N, smam=\E[?7h, .smcup=\E[?1049h,
    smcup=\E[?4s\E[?4h,
    smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
    tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
    .vpa=\E[%i%p1%dd,

    ================8<================

    --
    -Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
    Gary Guest

  2. #2

    Default Re: Replacement xterm terminfo definition for Solaris gnome

    On 26 Sep 2003, Gary Mills wrote:
     

    The real problem is that Gnome-terminal uses the xterm definition,
    but isn't actuallt an xterm. The real solution, IMHO, is for
    Gnome-terminal to either implement xterm properly, or define its
    own termcap entry (the latter would probably be best).

    --
    Rich Teer, SCNA, SCSA

    President,
    Rite Online Inc.

    Voice: +1 (250) 979-1638
    URL: http://www.rite-online.net


    Rich Guest

  3. #3

    Default Re: Replacement xterm terminfo definition for Solaris gnome

    In <Pine.GSO.4.44.0309261229070.29691-100000zaphod> Rich Teer <com> writes:
     
     [/ref]
     

    Well, the Gome people claim that it emulates an xterm. The benefit
    of using an existing terminfo definition is that programs run over a
    remote connection might work, because $TERM is generally forwarded.
    If gnome-terminal introduced a new terminal type, it would have to
    be installed everywhere, not just on systems running gnome. There is
    no perfect solution to this problem. Replacing Sun's xterm definition
    is about the best that can be done for now.

    --
    -Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
    Gary Guest

  4. #4

    Default Re: Replacement xterm terminfo definition for Solaris gnome

    In article <bl2c2j$e2p$cc.umanitoba.ca>,
    umanitoba.ca (Gary Mills) writes: 
    > [/ref]

    >
    > Well, the Gome people claim that it emulates an xterm. The benefit
    > of using an existing terminfo definition is that programs run over a
    > remote connection might work, because $TERM is generally forwarded.
    > If gnome-terminal introduced a new terminal type, it would have to
    > be installed everywhere, not just on systems running gnome. There is
    > no perfect solution to this problem. Replacing Sun's xterm definition
    > is about the best that can be done for now.[/ref]

    Some other terminal emulators have a flag that specifies a value other
    than the default to set TERM to; if gnome-terminal had that, it would at
    least let people choose between taking the chance on imperfect xterm
    emulation with a widely available xterm definition, or using a differently
    named terminal description that might not be as widely available.

    OT, ISTR a terminal emulator (I think it was back in the NeWS/TnT days?)
    that would actually alter its behavior according to a terminfo description,
    so that necessarily the description was accurate (at least as far as its
    ability to do that went). That would be great for old apps that are
    hard-coded to a particular terminal.

    --
    mailto:smart.net http://www.smart.net/~rlhamil
    Richard Guest

  5. #5

    Default Re: Replacement xterm terminfo definition for Solaris gnome

    Gary Mills <umanitoba.ca> wrote: 
     [/ref]
     [/ref][/ref]
     [/ref]
     

    The "Gnome" people don't appear to include anyone who knows that much
    about terminal descriptions.
     

    yes, that's a problem. assumes the user knows what $TERM is.
     

    however, I wrote a correct one for it a few years ago (part of ncurses).
     
     

    --
    Thomas E. ey
    http://ey.his.com
    ftp://ey.his.com
    Thomas Guest

  6. #6

    Default Re: Replacement xterm terminfo definition for Solaris gnome

    Gary Mills <umanitoba.ca> wrote: 
     

    The last I recall, gnome-terminal doesn't do "bce". iirc, the Solaris
    9 xterm (based on reading the i18n patch) doesn't either. Sun's "dtterm"
    entry is closer to being correct. (There may be other features mismatched,
    but I'd have to test rather than just glance at this posting).

    Actually, if your sense of humor is perverse enough, bear in mind that
    xterm emulates a vt102 - or superset thereof - and try vttest:
    http://invisible-island.net/vttest/
    In particular, the first few test screens (basic vt102 functionality).
     

    does Solaris 9 xterm implement civis and cnorm? (It wasn't in the i18n
    patch, and I don't have a Solaris 9 for testing).
     

    using the numeric keypad escape sequences doesn't make effective use of
    the function keys that almost every keyboard has.
     

    The kmous setting isn't correct.
     

    kdch1 really should be defined.
     

    gnome terminal doesn't do tbc correctly.
     
     
     

    Every time I run Gnome software, it spits out a long series of error messages
    telling about the features that aren't working properly. Perhaps if I see
    some release-quality code from Gnome, I'll have a better opinion of it.

    --
    Thomas E. ey
    http://ey.his.com
    ftp://ey.his.com
    Thomas Guest

  7. #7

    Default Re: Replacement xterm terminfo definition for Solaris gnome

    Richard L. Hamilton <smart.net> wrote:
     

    I haven't been satisfied with any terminfo for gnome-terminal, since it
    (like M$ telnet) always has a few bugs that break the rules that other
    programs follow. For instance (reminded that I'd neglected it for a while),
    I just added new entries, and am stuck trying to see how to make it reliably
    reset colors...
     

    For instance "emu". I poked at it a few times, but haven't seen it running
    properly (a victim of changing I/O interfaces). That was supposedly driven by
    a highlevel description of the terminal capabilitites.

    There was a more recent one (name doesn't come to mind - one of those
    SourceForge projects iirc) whose authors assumed that generality would be
    achieved by emulating the various flavors of xterm ;-)

    --
    Thomas E. ey
    http://ey.his.com
    ftp://ey.his.com
    Thomas Guest

  8. #8

    Default Re: Replacement xterm terminfo definition for Solaris gnome


    According to Gary Mills <umanitoba.ca>:
    :Gnome-terminal uses the xterm terminfo definition, but under
    :Solaris 9 8/03, this definition is quite inadequate. It lacks
    :colour, and has the wrong number of lines, for example. The
    :following seems to be a good replacement. I haven't verified
    :every little detail, but it's a great improvement.

    After implementing this new terminfo, will the _real_ xterm continue
    to work properly? There are times when one needs a real xterm rather
    than an emulation - perhaps one needs the mouse reading capabilities,
    etc.

    --
    <URL: http://purl.org/net/lvirden/ > <URL: http://wiki.tcl.tk/ >
    Even if explicitly stated to the contrary, nothing in this posting
    should be construed as representing my employer's opinions.
    <URL: mailto:com > <URL: http://www.purl.org/NET/lvirden/ >
    lvirden@yahoo.com Guest

  9. #9

    Default Re: Replacement xterm terminfo definition for Solaris gnome

    In <bl957l$ru0$cas.org> com writes:

     
     

    That was my goal. The problem is that both gnome-terminal and xterm
    use the xterm terminfo definition, so if you want both of them to
    work, you need a definition that suits both. Sun actually supplies
    several terminfo definitions for xterm. `xterms' has 24 lines.
    `xtermc' has colour. Only `xterm' needs to be replaced.

    --
    -Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
    Gary Guest

  10. #10

    Default Re: Replacement xterm terminfo definition for Solaris gnome


    According to Gary Mills <umanitoba.ca>:
    : Only `xterm' needs to be replaced.

    since TERM=xterm is what xterm and gnome-terminal both use by default,
    then one would want to have a working terminfo that fit both.

    Anyone taken the replies in this thread and updated the definition
    and gotten things to work for both applications?

    --
    <URL: http://purl.org/net/lvirden/ > <URL: http://wiki.tcl.tk/ >
    Even if explicitly stated to the contrary, nothing in this posting
    should be construed as representing my employer's opinions.
    <URL: mailto:com > <URL: http://www.purl.org/NET/lvirden/ >
    lvirden@yahoo.com Guest

Similar Threads

  1. Moving from Solaris/CDE to Solaris/GNOME?
    By lvirden@yahoo.com in forum Sun Solaris
    Replies: 4
    Last Post: September 24th, 01:54 PM
  2. Gnome 2.0 Desktop (Solaris 8)
    By Klemen in forum Sun Solaris
    Replies: 3
    Last Post: August 14th, 06:20 PM
  3. Problems with Solaris 9 and gnome 2.0.0
    By Mr. Johan Andersson in forum Sun Solaris
    Replies: 3
    Last Post: June 30th, 08:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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