z/OS Tools & Language

Expand all | Collapse all

RE: No colors running over ssh in Cygwin

  • 1.  RE: No colors running over ssh in Cygwin

    Posted 04-16-2018 15:10

    Hi, Yaroslav. I’m a bit confused - you said “install this database”, then “you can not install a new database”. Do you mean that it’s safe for me to do the gzip and tic commands?



  • 2.  RE: No colors running over ssh in Cygwin

    Posted 04-16-2018 16:00

    I’m a relative newbie to terminfo/ncurses/etc, but the man page indicates that tic will read the terminfo.src file and produce a new terminfo database in the directory pointed to by the TERMINFO environment variable.

    This worked for me:

    export TERMINFO=$HOME/terminfo  # This will be your personal terminfo database
    mkdir $TERMINFO
    curl ftp://ftp.invisible-island.net/ncurses/terminfo.src.gz | gzip -d >terminfo.src
    tic terminfo.src


  • 3.  RE: No colors running over ssh in Cygwin

    Posted 04-16-2018 16:50

    Thanks, Jerry, but the universe has decreed that I’m not to have colors today:

    16:45 /u/tstjv > gzip -d terminfo.src.gz
    gzip: terminfo.src.gz: not in gzip format
    

    This happens when I pipe the curl output into gzip as well.

    Edit: Maybe I’m just cranky, but it feels as if this stuff should be available to everyone without having to go to an external website. In fact …

    16:53 /u/tstjv > ls /usr/lib/share/terminfo
    ls: FSUM6785 File or directory "/usr/lib/share/terminfo" is not found
    

    … despite the fact that the z/OS UNIX System Services Planning manual says that “[t]he database is in the directory /usr/share/lib/terminfo …”