ksh93, tmux, termcap problems
frank at woodcruft.co.uk
Fri May 27 11:11:35 UTC 2016
> On Wed, May 25, 2016 at 5:36 PM, Frank Shute <frank at woodcruft.co.uk> 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:
> 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.
More information about the freebsd-questions