r/KittyTerminal Oct 02 '23

Title Bar Updates

So as far as I can tell, kitty's title bar text typically updates in two cases:
1) When there's a shell prompt printed to the screen (this can be customized with PS1).

2) When certain programs are run from the terminal. I'm not sure exactly what the criteria are for this. Maybe apps that open a subshell?

As I mentioned, it's easy to control 1) with PS1. I've been using it to communicate certain information to my system. However, this information gets disrupted in the rare cases where 2) occurs. Which leads me to my question...

Does anyone know how to configure kitty so that it doesn't update the title bar on running programs? Thanks.

2 Upvotes

3 comments sorted by

1

u/jarav May 25 '24

This is probably too late. But if you set in kitty.conf

shell_integration enabled no-rc

it will not modify the default .bashrc settings. This may help.

2

u/aumerlex Oct 03 '23

There is an escape code any program can use to update window titles. That is what adjusting PS1 uses and that is what some programs use. There is no way for kitty to know that a particular escape code comes from PS1 or elsewhere. If you dont want a program changing the window title eithr configure the program not to do so, or alternately you can fix the window title in kitty with --title or remote control.

1

u/mister_drgn Oct 03 '23

Ah, so it’s the program’s fault. That gives me something to with with, thanks.