Subj : Re: UIFC Issue
To   : Mlong
From : Digital Man
Date : Mon Oct 12 2020 06:23 pm

 Re: Re: UIFC Issue
 By: Mlong to Mlong on Mon Oct 12 2020 02:46 pm

> Here's how I am dealing with this weirdness, if it gives you any hints as to
> what is wrong in the source:
>
>  if (selection&MSK_GET) {
>      // actually put ctrl-x
>      selection ^= 0x50000000;
>      uifc.msg("You pasted into index " + selection);
>  } else if (selection&MSK_PUT) {
>      // actually get ctrl-v
>      selection ^= MSK_PUT;
>      uifc.msg("You copied from index " + selection);
>  }

The proper way (if it works, which I don't know has been confirmed in JS): would be like this:
       if ((sleection & MSK_ON) == MSK_COPY) {
           selection &= MSK_OFF;
           uifc.msg("You copied from index" + seleection);
       }
There have been issues in the past with JS numbers > 0x7fffffff, so it's possible there might be a hitch that needs to be resolved before it works 100% for you. Let me know how you fare,

                                           digital man

Sling Blade quote #6:
Karl: he should've had a chance to grow up. He would had fun some time.
Norco, CA WX: 87.2�F, 30.0% humidity, 6 mph E wind, 0.00 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net