Allow tab title to be updated linux-style #6048

Open
opened 2026-01-31 00:28:36 +00:00 by claunia · 0 comments
Owner

Originally created by @ErMaqui on GitHub (Jan 20, 2020).

Hi,

A good feature for windows terminal can be allowing update window title as putty does (or any terminal on linux).

I don't know how it's work, but, on bash, there's a configuration for exporting a variable with the window title:

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}: ${PWD/$HOME/~}\007"'
    ;;
*)
    ;;
esac

PuTTY, or any bash opened on linux on x-windows, reads this variable and set the title with it.
That's possible to be implemented on Windows Terminal?

Originally created by @ErMaqui on GitHub (Jan 20, 2020). Hi, A good feature for windows terminal can be allowing update window title as putty does (or any terminal on linux). I don't know how it's work, but, on bash, there's a configuration for exporting a variable with the window title: ``` # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}: ${PWD/$HOME/~}\007"' ;; *) ;; esac ``` PuTTY, or any bash opened on linux on x-windows, reads this variable and set the title with it. That's possible to be implemented on Windows Terminal?
claunia added the Issue-QuestionArea-VTResolution-AnsweredProduct-Terminal labels 2026-01-31 00:28:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6048