Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465074 - =app-portage/eix-0.28.3 eix-update does not reset the terminal title before it exits
Summary: =app-portage/eix-0.28.3 eix-update does not reset the terminal title before i...
Status: RESOLVED DUPLICATE of bug 407473
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-08 11:29 UTC by Louis Sautier (sbraz)
Modified: 2013-04-09 07:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Sautier (sbraz) gentoo-dev 2013-04-08 11:29:34 UTC
eix uses a Statusline() function to display progress in the terminal title as it is running. However it does not reset the terminal title to its original value before it exits.
This messes up tmux and GNU Screen status bars and probably other terminal emulators' as well. These will then display "eix-update: Finished" until the user manually changes the title.
I couldn't find a way to get the current terminal title to reset it later so I have no idea how to fix this. Maybe the status information could merely be discarded since it doesn't add much to the program.

Reproducible: Always

Steps to Reproduce:
1. run eix-update
2. wait for the program to exit
Actual Results:  
The terminal title is "eix-update: Finished".

Expected Results:  
The terminal title should be reset to what it was before eix was run, e.g. "bash".
Comment 1 Martin Väth 2013-04-09 07:16:06 UTC
It is not possible to "reset" the status line since there is not global state for it. See bug 407473 comment 7 and 4 for how to configure eix to use a different exit status line or how to make it not changing the status line at all.

Concerning the "value" of the status line: I think it is valuable to know whether a program running for a longer time in a parallel window has finished or how far it has proceeded without having to switch to that window (in tmux/screen/whatever). Concerning eix this holds for eix-sync but also eix-update and eix-remote.

It is a good idea (not only w.r.t. eix) to set your own status line in the prompt - good prompts do this (see e.g. app-shells/set_prompt from the mv overlay). Then your "problem" vanishes anyway.

*** This bug has been marked as a duplicate of bug 407473 ***