From owner-freebsd-questions@freebsd.org Wed May 25 22:37:03 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 5345DB4AB61 for ; Wed, 25 May 2016 22:37:03 +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 209CC1F8A for ; Wed, 25 May 2016 22:37:02 +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 1b5hQB-0001eY-63 for freebsd-questions@freebsd.org; Wed, 25 May 2016 23:36:59 +0100 Received: by lime.woodcruft.co.uk (Postfix, from userid 1001) id C571042BC0; Wed, 25 May 2016 23:36:58 +0100 (BST) Date: Wed, 25 May 2016 23:36:58 +0100 From: Frank Shute To: FreeBSD Questions Subject: ksh93, tmux, termcap problems Message-ID: <20160525223658.GA31305@lime.woodcruft.co.uk> Reply-To: Frank Shute Mail-Followup-To: FreeBSD Questions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: Wed, 25 May 2016 22:37:03 -0000 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. Regards, -- Frank