tmux and konsole characters

Andre Goree andre at
Sat Feb 2 17:11:52 UTC 2013

On 02/02/13 11:22, Joshua Isom wrote:
> On 2/2/2013 9:51 AM, Andre Goree wrote:
>> I'm having an issue with tmux on certain ssh connections.  When I
>> connect to my freebsd server's tmux session that has multiple panes in
>> one window, everything looks fine.  However, when I connect to my linux
>> box, I get this weird character [1] instead of a line as I would expect.
>> Any ideas on how I can fix this?  Really just an annoyance rather than a
>> real issue, but I'm sure someone has come across this before and fixed
>> it.  Googling wasn't much help -- though I did find some solutions, they
>> did not work for me.
>> [1]
> It's just a $TERM issue by the looks of it.  If you set $TERM in any of
> your .cshrc scripts, or .profile, it's probably set to something
> different than what Konsole's using.  Try running `setenv TERM
> xterm-color` before running tmux and see if that fixes it.  Run `echo
> $TERM` just so you can know what it is set to.  You'll have to track
> down where it changes to prevent it in the future.
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at"

Thanks, I'm actually using bash as a shell, probably should've mentioned
that.  Anywho:

[agoree at desktop ~]$ grep TERM .*
.bash_history:echo $TERM
.profile:# Setting TERM is normally done through /etc/ttys.  Do only
.profile:# TERM=cons25;         export TERM

[agoree at desktop agoree]$ echo $TERM

Looks like it's not being set in .profile (it's commented), and echoing
$TERM displays "xterm".  So it would appear I'm not changing it anywhere.

I tried the following, and get the same weird looking characters in
place of lines when connecting to the remote box (which is running
Linux, btw):
[agoree at desktop agoree]$ echo $TERM
[agoree at desktop agoree]$ export TERM=xterm-color
[agoree at desktop agoree]$ ssh sideswipe-dt
Last login: Sat Feb  2 10:34:53 2013 from
[agoree at sideswipe-DT ~]$ tmux attach

Andre Goree
andre at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-questions mailing list