From owner-freebsd-questions@freebsd.org Fri May 27 11:11:35 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72F9FB4CA17 for ; Fri, 27 May 2016 11:11:35 +0000 (UTC) (envelope-from frank@woodcruft.co.uk) Received: from b.painless.aa.net.uk (b.painless.aa.net.uk [IPv6:2001:8b0:0:30:5054:ff:fe5e:1643]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3D2FB12CF for ; Fri, 27 May 2016 11:11:34 +0000 (UTC) (envelope-from frank@woodcruft.co.uk) Received: from woodcruft.co.uk ([81.187.49.114] helo=lime.woodcruft.co.uk) by b.painless.aa.net.uk with esmtp (Exim 4.77) (envelope-from ) id 1b6Ffv-0007lG-Tj; Fri, 27 May 2016 12:11:32 +0100 Received: by lime.woodcruft.co.uk (Postfix, from userid 1001) id 7FC7F42E7E; Fri, 27 May 2016 12:11:31 +0100 (BST) Date: Fri, 27 May 2016 12:11:31 +0100 From: Frank Shute To: "Christofer C. Bell" Cc: FreeBSD Questions Subject: Re: ksh93, tmux, termcap problems Message-ID: <20160527111131.GB31305@lime.woodcruft.co.uk> Reply-To: Frank Shute Mail-Followup-To: "Christofer C. Bell" , FreeBSD Questions References: <20160525223658.GA31305@lime.woodcruft.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 10.3-RELEASE amd64 X-Organisation: 'woodcruft.co.uk' User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2016 11:11:35 -0000 > On Wed, May 25, 2016 at 5:36 PM, Frank Shute wrote: > > > > Hi, > > > > I seem to be having problems using ksh93 as my shell in tmux running on an > > xterm. The problem being when my command is longer than one line. It just > > executes the command when it hits the end of the line, instead of > > getting the value of PS2 at the start of the next line and the command > > continuing. > > > > I did a bit of grovelling around and I came across somebody who had a > > similar > > problem with bash and tmux. (I don't think it was on FreeBSD though). > > Somebody > > suggested it was a termcap problem. > > > > Of course, when running tmux it sets TERM=screen > > > > Anybody know how to fix this? TIA. > > On Fri, May 27, 2016 at 12:12:20AM -0500, Christofer C. Bell wrote: > > Frank, > > This may not be the solution you're looking for, but I simply alias tmux to > "TERM=xterm tmux" now. It's solved the issue for me. It's just a work > around but hopefully is helpful. > Many thanks, Christopher. I'll give it a go. BTW, you can stick this in ~/.tmux.conf: set -g default-terminal "xterm" Should do the same thing, I think. Regards, -- Frank