Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211875 - Add support for Title Setting in the Interix Terminal
Summary: Add support for Title Setting in the Interix Terminal
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Interix
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-29 09:49 UTC by Markus Duft (RETIRED)
Modified: 2008-03-01 21:10 UTC (History)
0 users

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


Attachments
Patch for bashrc in tree to add terminal type interix (bashrc-interix.patch,469 bytes, patch)
2008-02-29 09:50 UTC, Markus Duft (RETIRED)
Details | Diff
patch for prefix-portage to set windows title on interix terminals (prefix-portage-windowtitle.patch,641 bytes, patch)
2008-02-29 09:51 UTC, Markus Duft (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Duft (RETIRED) gentoo-dev 2008-02-29 09:49:33 UTC
The Interix Terminal supports the same mechanism for title setting as xterm does. this means, that adding support is quite easy. i have two patches ready: one for app-shells/bash/files/bashrc, and one for prefix-portage. i will attach both.

Reproducible: Always

Steps to Reproduce:
1. Start an Interix Shell.
2. emerge something
3. 

Actual Results:  
windows title is not set.

Expected Results:  
windows title should be set by both bashrc and emerge
Comment 1 Markus Duft (RETIRED) gentoo-dev 2008-02-29 09:50:46 UTC
Created attachment 144930 [details, diff]
Patch for bashrc in tree to add terminal type interix
Comment 2 Markus Duft (RETIRED) gentoo-dev 2008-02-29 09:51:15 UTC
Created attachment 144932 [details, diff]
patch for prefix-portage to set windows title on interix terminals
Comment 3 Markus Duft (RETIRED) gentoo-dev 2008-02-29 11:12:28 UTC
another thing: it's also just cosmetics, but:

the interix term seems to reserve space for the \n in each line. If there is a char at the last position in a line, then the \n is on the next line, and therefore there is an empty line inserted (which is ugly...). This now happens everytime that portage prints [ ok ] or [ !! ] at the end of a line.

The solution would be to just print the [ ok ]'s one char earlier. iirc, this would just be changing an int somewhere in portage, where the position is calculated.
Comment 4 Fabian Groffen gentoo-dev 2008-02-29 11:38:01 UTC
Its partly portage, and partly baselayout iirc.  Both are written in bash if I'm not mistaken, though.
Comment 5 Fabian Groffen gentoo-dev 2008-03-01 17:55:53 UTC
portage patch applied in rev 9405, thanks
Comment 6 Fabian Groffen gentoo-dev 2008-03-01 21:10:48 UTC
I applied the patch to bash in gentoo-x86, so should come through on the next sync.  Thanks!