bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tic doesn't create terminfo files on FreeBSD


From: Thomas Dickey
Subject: Re: tic doesn't create terminfo files on FreeBSD
Date: Mon, 6 Aug 2018 05:10:50 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Sun, Aug 05, 2018 at 03:20:58AM -0700, Yuri wrote:
> On 8/4/18 5:18 PM, Thomas Dickey wrote:
> >If you had written
> >
> >     tic -o 
> > /usr/ports/x11/kitty/work-py36/stage/usr/local/lib/kitty/terminfo -D
> >
> >then tic should show
> >
> >     /usr/ports/x11/kitty/work-py36/stage/usr/local/lib/kitty/terminfo.db
> >
> >given that
> >
> >     /usr/ports/x11/kitty/work-py36/stage/usr/local/lib/kitty
> >
> >exists and you can write to that directory.
> 
> 
> No, it fails:

I don't see anything in this which wouldn't be helped by reading the manual
page (and which wasn't addressed in the example I made).
 
> $ tic -o /usr/ports/x11/kitty/work-py36/stage/usr/local/lib/kitty/terminfo/
> ./work-py36/kitty-0.11.3-111-g9bd9cf80/terminfo/kitty.terminfo -D
> tic: Too many file names.  Usage:
>     tic [-e names] [-o dir] [-R name] [-v[n]] [-V] [-w[n]]
> [-1aCDcfGgIKLNrsTtUx] source-file
> 
> 
> And this also fails:
> 
> $ tic -D -o
> /usr/ports/x11/kitty/work-py36/stage/usr/local/lib/kitty/terminfo/
> ./work-py36/kitty-0.11.3-111-g9bd9cf80/terminfo/kitty.terminfo
> tic: /usr/local/share/misc/terminfo (no permission)
> 
> - it ignores -o xx, and still tries to write into the system directory.

man tic:

       -D     tells  tic  to print the database locations that it knows about,
              and exit.  The first location shown is the one to which it would
              write  compiled  terminal  descriptions.   If tic is not able to
              find a writable database location according to the rules  summa‐
              rized  above,  it will print a diagnostic and exit with an error
              rather than printing a list of database locations.

It doesn't look ahead; once it's seen "-D", it does what's documented and
exits.

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]