home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux      Getting to be as bloated as Windows!      107,822 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 107,802 of 107,822   
   Carlos E. R. to Maria Sophia   
   Re: PSA: Clipboard differences between C   
   15 Feb 26 22:04:34   
   
   XPost: alt.comp.software.firefox, comp.sys.mac.system   
   From: robin_listas@es.invalid   
      
   On 2026-02-15 20:49, Maria Sophia wrote:   
   > Carlos E. R. wrote:   
      
   ...   
      
   > But, running a quick search on your behalf, it may be that on X11, the   
   > closest equivalent may be xclip or xsel.   
   > Apparently both can list the clipboard formats the same way   
   > wl-paste does on Wayland.   
   >   
   > For example, with xclip you can run:   
   >   
   >     xclip -selection clipboard -t TARGETS -o   
   >   
   > That prints the list of offered clipboard formats under X11. It seems,   
   > to me, to be the same idea as wl-paste -l, but   
   > just for the X11 clipboard instead of the Wayland clipboard.   
   >   
   > If you run that command after copying text from Firefox, then run it   
   > again after copying the same text from Chrome, you should see the same   
   > pattern that Lawrence showed (assuming the original copy had HTML).   
      
   Ok, that is easy to do.   
      
   Using the same selection as in my previous test.   
      
   Firefox:   
      
   cer@Laicolasse:~> xclip -selection clipboard -t TARGETS -o   
   TIMESTAMP   
   TARGETS   
   MULTIPLE   
   SAVE_TARGETS   
   text/html   
   text/_moz_htmlcontext   
   text/_moz_htmlinfo   
   UTF8_STRING   
   COMPOUND_TEXT   
   TEXT   
   STRING   
   text/plain;charset=utf-8   
   text/plain   
   text/x-moz-url-priv   
   cer@Laicolasse:~>   
      
   Chrome   
      
   cer@Laicolasse:~> xclip -selection clipboard -t TARGETS -o   
   TIMESTAMP   
   TARGETS   
   SAVE_TARGETS   
   MULTIPLE   
   STRING   
   TEXT   
   UTF8_STRING   
   text/plain;charset=utf-8   
   text/plain   
   text/html   
   chromium/x-internal-source-rfh-token   
   chromium/x-source-url   
   cer@Laicolasse:~>   
      
      
   ...   
      
   --   
   Cheers,   
           Carlos E.R.   
           ES🇪🇸, EU🇪🇺;   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca