On Tue, Feb 18, 2003 at 11:53:32AM +0100, Oswald Buddenhagen wrote:
> > > mc forgets to reset the x window title when it exits.
> > 
> > It was never meant to "reset" the title.  There was a discussion how
> > to restore the original title, but no good solution was suggested.
> > 
> too bad. is the problem that xterm does not provide a title query
> sequence?
> 
ok, i read the threads about it.
the direct x connection variant is doomed to failure on remote machines 
if no (x forwarding)/(env var setup) is done. i strongly dislike it.
so back to xterm's reporting sequence. it _is_ doable - your approach was
just incorrect: you've tried to force an asynchronous function into a
synchronous execution scheme. not only that it obviously does not work
very well, it's not even necessary: at startup the query command should
be sent and things should continue as usual. the reply should be handled
asynchronously as part of the normal input stream. that effectively
means, that at the time the old title is received, a new one has been set 
already long ago - who cares? on the xterm side the processing is done
in-order, so we'll always get the correct title. one remaining case is
mc exiting before the report arrives, but anybody quitting mc after no
more than 5 seconds should be shot anyway. :)
does this make sense?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
_______________________________________________
Mc-devel mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/mc-devel

Reply via email to