Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: one time in 20 error



It is a mouse event (SGR report mode)
CSI < p1 ; p2 ; p3 m   button release
CSI < p1 ; p2 ; p3 M   button press or move
p1 = button + modifiers
p2 = column
p3 = row

https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking

(Sent this just to Ray first by accident, apologies for the dupe.)

On Mon, Nov 28, 2022 at 7:41 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> I have a function that uses zcurses that works fine about 19 times out
> of 20 but occasionally, on returning, it leaves something like this on
> the command line:
>
> #zsh: permission denied: 1
> #^[[<0;24;4m#
> $ 0;24;4m
>
> ... the first number is always zero, the second is always two digits and
> the third one can be one or two digits.  The semi-colons and the 'm'
> never change.  Does anyone have the slightest clue what might be going
> on?  They look like color codes sorta.  When it happens seems completely
> random and it's frustratingly rare, so hard to even begin to diagnose.
> When it happens nothing seems amiss subsequently -- nothing seems to be
> broken.
>
>
>
>




Messages sorted by: Reverse Date, Date, Thread, Author