On Mon, 3 Feb 2003, D. Hugh Redelmeier wrote:

> | I guess the comparable chunks are like this:
> |
> | select(6, [4 5], [], NULL, {0, 0}) = 1 (in [4], left {0, 0})
> | select(5, [4], [], [], {0, 0}) = 1 (in [4], left {0, 0})
> | select(5, [4], [], [], {0, 0}) = 1 (in [4], left {0, 0})
> | select(5, [4], [], [], {0, 0}) = 1 (in [4], left {0, 0})
>
> That sure looks like it ought to eat all available CPU.
> None of those calls should block.

well - it didn't.  I was watching both xload and top.  on the redhat8, I
could see that it fell into a pattern that eventually blew up, but not
on the slackware71.

>
> | > | > What do you think about the approach I suggested (act as if a default
> | > | > CSI...T sequence had been received until the real one is)?  Perhaps
> | > | > the default should only be used after some timeout.
> | > |
> | > | it's not entirely clear to me what the sequence would be here.
> | >
> | > Two obvious ones: the whole xterm region, or an empty region at the
> | > point of the cursor.  I'd vote for the empty region: no information
> | > about a subsequent click is lost (the answer will be forced to be the
> | > long form).
> | >
> | > Clearly func should be non zero in either case: we don't want to
> | > cancel the mode.
> | >
> | > I do suggest that the default only be installed after a brief timeout.
> | > How long?  A tenth of a second feels about right.
> | >
> | > I also suggest that the default be replaced if and when the explicit
> | > CSI...T sequence is received.
> |
> | It sounds as if you're proposing to make it return a dummy escape sequence -
> | or make the escape sequence terminate automatically after a short time -
> | but it's not clear to me
>
> Sorry, I'll try to be clearer.
>
> When a button is pressed in mouse hilite tracking mode,
> xterm sends ESC [ M Cb Cx Cy to the PTY
> xterm awaits ESC ... T from the PTY, doing nothing else.
>
> The ESC [ Ps ; Ps ; Ps ; Ps ; Ps T informs xterm:
>       func:   non zero to initiate hilite tracking and 0 to abort
>       startx, starty: starting location for highlighted region
>       firstrow, lastrow: limits for tracking
>
> I'm proposing that until the ESC ... T message is received from
> through the PTY, the xterm should act as if it had received something
> like: ESC [ 1 ; curx ; cury ; currow ; currow T
> This would be provisional.  When (if) an ESC ... T is actually received,
> it should override this default.

ok - I can see what you're asking (sounds reasonable).

-- 
T.E.Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to