From owner-freebsd-questions@FreeBSD.ORG Thu Nov 21 17:54:16 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9A03431E for ; Thu, 21 Nov 2013 17:54:16 +0000 (UTC) Received: from mail-pb0-x22b.google.com (mail-pb0-x22b.google.com [IPv6:2607:f8b0:400e:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 77A94279B for ; Thu, 21 Nov 2013 17:54:16 +0000 (UTC) Received: by mail-pb0-f43.google.com with SMTP id rq2so77451pbb.30 for ; Thu, 21 Nov 2013 09:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/F3P2MzSJ1fKv51jQa3nu/2zvltXJ8ovjM+QRhtIS5A=; b=qK9Ua3niP8fsW6lhHMPZ7isoLgDPMToY5AZUkvauvJolRL1DusvBPR11D84XxXEwvv 2wIWgSUFPB8itJNQbv4Xz4yt3FNHiPR6Ksg9Mgy2SzxY6jEAhlhpM2muse017M2nEAlK oKuYNUp1SSBWPEyumTdrbd3nkv6udXwKBz29iR5x6dMO+DDD6vfEfbBYxYjhaOnkX+TK qTRrqej+CcLgtWYFfQD2a00UWvkMWidflNIronu9f56zdkAyQMuriQ7fYYN3Z6gdAn4s ozuG9iUvVumDNnYJ7+AD7N8PEG0OBv+VONUBFIx2j7qsG3aebZXtcOJq+301lC9ktGOU 1OyQ== MIME-Version: 1.0 X-Received: by 10.67.23.164 with SMTP id ib4mr7728076pad.42.1385056455948; Thu, 21 Nov 2013 09:54:15 -0800 (PST) Received: by 10.68.99.194 with HTTP; Thu, 21 Nov 2013 09:54:15 -0800 (PST) In-Reply-To: <20131121173850.GA41334@SeanLaptop.webcheckout.net> References: <20131121142714.GA13341@rpaisley.com> <20131121173850.GA41334@SeanLaptop.webcheckout.net> Date: Thu, 21 Nov 2013 12:54:15 -0500 Message-ID: Subject: Re: TERM / termcap / terminfo & st from suckless tools From: "illoai@gmail.com" To: Sean DuBois Content-Type: text/plain; charset=ISO-8859-1 Cc: Rob Paisley , "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2013 17:54:16 -0000 On 21 November 2013 12:38, Sean DuBois wrote: > On Thu, Nov 21, 2013 at 09:27:14AM -0500, Rob Paisley wrote: >> I use st 0.4.1 from st.suckless.org as my terminal. It assigns >> TERM=st-256color. Accordingly I get errors running top / tmux as follows: >> >> $ top >> top: can't open termcap file >> >> $ tmux >> open terminal failed: can't find terminfo database >> >> On Linux like systems, the solution is: >> >> $ tic -s st.info >> 2 entries written to /home/rpaisley/.terminfo >> >> which is run normally via make install. On FreeBSD 9.2-RELEASE with `pkg >> install ncurses` yielding version 5.9_3, the output is as follows: >> >> $ tic -s st.info >> 2 entries written to /usr/local/share/misc/terminfo.db >> >> It didn't appear to have changed in size, so I ran the same command as root >> and verified the file /usr/local/share/misc/terminfo.db did in fact change, >> yet I still get the errors from above for both top / tmux. >> >> My current work around is to manually set TERM=xterm-color. >> >> I've tried various settings for TERMINFO / TERMCAP environment variables to no >> avail. How do I get st-256color recognized as a valid terminal? > This might not be any help, but I have been setting termname to > xterm-256color in my config.h for as long as I have used st. > (the port allows you to pass in your config.h easily, so don't > download from suckless.org if you don't plan on patch/dev) > > I have issues with working on remote machines when setting my TERM to > anything else. (I don't want to install st everywhere I go) this has > been the case for me on both GNU/Linux and FreeBSD > > I use vim, emacs, mutt and ncmpcpp locally + remote in tmux and I have > not had any issues with my setup. > > The only thing I have run into is issues with mutt, and to fix that use > slang instead of ncurses and set the env var CLICOLOR=yes > Resorted to rxvt-256color, because, despite toe -a showing st-256color, it simply doesn't work. (toe also dumps core, so there's that) And: > tic -c /usr/local/share/misc/terminfo.db "/usr/local/share/misc/terminfo.db", line 18, col 1: Illegal character (expected alphanumeric or @%&*!#) - '^C' -- --