[PR #6433] [MERGED] Set tab title as early as possible #26679

Open
opened 2026-01-31 09:17:31 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/6433
Author: @beviu
Created: 6/9/2020
Status: Merged
Merged: 6/9/2020
Merged by: @undefined

Base: masterHead: set-title-early


📝 Commits (1)

📊 Changes

6 files changed (+20 additions, -14 deletions)

View changed files

📝 src/cascadia/TerminalApp/Tab.cpp (+1 -0)
📝 src/cascadia/TerminalControl/TermControl.cpp (+2 -0)
📝 src/cascadia/TerminalCore/Terminal.cpp (+6 -8)
📝 src/cascadia/TerminalCore/Terminal.hpp (+1 -1)
📝 src/cascadia/TerminalCore/TerminalApi.cpp (+5 -4)
📝 src/cascadia/TerminalCore/terminalrenderdata.cpp (+5 -1)

📄 Description

When opening a new tab, it takes a few milliseconds before title to
appears. This PR makes it instantaneous.

  • Updated the Terminal so that it can load the title from the settings
    before it is initialized.
  • Load terminal settings in TermControl constructor before the terminal
    is initialized (see above).
  • Update Tab so that it sets the TabViewItem's title in the constructor
    (in Tab::_MakeTabViewItem) instead of waiting for the VT sequence to
    set the title (from what I understand).

NOTE 1: there is a similar problem with the tabview icon which is not
fixed by this PR.

NOTE 2: This is only a problem with animations disabled because
otherwise the title fades in so there is enough time for it to be set
when it becomes visible.

Validation

I ran the terminal and opened a new tab. The title appears instantly.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/6433 **Author:** [@beviu](https://github.com/beviu) **Created:** 6/9/2020 **Status:** ✅ Merged **Merged:** 6/9/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `set-title-early` --- ### 📝 Commits (1) - [`adb39a0`](https://github.com/microsoft/terminal/commit/adb39a0cc11813aa2a3ed7818d50637feb71273a) Set tab title early ### 📊 Changes **6 files changed** (+20 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Tab.cpp` (+1 -0) 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+2 -0) 📝 `src/cascadia/TerminalCore/Terminal.cpp` (+6 -8) 📝 `src/cascadia/TerminalCore/Terminal.hpp` (+1 -1) 📝 `src/cascadia/TerminalCore/TerminalApi.cpp` (+5 -4) 📝 `src/cascadia/TerminalCore/terminalrenderdata.cpp` (+5 -1) </details> ### 📄 Description When opening a new tab, it takes a few milliseconds before title to appears. This PR makes it instantaneous. * Updated the Terminal so that it can load the title from the settings before it is initialized. * Load terminal settings in TermControl constructor before the terminal is initialized (see above). * Update Tab so that it sets the TabViewItem's title in the constructor (in Tab::_MakeTabViewItem) instead of waiting for the VT sequence to set the title (from what I understand). NOTE 1: there is a similar problem with the tabview icon which is not fixed by this PR. NOTE 2: This is only a problem with animations disabled because otherwise the title fades in so there is enough time for it to be set when it becomes visible. ## Validation I ran the terminal and opened a new tab. The title appears instantly. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:17:31 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26679