Giter Site home page Giter Site logo

Comments (3)

z0rc avatar z0rc commented on June 11, 2024

A bit more clarification. I tested each print from https://github.com/MikeDacre/tmux-zsh-vim-titles/blob/master/unified-titles.plugin.zsh#L65-L73, none of them works with KDE's konsole and TERM=xterm-256color.
But it's still possible to do so by issuing echo -ne "\033]30;$PWD\007", this command successfully changes konsole's windows title. I don't know how portable is this and whether it works with other terminal emulators.

from tmux-zsh-vim-titles.

MikeDacre avatar MikeDacre commented on June 11, 2024

Hi @z0rc, apologies for the delay, I was travelling.

The window title actually just refers to the tmux window, not the application window. The application window title is the terminal title, so you are right that the window title is tmux specific.

As for konsole, it should be possible to use the ASCII control characters you suggest, I would need to detect that konsole is being used though. Do you know of a way to detect that konsole is being used from the command line?

from tmux-zsh-vim-titles.

z0rc avatar z0rc commented on June 11, 2024
% env | grep KONSOLE
KONSOLE_DBUS_SERVICE=:1.64
KONSOLE_DBUS_SESSION=/Sessions/1
KONSOLE_DBUS_WINDOW=/Windows/1
KONSOLE_PROFILE_NAME=Main

For example vim terminus uses those env vars to detect Konsole. See https://github.com/wincent/terminus/search?utf8=%E2%9C%93&q=KONSOLE&type=

from tmux-zsh-vim-titles.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.