Ever since tmux was updated from 1.6 to 1.7 (still affects 1.9a), running the jove editor inside tmux causes the display to overwrite characters even though within the editor it is inserting them.
I reported this as a bug to tmux a couple of years ago, but it was closed and nobody over there seems to be able to reproduce it on any other system, and neither can I. The original bug is here: https://sourceforge.net/p/tmux/tickets/3/
The following sequence of events demonstrates the error.
* start tmux
* edit a file using jove. type some text. it should insert correctly. quit jove.
* type "clear" to clear the screen
* edit the file using jove. type some text. it now does overwrite of the text on screen, but is in fact doing insert on the file. refresh the screen (ctrl-l) and it repaints the full screen and shows the correct content.
In tmux 1.6 this works fine. In tmux 1.7 and newer, you see the overwrite effect after the "clear".
I've tried all sorts of ways to make it work and make it fail, and I've narrowed it down to issuing the "clear" to the terminal inside of tmux.
I am able to "fix" the problem by linking tmux against the ncurses from ports, version 5.9.20140823, using a libmap.conf setting:
I suppose technically this should be a bug against base, but my problem would be solved if tmux could link against ncurses from ports instead of base.
I observe this failure on FreeBSD 9.3 and 10.0.
Created attachment 147382 [details]
make tmux port honor USES=ncurses
I made a patch to the tmux port to have it use the USES=ncurses option so it can be built with the base or the port ncurses as desired, working around my issue.
I did not make the default be the port ncurses, but I think it probably should.
Over to maintainer
So, is this a bug with our imported version of ncurses? I'm CC'ing delphij, maybe he has a better clue.
Hi, can I get a commit on this? Or a comment on why not?
(In reply to Vick Khera from comment #6)
Haven't gotten around to it, sorry, will try to see tomorrow.
A commit references this bug:
Date: Tue Feb 17 13:42:58 UTC 2015
New revision: 379161
Fix some bug regarding curses.
Submitted by: Vick Khera
Sponsored by: Absolight
Sorry it took so long to get to tomorrow :-)