|
@@ -181,7 +181,7 @@ begin
|
|
t:=i;
|
|
t:=i;
|
|
break;
|
|
break;
|
|
end;
|
|
end;
|
|
- if t=xterm then
|
|
|
|
|
|
+ if t=xterm then
|
|
begin
|
|
begin
|
|
{Rxvt sets TERM=xterm and COLORTERM=rxvt. Gnome does something similar.}
|
|
{Rxvt sets TERM=xterm and COLORTERM=rxvt. Gnome does something similar.}
|
|
term:=fpgetenv('COLORTERM');
|
|
term:=fpgetenv('COLORTERM');
|
|
@@ -229,7 +229,8 @@ begin
|
|
begin
|
|
begin
|
|
{Use the xterm mouse, report all mouse events.}
|
|
{Use the xterm mouse, report all mouse events.}
|
|
gpm_fs:=-1003;
|
|
gpm_fs:=-1003;
|
|
- write(#27'[?1003h'); { enable mouse tracking }
|
|
|
|
|
|
+ write(#27'[?1002h'); { enable mouse down, up and drag tracking (putty pretend to be xterm but doesn't have _[?1003h mode)}
|
|
|
|
+ write(#27'[?1003h'); { enable mouse all motion tracking }
|
|
if not DisableSGRExtModeMouse then
|
|
if not DisableSGRExtModeMouse then
|
|
write(#27'[?1006h'); { try to enable Extended/SGH 1006 mouse tracking }
|
|
write(#27'[?1006h'); { try to enable Extended/SGH 1006 mouse tracking }
|
|
end;
|
|
end;
|
|
@@ -271,7 +272,8 @@ begin
|
|
end;
|
|
end;
|
|
-1003:
|
|
-1003:
|
|
begin
|
|
begin
|
|
- write(#27'[?1003l'); { disable mouse tracking }
|
|
|
|
|
|
+ write(#27'[?1003l'); { disable mouse all motion tracking }
|
|
|
|
+ write(#27'[?1002l'); { disable mouse down, up and drag tracking }
|
|
if not DisableSGRExtModeMouse then
|
|
if not DisableSGRExtModeMouse then
|
|
write(#27'[?1006l'); { disable Extended/SGH 1006 mouse tracking }
|
|
write(#27'[?1006l'); { disable Extended/SGH 1006 mouse tracking }
|
|
end;
|
|
end;
|