[Alpine-info] Screen and Alpine and Window-Titles
Dan Mahoney, System Admin
danm at prime.gushi.org
Thu Dec 4 21:43:43 PST 2008
On Thu, 4 Dec 2008, Rick Troxel wrote:
> Today (12/04/08) at 18:53 -0500, Dan Mahoney, System Admin wrote:
>> In my .cshrc I have the following:
>> if ($TERM == "screen") then
>> alias postcmd 'printf "\033%s%s %s %s\033\\" "k" "\!#:0" "\!#:$"
>> However I find that whenever alpine calls another command (a filter, a
>> pipe, a viewer), that command gets written to (and stuck as) my screen
>> This doesn't happen if say, from tcsh I launch bash and run commands. Does
>> alpine somehow return to the shell and background itself when running a
> I recently worked around this symptom by switching from
> color-style=use-termdef to color-style=no-color.
..I wonder why that would fix it? Perchance when pine runs a pipe
command, its viewer suppresses the escape codes? Strictly speaking, why
is pine touching the escape codes for window titling, as they are not
affected by color.
Did you also experience the issue when running a viewer? Right now I just
viewed a URL and my window title is:
So this isn't just a case of escape-code polluting (i.e. the color-change
escape code being interpreted as a window-titler).
The real question is this: is postcmd being run? If so why? It seems it
I could set postcmd to echo itself out to a file or something -- but is
there someone more active in development who can tell me how these
processes are run? Does alpine suspend? Fork? Background? Is it
running a subshell?
When I set no-color, I still a) saw lynx in color (which implied alpine
wasn't stripping the codes) and b) had my shelltitle reset.
Anyone else able to comment?
"Hitler, Satan, those Hanson kids, anything. Just not the curious
-Peter Scolari, as Wayne Szalinki in "Honey, I Shrunk The Kids--The
Techie, Sysadmin, WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144 AIM: LarpGM
More information about the Alpine-info