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.
But might make tmux flicker quite a bit over SSH or on slower terminals. > The patch adds a colour-pane command (note the spelling), with an It should be that; I'm British, and that's the current spelling of the other tmux commands which have colour in their name. > alias of colourp. You specify colors with the style syntax, though > only the fg/bg parts of a style are used. Attributes like dim, > underline, etc. are ignored. Here’s a brief usage description: Not speaking for the impetus of this change, I don't see that we need a separate command for this; it should work like any other setting. > + str = args->argv[0]; > + if (*str == '\0') > + gc = NULL; > + else { > + gc = xmalloc(sizeof *gc); > + memcpy(gc, &grid_default_cell, sizeof *gc); > + ret = style_parse(&grid_default_cell, gc, str); I wouldn't bother allocating gc on the heap here. Just pass it through as &gc. -- 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