Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get terminal title #617

Open
carrascomj opened this issue Nov 1, 2021 · 0 comments
Open

Get terminal title #617

carrascomj opened this issue Nov 1, 2021 · 0 comments

Comments

@carrascomj
Copy link

Is your feature request related to a problem? Please describe.

In some TUI applications (like a text editor), the window title might be modified to display some information (see for example helix-editor/helix#928) and that's already implemented here. However, it is desirable to also revert it back to what it was in the first place, but there's no option to get the title to store it before setting it.

Describe the solution you'd like

As an user, I would like to have a title getter function, complementary to SetTitle and in the same fashion as size.

Describe alternatives you've considered in any
The user could always interact with the lower-level underlying libraries and that would require to handle different platforms, which I guess it is not desirable. I think it makes sense to provide the Getter/Setter pair.

Additional context
Anything else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant