Compare commits
No commits in common. "d39c35e59e6e541cf1f8e2479c77203f6214e5e6" and "f7912a8ce7bbf7f701b5217bbb3879b13b66cfe7" have entirely different histories.
d39c35e59e
...
f7912a8ce7
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
||||
Copyright (c) 2007-2014 Paul Evans <leonerd@leonerd.org.uk>
|
||||
Copyright (c) 2014-2021 Přemysl Eric Janouch <p@janouch.name>
|
||||
Copyright (c) 2014-2020 Přemysl Eric Janouch <p@janouch.name>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
11
driver-ti.c
11
driver-ti.c
@ -272,8 +272,7 @@ load_terminfo (termo_ti_t *ti, const char *term)
|
||||
if (!have_mouse)
|
||||
ti->tk->guessed_mouse_proto = TERMO_MOUSE_PROTO_NONE;
|
||||
else if (strstr (term, "rxvt") == term)
|
||||
// urxvt didn't understand the SGR protocol until version 9.25,
|
||||
// it's safest to keep using 1015.
|
||||
// urxvt generally doesn't understand the SGR protocol.
|
||||
ti->tk->guessed_mouse_proto = TERMO_MOUSE_PROTO_RXVT;
|
||||
else
|
||||
// SGR (1006) is the superior protocol. If it's not supported by the
|
||||
@ -364,8 +363,6 @@ mouse_reset (termo_ti_t *ti)
|
||||
&& write_string (ti->tk, "\x1b[?1002l")
|
||||
&& write_string (ti->tk, "\x1b[?1003l")
|
||||
|
||||
&& write_string (ti->tk, "\x1b[?1004l")
|
||||
|
||||
&& write_string (ti->tk, "\x1b[?1005l")
|
||||
&& write_string (ti->tk, "\x1b[?1006l")
|
||||
&& write_string (ti->tk, "\x1b[?1015l");
|
||||
@ -413,12 +410,8 @@ start_driver (termo_t *tk, void *info)
|
||||
// Disable everything mouse-related first
|
||||
if (!mouse_reset (ti))
|
||||
return false;
|
||||
|
||||
// Enable focus tracking opportunistically and automatically,
|
||||
// as it basically doesn't have any negative consequences at all
|
||||
return mouse_set_proto (ti, tk->mouse_proto, true)
|
||||
&& mouse_set_tracking_mode (ti, tk->mouse_tracking, true)
|
||||
&& write_string (ti->tk, "\x1b[?1004h");
|
||||
&& mouse_set_tracking_mode (ti, tk->mouse_tracking, true);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user