You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the record, I am happy to work on this (probably as soon as next week), I just felt a new issue was appropriate as I felt we'd strayed from the original issue's remit, @cdepillabout
I'd definitely accept something like this if you wanted to take a shot at implementing it. Looking forward to the PR!
cdepillabout
changed the title
Toggle Between Solarized Schemes in Existing Tabs and Windows Without Recompiling
Dynamically Toggle Between Colour Schemes in Existing Tabs and Windows Without Recompiling
Jan 4, 2019
This should be possible, but will require changing a few things.
You'll have to send a PR to add a hook that gets called right as Termonad is about to launch. Probably around here:
termonad/src/Termonad/App.hs
Lines 421 to 422 in db185e3
In your own config, you'll have to override that hook to define a new key binding for each existing terminal.
Here's an example of defining a key binding (this code defines the
Alt-1
,Alt-2
, etc bindings for switching tabs):https://github.com/cdepillabout/termonad/blob/db185e34a4b678183d8d1b1ce0be4c8bf3532fc8/src/Termonad/Keys.hs
termonad/src/Termonad/Term.hs
Lines 345 to 346 in db185e3
Your key binding will have to call a function that loops through all the open tabs and sets the colors for the terminal.
Here's where that is currently being done:
termonad/src/Termonad/Config/Colour.hs
Lines 453 to 479 in db185e3
This is only setting colors for a single terminal, so you'll have to change it so it loops through all tabs.
Here's a function that loops through all tabs (although this is changing the font size):
termonad/src/Termonad/App.hs
Lines 192 to 199 in db185e3
Originally posted by @cdepillabout in #94 (comment)
The text was updated successfully, but these errors were encountered: