From owner-freebsd-questions@FreeBSD.ORG Thu Nov 21 17:46:07 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 6803DF3C for ; Thu, 21 Nov 2013 17:46:07 +0000 (UTC) Received: from siobud.com (siobud.com [162.243.65.51]) by mx1.freebsd.org (Postfix) with ESMTP id 486DC2706 for ; Thu, 21 Nov 2013 17:46:07 +0000 (UTC) Received: from SeanLaptop.webcheckout.net (onshore-gw.logika.net [64.241.87.62]) by siobud.com (Postfix) with ESMTPSA id C706D40A0C; Thu, 21 Nov 2013 17:39:49 +0000 (UTC) Date: Thu, 21 Nov 2013 11:38:50 -0600 From: Sean DuBois To: Rob Paisley Subject: Re: TERM / termcap / terminfo & st from suckless tools Message-ID: <20131121173850.GA41334@SeanLaptop.webcheckout.net> References: <20131121142714.GA13341@rpaisley.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131121142714.GA13341@rpaisley.com> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: 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:46:07 -0000 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 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? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"