Fix terminal scroll behavior and Claude Code tab titles
Disable auto-scroll on output so users can read scrollback without being jumped to bottom. Keep Claude Code tab names from config instead of overwriting with generic VTE title. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5815943861
commit
09463810c4
1 changed files with 4 additions and 1 deletions
|
|
@ -1504,7 +1504,7 @@ class TerminalTab(Gtk.Box):
|
||||||
self.terminal = Vte.Terminal()
|
self.terminal = Vte.Terminal()
|
||||||
self.terminal.set_font(Pango.FontDescription(FONT))
|
self.terminal.set_font(Pango.FontDescription(FONT))
|
||||||
self.terminal.set_scrollback_lines(SCROLLBACK_LINES)
|
self.terminal.set_scrollback_lines(SCROLLBACK_LINES)
|
||||||
self.terminal.set_scroll_on_output(True)
|
self.terminal.set_scroll_on_output(False)
|
||||||
self.terminal.set_scroll_on_keystroke(True)
|
self.terminal.set_scroll_on_keystroke(True)
|
||||||
self.terminal.set_audible_bell(False)
|
self.terminal.set_audible_bell(False)
|
||||||
|
|
||||||
|
|
@ -1733,6 +1733,9 @@ class TerminalTab(Gtk.Box):
|
||||||
if self.session:
|
if self.session:
|
||||||
# SSH tab: keep session name, show VTE title in window title only
|
# SSH tab: keep session name, show VTE title in window title only
|
||||||
self.app.update_tab_title(self, self.session.get("name", "SSH"))
|
self.app.update_tab_title(self, self.session.get("name", "SSH"))
|
||||||
|
elif self.claude_config:
|
||||||
|
# Claude Code tab: keep config name instead of generic VTE title
|
||||||
|
self.app.update_tab_title(self, self.claude_config.get("name", "Claude Code"))
|
||||||
else:
|
else:
|
||||||
self.app.update_tab_title(self, title)
|
self.app.update_tab_title(self, title)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue