From owner-freebsd-questions@freebsd.org Thu Feb 27 19:21:22 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2DE0B24B952 for ; Thu, 27 Feb 2020 19:21:22 +0000 (UTC) (envelope-from freebsd@yanthiery.me) Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48T2b33M2Kz3H8Q for ; Thu, 27 Feb 2020 19:21:19 +0000 (UTC) (envelope-from freebsd@yanthiery.me) Received: from webmail.gandi.net (webmail23.sd4.0x35.net [10.200.201.23]) (Authenticated sender: ml@yanthiery.me) by relay12.mail.gandi.net (Postfix) with ESMTPA id A15E7200005 for ; Thu, 27 Feb 2020 19:21:11 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 27 Feb 2020 20:21:11 +0100 From: "Rollniak (Yan)" To: Freebsd Questions Subject: Re: how to install Terminfo In-Reply-To: <8eb58a6eb8ba868e5925074cf7c5295a@yanthiery.me> References: <401b71aab6262e5009a10912eaeea94e@yanthiery.me> <20200226205419.2a03aba9.freebsd@edvax.de> <8eb58a6eb8ba868e5925074cf7c5295a@yanthiery.me> Message-ID: X-Sender: freebsd@yanthiery.me User-Agent: Roundcube Webmail/1.3.8 X-Rspamd-Queue-Id: 48T2b33M2Kz3H8Q X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@yanthiery.me designates 217.70.178.232 as permitted sender) smtp.mailfrom=freebsd@yanthiery.me X-Spamd-Result: default: False [-3.55 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.70.178.192/26]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[yanthiery.me]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; IP_SCORE(-1.15)[ip: (-2.86), ipnet: 217.70.176.0/20(-1.58), asn: 29169(-1.29), country: FR(0.00)]; RCVD_IN_DNSWL_LOW(-0.10)[232.178.70.217.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:29169, ipnet:217.70.176.0/20, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2020 19:21:22 -0000 I found a work around on internet, that doesn't fix the problem with termcap anyway. Here a little overview: I use Alacritty on a OpeSUSE machine, i have fresh installed a FreeBSD. Im my first ty to use my FreeBSD server i get this kind of messages : $ tmux open terminal failed: can't find terminfo database $ vi vi: No terminal database found I have tried to import the alacritty terminfo ( https://raw.githubusercontent.com/alacritty/alacritty/master/extra/alacritty.info ). $ echo $TERM alacritty $ curl -O https://raw.githubusercontent.com/alacritty/alacritty/master/extra/alacritty.info $ infotocap alacritty.info >> /usr/share/misc/termcap $ cd /usr/share/misc/ $ cap_mkdb -f terminfo terminfo $ date $ ls -l terminfo.db # check of the last mofification Then i logged out and logged in but nothing changes. so this part still doesn't work... The workaround is to set TERM as xterm-256color is the .shrc on FreeBSD. I'm not reallly happy with that. if you have some idea to get this fix done with termcap. :) > I don't understand why, as root, i was able to successfull redirect a > stream form infotocap to `/usr/share/misc/termcap` (the file is on > read only for everyone), but i needed to add `write` permission to > delete them. For this part it was the fact that vi check permission and i forget to use the exclamation mark in my command to write and exit. best regards -- Rollniak (Yan)