-
How can i change the escape code sent to a xterm-256color terminal when i use the wheel of mouse ? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
You could change the sent bytes by altering the encodings here But be aware, that changing standard encodings to something else will render mouse reports unusable for all apps, that expect standard encoding content (which should be 100% of all apps with proper mouse support). Isn't it easier/less error-prone to tell your app to do the "page up/down" scrolling on a proper wheel event? |
Beta Was this translation helpful? Give feedback.
-
i'm not an expert , but reading -> https://gist.github.com/halcyon/334da650816876d7be4d1bee8a157f25 i come into the Alternate Scroll mode, so xterm.js use always this mode ..
|
Beta Was this translation helpful? Give feedback.
-
This sounds a bit like an xy issue. At a higher level - what do you want to achieve? Normally, w'o any mouse reports being requested by app side, the wheel gets not caught by the terminal and will just scroll on the scrollback (if there is any). Thats browser side only. |
Beta Was this translation helpful? Give feedback.
-
The app the i want to use with page up/down is https://github.com/tn5250/tn5250 , is hard for me modify the tn5250 code to convert a 4 time pressed up/down key in a 1 time pressed page up/down ... |
Beta Was this translation helpful? Give feedback.
-
look better maybe i found my answer.. -> https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/mouse.html |
Beta Was this translation helpful? Give feedback.
Maybe catch here is to correctly ask for mouse reports with
mousemask
?