Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • V vte
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 343
    • Issues 343
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • vte
  • Issues
  • #36
Closed
Open
Issue created Sep 02, 2018 by Martin Hostettler@textshell

Odd choice for "legacy mode" mouse position/event reporting range.

In Terminal::feed_mouse_event vte uses 231 as the maximum unencoded value to report in legacy mode.

        } else if (cx <= 231 && cy <= 231) {
                /* legacy mode */
                len = g_snprintf(buf, sizeof(buf), _VTE_CAP_CSI "M%c%c%c", 32 + cb, 32 + (guchar)cx, 32 + (guchar)cy);

32 + 231 overflows the char to (effectively) 7. The boundary seems odd and is different than other emulators do this.

xterm stops reporting details with 223 but uses '\0' as indication that an overflow occurred.

rxvt-unicode freely wraps without limit.

konsole uses a condition similar to vte but with 223 as highest reported unencoded value which will be encoded as 255 and thus avoids wrapping around.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking