MCPcopy Create free account
hub / github.com/gwsw/less / init_mouse

Function init_mouse

screen.c:1666–1678  ·  view source on GitHub ↗

* Configure the termimal so mouse clicks and wheel moves * produce input to less. */

Source from the content-addressed store, hash-verified

1664 * produce input to less.
1665 */
1666 public void
1667init_mouse(VOID_PARAM)
1668{
1669#if !MSDOS_COMPILER
1670 ltputs(sc_s_mousecap, sc_height, putchr);
1671#else
1672#if MSDOS_COMPILER==WIN32C
1673 SetConsoleMode(tty, ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT
1674 | ENABLE_EXTENDED_FLAGS /* disable quick edit */);
1675
1676#endif
1677#endif
1678}
1679
1680/*
1681 * Configure the terminal so mouse clicks and wheel moves

Callers 2

initFunction · 0.85
opt_mousecapFunction · 0.85

Calls 1

ltputsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…