matthiasblaesing opened a new pull request, #9796: URL: https://github.com/apache/netbeans/pull/9796
Copy to clipboard (OSC52) ========================= Terminal programs can instruct the terminal emulator to insert text data into the clipboard using the escape sequence `\033]52;c;<base64-text>\a`. For example this can be used by terminal programs to implement custom selection tracking and copy handling. This is for example implemented in vim and opencode. Bracketed paste =============== Terminal programms can request the terminal emulator to wrap pasted text into escape sequences (private mode 2004). This allows for example vim to discern a paste from regular input. This is especially useful if automatic indention is active in vim as without this detection reindention is also applied to pasted text (for normal input mode). Before this change pasting into vim while in insert mode resulted in this: <img width="1177" height="312" alt="grafik" src="https://github.com/user-attachments/assets/18def8f3-b643-4e2f-878a-89d06761d10c" /> With bracketed insert vim does not try to reindent: <img width="1042" height="232" alt="grafik" src="https://github.com/user-attachments/assets/b892a5e1-9354-4e1b-bb97-441887409187" /> Mouse tracking/reporting ======================== Mouse tracking/reporting allows terminal applications to be controlled with a mouse. Programs that support this are for example mc or opencode. In this screenshot the directories `extra`, `groovy` and `harness` were selected by right clicking on the entries and the menu was opened with a left click on the menu entry: <img width="1090" height="393" alt="grafik" src="https://github.com/user-attachments/assets/4556b524-227b-4731-a9c4-015a0b29d9f3" /> In this screenshot opencode is shown with the generated code partially selected (with normal terminal selection the selection would extend into the right side panel): <img width="1350" height="641" alt="Bildschirmfoto vom 2026-11-11 20-17-21" src="https://github.com/user-attachments/assets/d1aadf7f-b660-4398-b4b9-8025db0aedfe" /> Opencode then correctly copies the text to clipboard. <img width="1350" height="641" alt="grafik" src="https://github.com/user-attachments/assets/2489d34e-0bf8-4e2b-9707-a8e74b43c1ed" /> Implement are the modes: - 1000: Mouse click tracking without movement information - 1002: Mouse click tracking and movement information while mouse button is pressed (drag) - 1003: Mouse click tracking and full movement reporting Reporting of the coordinates is supported in basic and SGR format. As implemented in `xterm` and the gnome terminal, normal selection and context menu become available while shift is held down. Focus tracking ============== Reporting the focus state to the terminal application to update themselves on focus events and adjust behavior according to that state. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
