On Wed, Feb 11, 2015 at 12:57:22AM -0600, J Raynor wrote:
> I’ve attached a patch that allows you to set the foreground and
> background color for a pane.  The way it works is that, when tmux
> writes to the screen, if it would have written with the terminal’s
> default color, but you’ve set the pane’s default color option, then
> it’ll use that color instead.  Doing it this way means this feature
> won’t interfere with terminal applications that use setab/setaf.
> Also, when you set the background color with this patch, it changes
> the background for the whole pane, and not just for the parts of the
> pane that have text on them, which is how tmux’s current
> implementation of setab behaves.

I've taken a very quick look at this over lunch, and have put additional
fixes/suggestions on top of your patch.  The branch is here:

https://github.com/ThomasAdam/tmux/commits/jr/pane-colours

Have a look, tell me what you think.  The cleanups are pretty trivial, but
reduces some of the copy/paste code churn.

-- Thomas Adam

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to