I've created a patch which allows the colors of the terminal to be changed.
It could be applied to PAC using patch:
---SNIP---
$ patch -p1 < /path/to/TerminalColors.patch
---SNAP---
It adds GTK+ color buttons to "Preferences" --> "Terminal Options" --> "Look and Feel" --> "Terminal UI". Settings are persisted to PAC's configuration as all the other options. If you run the patched version for the first time, colors are set to default values (the same as in the "Tango" color scheme of "gnome-terminal") and persisted to config at the next config-save.
When you change colors and confirm the settings dialog, colors are immediately applied to all open terminal windows.
Bonus: As I've used GTK+ color chooser buttons, you could drag and drop colors from elsewhere (e.g. "gnome-terminal" preferences).
---+ Possible enhancements
I'm using this patch since over a year now and I apply it to all new releases and never had any issues so I assume it is tested quite well.
This patch generally works fine, but when starting a local shell after the patch has been applied the text is partly black-on-black, for example file names in the output from "ls -l" (default Linux Mint 17 settings).
When PAC is started from another terminal, this is seen:
Use of uninitialized value in subroutine entry at /opt/pac/lib/PACTerminal.pm line 3271.
I have patched this file myself for other things, so line numbers does not match, but the cause is quite obviously that the color config has not yet been set.
Line 3271 in my PACTerminal.pm is this one:
my $colors = [Gtk2::Gdk::Color -> parse($$self{_CFG}{'defaults'}{'color black'}), # black
Simple workaround is to edit the colors once, at (Global) Preferences -> Terminal Options -> Look and Feel -> Colors -> "black", and save config.
After this the patch works just fine.
/Magnus
Attached patch adds the missing initialization of default values for the colors.
With this it should work also before the first color change.
/Magnus
Here you are, full patch. Just
cd /opt/or where is your installation andpatch -b -p1 < TerminalColors_v2.patch, it will also backup original files for you.Last edit: Andr1an 2016-03-03
Works nice, thanks