Skip to content

Rework terminal settings #1585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jun 3, 2025

Fixes #1586
Fixes #276

  • Handle absence of pantheon terminal settings schema better
  • Monitor settings for changes, Terminal settings falling back to Gnome settings for "audible-bell"
  • Always monitor default Gnome font setting
  • Always follow Gnome cursor-blink setting
  • Terminal pane does not crash if neither Terminal nor Gnome settings schemas found (may need to be addressed for Code as whole but out of scope for this PR)

The behaviour with regard to Terminal/System style settings is unchanged - this will be addressed in a separate PR.

The Terminal pane only responds to changes in the Terminal "foreground", "background" and "palette" keys but not "window-style" or "cursor-color".

@jeremypw jeremypw added this to the 8.1 milestone Jun 16, 2025
@jeremypw jeremypw marked this pull request as ready for review June 27, 2025 18:50
@jeremypw jeremypw requested a review from a team June 27, 2025 18:52
@@ -233,7 +321,7 @@ public class Code.Terminal : Gtk.Box {
return Gdk.EVENT_PROPAGATE;
}

if (CONTROL_MASK in modifiers && pantheon_terminal_settings.get_boolean ("natural-copy-paste")) {
if (CONTROL_MASK in modifiers && terminal_settings.get_boolean ("natural-copy-paste")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check for terminal_setting == null here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes! Thanks for spotting that.

* Handle Shift-Control copy-paste anyway
@jeremypw
Copy link
Collaborator Author

jeremypw commented Jul 14, 2025

Now implements Shift-Control modified copy-paste keys in absence of terminal settings (the Vte widget does not so cannot just propagate). This follows Terminal app behaviour.

@jeremypw jeremypw requested a review from zeebok July 14, 2025 12:17
@jeremypw jeremypw mentioned this pull request Jul 18, 2025
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relies on external Terminal settings keys Listen for changes to Terminal color scheme
2 participants