import { ttymouse } from "https://deno.land/x/denops_std@v3.9.2/option/vim/mod.ts";
{only in Unix and VMS, doesn't work in the GUI; not available when compiled without |+mouse|} Name of the terminal type for which mouse codes are to be recognized. Currently these strings are valid: xterm xterm-like mouse handling. The mouse generates "[Mscr", where "scr" is three bytes: "s" = button state "c" = column plus 33 "r" = row plus 33 This only works up to 223 columns! See "dec", "urxvt", and "sgr" for solutions. xterm2 Works like "xterm", but with the xterm reporting the mouse position while the mouse is dragged. This works much faster and more precise. Your xterm must at least at patchlevel 88 / XFree 3.3.3 for this to work. See below for how Vim detects this automatically. netterm NetTerm mouse handling. A left mouse click generates "}r,c", where "r,c" are two decimal numbers for the row and column. No other mouse events are supported. dec DEC terminal mouse handling. The mouse generates a rather complex sequence, starting with "[". This is also available for an Xterm, if it was configured with "--enable-dec-locator". jsbterm JSB term mouse handling. pterm QNX pterm mouse handling. urxvt Mouse handling for the urxvt (rxvt-unicode) terminal. The mouse works only if the terminal supports this encoding style, but it does not have 223 columns limit unlike "xterm" or "xterm2". sgr Mouse handling for the terminal that emits SGR-styled mouse reporting. The mouse works even in columns beyond 223. This option is backward compatible with "xterm2" because it can also decode "xterm2" style mouse codes.