u/mdw/putty
22 years agoExtensive changes that _should_ fix the socket buffering problems,
simon [Sat, 25 Aug 2001 17:09:23 +0000 (17:09 +0000)]
Extensive changes that _should_ fix the socket buffering problems,
by ceasing to listen on input channels if the corresponding output
channel isn't accepting data. Has had basic check-I-didn't-actually-
break-anything-too-badly testing, but hasn't been genuinely tested
in stress conditions (because concocting stress conditions is non-
trivial).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1198 cda61777-01e9-0310-a592-d414129be87e

22 years agoOops - fix that fix :-/
simon [Wed, 22 Aug 2001 20:23:49 +0000 (20:23 +0000)]
Oops - fix that fix :-/

git-svn-id: svn://svn.tartarus.org/sgt/putty@1197 cda61777-01e9-0310-a592-d414129be87e

22 years agoWording change: make it explicit that you can enter an IP address as
simon [Wed, 22 Aug 2001 19:56:41 +0000 (19:56 +0000)]
Wording change: make it explicit that you can enter an IP address as
well as a hostname.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1196 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix to allow more than one challenge/response pair during
simon [Wed, 22 Aug 2001 19:47:05 +0000 (19:47 +0000)]
Fix to allow more than one challenge/response pair during
keyboard-interactive authentication. UNTESTED except that I checked
it compiles. Will ask for testing from the user who complained.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1195 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdd a comment about Dragon NaturallySpeaking: it apparently requires
simon [Thu, 16 Aug 2001 11:09:25 +0000 (11:09 +0000)]
Add a comment about Dragon NaturallySpeaking: it apparently requires
Alt+Space to work the Windows way.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1188 cda61777-01e9-0310-a592-d414129be87e

22 years agoDocument /DNO_SECURITY compile option.
jacob [Wed, 15 Aug 2001 19:47:00 +0000 (19:47 +0000)]
Document /DNO_SECURITY compile option.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1187 cda61777-01e9-0310-a592-d414129be87e

22 years agoUpdated Makefile.cyg for Glenn Maynard's IME patch.
jacob [Wed, 15 Aug 2001 19:41:14 +0000 (19:41 +0000)]
Updated Makefile.cyg for Glenn Maynard's IME patch.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1186 cda61777-01e9-0310-a592-d414129be87e

22 years agoTrivial port forwarding fixes from Jacob
simon [Wed, 15 Aug 2001 18:23:50 +0000 (18:23 +0000)]
Trivial port forwarding fixes from Jacob

git-svn-id: svn://svn.tartarus.org/sgt/putty@1185 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix potential segfault in port forwarding code
simon [Mon, 13 Aug 2001 12:43:29 +0000 (12:43 +0000)]
Fix potential segfault in port forwarding code

git-svn-id: svn://svn.tartarus.org/sgt/putty@1184 cda61777-01e9-0310-a592-d414129be87e

22 years agoFirst phase of Unicode polishing: replace the edit box with a combo
simon [Sun, 12 Aug 2001 19:25:21 +0000 (19:25 +0000)]
First phase of Unicode polishing: replace the edit box with a combo
box. Also default to ISO8859-1 so that CSI works in the default
mode; this is ridiculously Western-centric but I can't honestly
think of a better option.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1183 cda61777-01e9-0310-a592-d414129be87e

22 years agoStop yelling about Access Denied if the server refuses even to
simon [Thu, 9 Aug 2001 21:22:38 +0000 (21:22 +0000)]
Stop yelling about Access Denied if the server refuses even to
attempt keyboard-interactive authentication. We can yell about it if
we make a creditable attempt and are rejected, but if the server
just refuses to even consider it then the user won't really want to
know (and if they do there's the Event Log).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1180 cda61777-01e9-0310-a592-d414129be87e

22 years agoPort forwarding now works in SSH 2 as well as SSH 1.
simon [Thu, 9 Aug 2001 21:17:05 +0000 (21:17 +0000)]
Port forwarding now works in SSH 2 as well as SSH 1.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1179 cda61777-01e9-0310-a592-d414129be87e

22 years agoKeyboard-interactive authentication, thanks to Paul Sokolovsky.
simon [Thu, 9 Aug 2001 20:13:17 +0000 (20:13 +0000)]
Keyboard-interactive authentication, thanks to Paul Sokolovsky.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1178 cda61777-01e9-0310-a592-d414129be87e

22 years agoOops - actually check in portfwd.c itself! (Makefile also modified
simon [Wed, 8 Aug 2001 20:53:27 +0000 (20:53 +0000)]
Oops - actually check in portfwd.c itself! (Makefile also modified
because it's been renamed to fit in 8.3, just in case.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1177 cda61777-01e9-0310-a592-d414129be87e

22 years agoSSH port forwarding! How cool is that?
simon [Wed, 8 Aug 2001 20:44:35 +0000 (20:44 +0000)]
SSH port forwarding! How cool is that?
Only currently works on SSH1; SSH2 should be doable but it's late
and I have other things to do tonight. The Cool Guy award for this
one goes to Nicolas Barry, for doing most of the work and actually
understanding the code he was adding to.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1176 cda61777-01e9-0310-a592-d414129be87e

22 years agoRemove the OSVERSIONINFOEX code because there's no obvious way to
simon [Tue, 7 Aug 2001 08:42:17 +0000 (08:42 +0000)]
Remove the OSVERSIONINFOEX code because there's no obvious way to
determine whether it'll compile before receiving the compile error.
Gah.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1175 cda61777-01e9-0310-a592-d414129be87e

22 years agoGlenn Maynard's patch completely disabled PuTTY{,tel} on any system
simon [Sat, 4 Aug 2001 15:45:25 +0000 (15:45 +0000)]
Glenn Maynard's patch completely disabled PuTTY{,tel} on any system
that didn't support OSVERSIONINFOEX. For example, such wildly out of
date things as NT4. Now fixed.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1174 cda61777-01e9-0310-a592-d414129be87e

22 years agoOops - IDC not IDV. Typo.
simon [Sat, 4 Aug 2001 15:22:52 +0000 (15:22 +0000)]
Oops - IDC not IDV. Typo.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1173 cda61777-01e9-0310-a592-d414129be87e

22 years agoGlenn Maynard's IME patch
simon [Sat, 4 Aug 2001 15:15:07 +0000 (15:15 +0000)]
Glenn Maynard's IME patch

git-svn-id: svn://svn.tartarus.org/sgt/putty@1172 cda61777-01e9-0310-a592-d414129be87e

22 years agoRainer Loritz noticed that the Telnet environment box is not cleared
simon [Sat, 4 Aug 2001 15:04:10 +0000 (15:04 +0000)]
Rainer Loritz noticed that the Telnet environment box is not cleared
when loading a new session. Oops!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1171 cda61777-01e9-0310-a592-d414129be87e

22 years agoPrevent recursive weirdnesses happening when the user selects a
simon [Sat, 4 Aug 2001 14:59:56 +0000 (14:59 +0000)]
Prevent recursive weirdnesses happening when the user selects a
system-tray menu option while a passphrase prompt is active.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1170 cda61777-01e9-0310-a592-d414129be87e

22 years agoSCO function key mode now affects the small keypad (Ins, Del, etc)
simon [Sat, 4 Aug 2001 14:35:58 +0000 (14:35 +0000)]
SCO function key mode now affects the small keypad (Ins, Del, etc)
in accordance with the keymap dump sent by Len Christiansen.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1169 cda61777-01e9-0310-a592-d414129be87e

22 years agoPatch to PSFTP: implement mkdir, rmdir, rm and scripting. Still to
simon [Sat, 4 Aug 2001 14:19:51 +0000 (14:19 +0000)]
Patch to PSFTP: implement mkdir, rmdir, rm and scripting. Still to
do: wildcards, chmod, mv, probably other things.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1168 cda61777-01e9-0310-a592-d414129be87e

22 years agoMention PLINK_PROTOCOL in the Plink chapter.
simon [Sat, 4 Aug 2001 13:06:08 +0000 (13:06 +0000)]
Mention PLINK_PROTOCOL in the Plink chapter.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1167 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdd description of the keepalives option
simon [Sat, 4 Aug 2001 13:05:54 +0000 (13:05 +0000)]
Add description of the keepalives option

git-svn-id: svn://svn.tartarus.org/sgt/putty@1166 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix segfault if the server maliciously sends the wrong type of key
simon [Sat, 4 Aug 2001 12:37:43 +0000 (12:37 +0000)]
Fix segfault if the server maliciously sends the wrong type of key
after a different type has been agreed.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1165 cda61777-01e9-0310-a592-d414129be87e

22 years agoYet another possible segfault path in the backends fixed. I don't
simon [Tue, 31 Jul 2001 14:23:21 +0000 (14:23 +0000)]
Yet another possible segfault path in the backends fixed. I don't
_believe_ I'm still finding these. I have no idea what I was
thinking when I wrote this stuff.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1162 cda61777-01e9-0310-a592-d414129be87e

22 years agoMinor wording clarification: somebody took the word `sessionname:'
simon [Sun, 1 Jul 2001 09:21:01 +0000 (09:21 +0000)]
Minor wording clarification: somebody took the word `sessionname:'
literally.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1158 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdded = to instructions for setting PATH
owen [Thu, 28 Jun 2001 13:36:14 +0000 (13:36 +0000)]
Added = to instructions for setting PATH

git-svn-id: svn://svn.tartarus.org/sgt/putty@1157 cda61777-01e9-0310-a592-d414129be87e

22 years agoRobert de Bath's implementation of ESC [ Z (backtab)
simon [Sat, 23 Jun 2001 16:59:00 +0000 (16:59 +0000)]
Robert de Bath's implementation of ESC [ Z (backtab)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1155 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdd some extra documentation: filled in the Getting Started chapter,
simon [Fri, 15 Jun 2001 19:31:10 +0000 (19:31 +0000)]
Add some extra documentation: filled in the Getting Started chapter,
added an introduction to public key authentication, and made a
couple of changes in intro.but. Transatlantic flights have some uses
after all.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1146 cda61777-01e9-0310-a592-d414129be87e

22 years agoBell panel docs.
owen [Sun, 3 Jun 2001 11:46:49 +0000 (11:46 +0000)]
Bell panel docs.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1144 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdded mention of rlogin, and a few words on VT100+ and SCO function
owen [Sun, 3 Jun 2001 11:10:20 +0000 (11:10 +0000)]
Added mention of rlogin, and a few words on VT100+ and SCO function
key settings.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1143 cda61777-01e9-0310-a592-d414129be87e

22 years agoDisable the most irritating compiler warnings in the Borland makefile.
simon [Mon, 28 May 2001 10:26:10 +0000 (10:26 +0000)]
Disable the most irritating compiler warnings in the Borland makefile.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1142 cda61777-01e9-0310-a592-d414129be87e

22 years agoOops - fixing the line-resizing segfault introduced a new
simon [Mon, 21 May 2001 13:33:12 +0000 (13:33 +0000)]
Oops - fixing the line-resizing segfault introduced a new
line-resizing segfault! Remind me to test under Minefield next time.
Should now be fine, as I've just done so.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1141 cda61777-01e9-0310-a592-d414129be87e

22 years agoMake sure the default protocol doesn't ever end up undefined in Plink.
simon [Sat, 19 May 2001 15:59:02 +0000 (15:59 +0000)]
Make sure the default protocol doesn't ever end up undefined in Plink.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1140 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdd some spare SetForegroundWindow and SetActiveWindow calls to try
simon [Sat, 19 May 2001 15:23:12 +0000 (15:23 +0000)]
Add some spare SetForegroundWindow and SetActiveWindow calls to try
to improve window behaviour. Also make the About box a subdialog of
the config box instead of a separate child of the root.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1139 cda61777-01e9-0310-a592-d414129be87e

22 years agoRDB: fix various UTF-8 glitches.
simon [Sat, 19 May 2001 15:21:05 +0000 (15:21 +0000)]
RDB: fix various UTF-8 glitches.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1138 cda61777-01e9-0310-a592-d414129be87e

22 years agoSCO ACS patch from RDB. Apparently required for the Linux console
simon [Sat, 19 May 2001 14:12:41 +0000 (14:12 +0000)]
SCO ACS patch from RDB. Apparently required for the Linux console
terminfo.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1137 cda61777-01e9-0310-a592-d414129be87e

22 years agoUpdate the two commented-out CFLAGS to include the same
simon [Sat, 19 May 2001 13:56:39 +0000 (13:56 +0000)]
Update the two commented-out CFLAGS to include the same
_WIN32_WINDOWS definition as the uncommented one.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1136 cda61777-01e9-0310-a592-d414129be87e

22 years agoBe prepared to print spaces at the end of a statistics line in case
simon [Sat, 19 May 2001 13:41:18 +0000 (13:41 +0000)]
Be prepared to print spaces at the end of a statistics line in case
the previously printed line was longer. Avoids multiple trailing
percents.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1135 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix from RDB: patch up mis-aimed fallthroughs in a terminal
simon [Sat, 19 May 2001 11:34:20 +0000 (11:34 +0000)]
Fix from RDB: patch up mis-aimed fallthroughs in a terminal
emulation switch. (Bug was introduced in mouse reporting.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1134 cda61777-01e9-0310-a592-d414129be87e

22 years agoTerminal fix from RDB: probably didn't mean to compare a Y value
simon [Sat, 19 May 2001 11:33:03 +0000 (11:33 +0000)]
Terminal fix from RDB: probably didn't mean to compare a Y value
with a column count!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1133 cda61777-01e9-0310-a592-d414129be87e

22 years agoSmall terminal fix from RDB: CSI 1 K should erase the cursor
simon [Sat, 19 May 2001 11:32:38 +0000 (11:32 +0000)]
Small terminal fix from RDB: CSI 1 K should erase the cursor
position itself, as well as everything to the left of it.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1132 cda61777-01e9-0310-a592-d414129be87e

22 years agoReinstate the Shift-Ins paste behaviour, which was accidentally
simon [Thu, 17 May 2001 10:06:54 +0000 (10:06 +0000)]
Reinstate the Shift-Ins paste behaviour, which was accidentally
broken by the mouse button redesignation that came with xterm mouse
reporting.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1130 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix the line-resizing bug in scroll(). (Thanks to RDB for pointing
simon [Thu, 17 May 2001 08:53:13 +0000 (08:53 +0000)]
Fix the line-resizing bug in scroll(). (Thanks to RDB for pointing
it out. A line was removed from the scrollback, cleared, and placed
at the bottom of the screen. Fine, except that the clearing process
assumed the line was the right length already, and thanks to lazy
resizing this wasn't necessarily the case. Segfaults and memory
corruption ensued.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1129 cda61777-01e9-0310-a592-d414129be87e

23 years agoSpecify a few things that were unsepcified.
ben [Mon, 14 May 2001 22:20:20 +0000 (22:20 +0000)]
Specify a few things that were unsepcified.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1127 cda61777-01e9-0310-a592-d414129be87e

23 years agoScrollbar was failing to update when no scrollback-reset event had happened
simon [Mon, 14 May 2001 13:31:14 +0000 (13:31 +0000)]
Scrollbar was failing to update when no scrollback-reset event had happened

git-svn-id: svn://svn.tartarus.org/sgt/putty@1126 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix the sense of posdiff(), causing the extend-selection mouse
simon [Sun, 13 May 2001 16:13:39 +0000 (16:13 +0000)]
Fix the sense of posdiff(), causing the extend-selection mouse
action to work correctly again.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1125 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix wrong button codes in WM_MOUSEMOVE.
simon [Sun, 13 May 2001 15:01:36 +0000 (15:01 +0000)]
Fix wrong button codes in WM_MOUSEMOVE.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1124 cda61777-01e9-0310-a592-d414129be87e

23 years agoGlenn Maynard's patch (as adapted by Jacob) for taskbar flashing
simon [Sun, 13 May 2001 14:42:17 +0000 (14:42 +0000)]
Glenn Maynard's patch (as adapted by Jacob) for taskbar flashing
when a bell occurs and the window is minimised.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1123 cda61777-01e9-0310-a592-d414129be87e

23 years agoThe host-key-unknown prompt now offers the same three options as the
simon [Sun, 13 May 2001 14:11:49 +0000 (14:11 +0000)]
The host-key-unknown prompt now offers the same three options as the
host-key-changed prompt: update-cache-and-connect, connect-without-
updating-cache, and abandon-connection. (Previously the middle one
was missing.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1122 cda61777-01e9-0310-a592-d414129be87e

23 years agoPlacate gcc's `-Wall' warnings.
simon [Sun, 13 May 2001 14:02:28 +0000 (14:02 +0000)]
Placate gcc's `-Wall' warnings.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1121 cda61777-01e9-0310-a592-d414129be87e

23 years agoTrim leading whitespace off the hostname if it's there.
simon [Sun, 13 May 2001 13:23:12 +0000 (13:23 +0000)]
Trim leading whitespace off the hostname if it's there.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1120 cda61777-01e9-0310-a592-d414129be87e

23 years agoOops - initialise sesslist_has_focus.
simon [Sun, 13 May 2001 13:11:53 +0000 (13:11 +0000)]
Oops - initialise sesslist_has_focus.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1119 cda61777-01e9-0310-a592-d414129be87e

23 years agoJacob's patch to make pressing Return on a selected saved session
simon [Sun, 13 May 2001 11:58:36 +0000 (11:58 +0000)]
Jacob's patch to make pressing Return on a selected saved session
load it and go, and simultaneously allow Alt-L on a selected saved
session not to change the focus.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1118 cda61777-01e9-0310-a592-d414129be87e

23 years agoBorland and Cygwin makefiles now support XFLAGS.
simon [Sun, 13 May 2001 11:46:00 +0000 (11:46 +0000)]
Borland and Cygwin makefiles now support XFLAGS.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1117 cda61777-01e9-0310-a592-d414129be87e

23 years agoControl characters are now allowed as part of the password, if
simon [Sun, 13 May 2001 11:44:57 +0000 (11:44 +0000)]
Control characters are now allowed as part of the password, if
they're not special control characters processed by the line input
routines.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1116 cda61777-01e9-0310-a592-d414129be87e

23 years agoDefine WM_MOUSEWHEEL (to 0x20A) if it's not defined by windows.h.
simon [Sun, 13 May 2001 11:19:20 +0000 (11:19 +0000)]
Define WM_MOUSEWHEEL (to 0x20A) if it's not defined by windows.h.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1115 cda61777-01e9-0310-a592-d414129be87e

23 years agoAttempt to report the error condition right when an SCP connection
simon [Sun, 13 May 2001 11:15:16 +0000 (11:15 +0000)]
Attempt to report the error condition right when an SCP connection
with a pre-supplied password fails to authenticate.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1114 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix the SCO function keys, which weren't quite right.
simon [Sun, 13 May 2001 10:58:51 +0000 (10:58 +0000)]
Fix the SCO function keys, which weren't quite right.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1113 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdded a new large icon for the PuTTY config box. Doesn't show up in
simon [Sun, 13 May 2001 10:45:56 +0000 (10:45 +0000)]
Added a new large icon for the PuTTY config box. Doesn't show up in
the actual window at all, but appears in the Alt-Tab task switcher
box in place of the tedious Windows Default icon.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1112 cda61777-01e9-0310-a592-d414129be87e

23 years agoA patch to the new character set stuff to add the Windows code pages
simon [Thu, 10 May 2001 10:31:44 +0000 (10:31 +0000)]
A patch to the new character set stuff to add the Windows code pages
themselves (Win1250 - Win1258).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1111 cda61777-01e9-0310-a592-d414129be87e

23 years agoRDB's Unicode patch. Fonts are now used in Unicode mode where
simon [Thu, 10 May 2001 08:34:20 +0000 (08:34 +0000)]
RDB's Unicode patch. Fonts are now used in Unicode mode where
possible and we have a single unified means of trying to display any
Unicode code point. Instead of the various ad-hoc translation modes
we had before, we now have a single `codepage' option which allows
us to treat the incoming (and outgoing) text as any given character
set, and locally we map that to Unicode and back.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1110 cda61777-01e9-0310-a592-d414129be87e

23 years agoFrom RDB: a patch to allow special keys (^C, ^Z, Delete, Return) to
simon [Wed, 9 May 2001 15:12:26 +0000 (15:12 +0000)]
From RDB: a patch to allow special keys (^C, ^Z, Delete, Return) to
send Telnet special sequences (Interrupt Process, Suspend, Erase
Char, End Of Line) instead of their ASCII equivalents. In particular
Return -> Telnet End Of Line is _always_ enabled irrespective of the
configuration, while the others are optional. Also in this patch, an
entertainingly ghastly use of `switch' to allow literal ^M^J to do
the same thing as magic-^M (the Return key) when in Raw protocol.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1109 cda61777-01e9-0310-a592-d414129be87e

23 years ago`realhost', passed back from all the backend init functions, was
simon [Wed, 9 May 2001 14:01:15 +0000 (14:01 +0000)]
`realhost', passed back from all the backend init functions, was
scoped within those functions. It's now dynamically allocated.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1108 cda61777-01e9-0310-a592-d414129be87e

23 years agoFrom RDB: telnet can now start up in passive mode, in which it
simon [Wed, 9 May 2001 13:51:07 +0000 (13:51 +0000)]
From RDB: telnet can now start up in passive mode, in which it
doesn't do any negotiation until the remote side does.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1107 cda61777-01e9-0310-a592-d414129be87e

23 years agoFrom RDB: a few extra escape sequences seen in SCO terminals.
simon [Wed, 9 May 2001 13:35:08 +0000 (13:35 +0000)]
From RDB: a few extra escape sequences seen in SCO terminals.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1106 cda61777-01e9-0310-a592-d414129be87e

23 years agoFrom RDB: according to VT manuals, application cursor keys should
simon [Wed, 9 May 2001 13:30:06 +0000 (13:30 +0000)]
From RDB: according to VT manuals, application cursor keys should
never be enabled when app keypad is disabled. Also CTRL+arrows flips
the application-ness to make it easy to generate the other sequences
if required.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1105 cda61777-01e9-0310-a592-d414129be87e

23 years agoWe can now save the protocol and port number in Default Settings.
simon [Wed, 9 May 2001 13:26:14 +0000 (13:26 +0000)]
We can now save the protocol and port number in Default Settings.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1104 cda61777-01e9-0310-a592-d414129be87e

23 years agoFrom RDB: yet another fix in the ongoing quest to deal correctly
simon [Wed, 9 May 2001 13:12:46 +0000 (13:12 +0000)]
From RDB: yet another fix in the ongoing quest to deal correctly
with font point sizes :-(

git-svn-id: svn://svn.tartarus.org/sgt/putty@1103 cda61777-01e9-0310-a592-d414129be87e

23 years agoRDB's alternative way to interpret the window size in Change
simon [Wed, 9 May 2001 13:03:16 +0000 (13:03 +0000)]
RDB's alternative way to interpret the window size in Change
Settings: it describes the size of the _unmaximised_ window.
Maximisedness is a separate property which Change Settings doesn't
affect. So if you change the font while the window is maximised, the
terminal size adjusts accordingly. The downside is that you can't
read the width and height of a maximised window out of Change
Settings. Suggestions that restore this property are welcome.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1102 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix due to Robert de Bath: backspace should not cross line
simon [Wed, 9 May 2001 12:48:01 +0000 (12:48 +0000)]
Fix due to Robert de Bath: backspace should not cross line
boundaries when auto wrap is disabled.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1101 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix de Bath's last-ditch bell overload
simon [Sun, 6 May 2001 16:18:58 +0000 (16:18 +0000)]
Fix de Bath's last-ditch bell overload

git-svn-id: svn://svn.tartarus.org/sgt/putty@1100 cda61777-01e9-0310-a592-d414129be87e

23 years agoStrip off and ignore `:port' on the end of a hostname.
simon [Sun, 6 May 2001 15:09:32 +0000 (15:09 +0000)]
Strip off and ignore `:port' on the end of a hostname.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1099 cda61777-01e9-0310-a592-d414129be87e

23 years agoRun entire source base through GNU indent to tidy up the varying
simon [Sun, 6 May 2001 14:35:20 +0000 (14:35 +0000)]
Run entire source base through GNU indent to tidy up the varying
coding styles of the various contributors! Woohoo!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1098 cda61777-01e9-0310-a592-d414129be87e

23 years agoWez Furlong's patch to add xterm mouse reporting and proper mouse
simon [Sun, 6 May 2001 14:20:41 +0000 (14:20 +0000)]
Wez Furlong's patch to add xterm mouse reporting and proper mouse
wheel support.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1097 cda61777-01e9-0310-a592-d414129be87e

23 years agoRemove diagnostics and attempt to work around VC compiler bug :-(
simon [Thu, 3 May 2001 10:10:53 +0000 (10:10 +0000)]
Remove diagnostics and attempt to work around VC compiler bug :-(

git-svn-id: svn://svn.tartarus.org/sgt/putty@1096 cda61777-01e9-0310-a592-d414129be87e

23 years agoExtra diagnostics in the hope that we can track down the problem with
simon [Wed, 2 May 2001 14:45:25 +0000 (14:45 +0000)]
Extra diagnostics in the hope that we can track down the problem with
the nightlies. I must remember to take it all out again when we do!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1095 cda61777-01e9-0310-a592-d414129be87e

23 years agoTEMPORARY ONLY: enable debugging on default build to try to get
simon [Wed, 2 May 2001 08:59:36 +0000 (08:59 +0000)]
TEMPORARY ONLY: enable debugging on default build to try to get
tomorrow's nightly to show us what the problem with term_size is.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1094 cda61777-01e9-0310-a592-d414129be87e

23 years agoReduce out-of-focus timer interval to 2 seconds so we still have
simon [Sat, 28 Apr 2001 18:23:58 +0000 (18:23 +0000)]
Reduce out-of-focus timer interval to 2 seconds so we still have
some control over keepalives when not in the foreground.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1093 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd Jordan Russell's patch for a sunken-edge border like a DOS box.
simon [Sat, 28 Apr 2001 18:02:19 +0000 (18:02 +0000)]
Add Jordan Russell's patch for a sunken-edge border like a DOS box.
Configurable, of course, because I for one like the border as thin
as possible.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1092 cda61777-01e9-0310-a592-d414129be87e

23 years agoDebugging improvements. Started using Dave Hinton's dmemdump
simon [Sat, 28 Apr 2001 17:35:18 +0000 (17:35 +0000)]
Debugging improvements. Started using Dave Hinton's dmemdump
function (woohoo!), improved that function so it provides an ASCII
dump as well as hex (whee!), removed all remaining spurious \r in
debug statements (ooh!), and made enabling of packet debugging in
SSH a matter of one ifdef rather than lots (phew!).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1091 cda61777-01e9-0310-a592-d414129be87e

23 years agoPut the \001 prefix back on scp error messages when they're sent to
simon [Sat, 28 Apr 2001 17:18:47 +0000 (17:18 +0000)]
Put the \001 prefix back on scp error messages when they're sent to
the server. (Not sure _why_ they're sent to the server; scp is
weird.) It may be pointless when sent to the screen, which is why I
removed it, but it's extremely pointful on the wire :-(

git-svn-id: svn://svn.tartarus.org/sgt/putty@1090 cda61777-01e9-0310-a592-d414129be87e

23 years agoThe bell overload times are now measured in milliseconds, although
simon [Sat, 28 Apr 2001 15:47:26 +0000 (15:47 +0000)]
The bell overload times are now measured in milliseconds, although
the config box still enters them in seconds (it allows fractions).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1089 cda61777-01e9-0310-a592-d414129be87e

23 years agoRemove stray diagnostics. When will I learn?
simon [Sat, 28 Apr 2001 15:33:48 +0000 (15:33 +0000)]
Remove stray diagnostics. When will I learn?

git-svn-id: svn://svn.tartarus.org/sgt/putty@1088 cda61777-01e9-0310-a592-d414129be87e

23 years agoImplement lazy horizontal resizing of screen and scrollback.
simon [Sat, 28 Apr 2001 15:32:25 +0000 (15:32 +0000)]
Implement lazy horizontal resizing of screen and scrollback.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1087 cda61777-01e9-0310-a592-d414129be87e

23 years agoArrange that explicit visual bells performed using ESC[?5h and
simon [Sat, 28 Apr 2001 14:39:16 +0000 (14:39 +0000)]
Arrange that explicit visual bells performed using ESC[?5h and
ESC[?5l in immediate succession will still give a visibly long flash
of the screen.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1086 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd the missing "all" target in the Cygwin makefile
simon [Sat, 28 Apr 2001 12:07:41 +0000 (12:07 +0000)]
Add the missing "all" target in the Cygwin makefile

git-svn-id: svn://svn.tartarus.org/sgt/putty@1085 cda61777-01e9-0310-a592-d414129be87e

23 years agoJacob's patch to make passphrase boxes work more sanely
simon [Sat, 28 Apr 2001 11:41:33 +0000 (11:41 +0000)]
Jacob's patch to make passphrase boxes work more sanely

git-svn-id: svn://svn.tartarus.org/sgt/putty@1084 cda61777-01e9-0310-a592-d414129be87e

23 years agoOnly update the system caret when we have the focus. This was
simon [Sat, 28 Apr 2001 11:27:04 +0000 (11:27 +0000)]
Only update the system caret when we have the focus. This was
apparently causing the weird caret behaviour in Change Settings,
because that routine was still being called...

git-svn-id: svn://svn.tartarus.org/sgt/putty@1083 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix completely stupid agent_exists test. (Hint to self: you have to
simon [Sat, 28 Apr 2001 11:25:58 +0000 (11:25 +0000)]
Fix completely stupid agent_exists test. (Hint to self: you have to
actually _call_ a boolean-returning function, not just test its
address for nonzerohood.) Thanks Jacob.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1082 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd -lwinmm to Cygwin makefile. Thanks Jacob.
simon [Sat, 28 Apr 2001 11:25:03 +0000 (11:25 +0000)]
Add -lwinmm to Cygwin makefile. Thanks Jacob.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1081 cda61777-01e9-0310-a592-d414129be87e

23 years agoRemove my dire-warning `FIXME' in IPv4 dotted-decimal handling
simon [Sat, 28 Apr 2001 11:24:45 +0000 (11:24 +0000)]
Remove my dire-warning `FIXME' in IPv4 dotted-decimal handling
because Jeroen points out that it's perfectly OK the way it is :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1080 cda61777-01e9-0310-a592-d414129be87e

23 years agoDave Hinton's debugging patch.
simon [Sat, 28 Apr 2001 09:24:19 +0000 (09:24 +0000)]
Dave Hinton's debugging patch.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1079 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd some fflushes to make it easier for piped programs to talk to
simon [Sat, 28 Apr 2001 08:42:06 +0000 (08:42 +0000)]
Add some fflushes to make it easier for piped programs to talk to
plink and pscp

git-svn-id: svn://svn.tartarus.org/sgt/putty@1078 cda61777-01e9-0310-a592-d414129be87e

23 years agoUpdated dependencies thanks to Dave Hinton's mkdeps script
simon [Sat, 28 Apr 2001 07:49:23 +0000 (07:49 +0000)]
Updated dependencies thanks to Dave Hinton's mkdeps script

git-svn-id: svn://svn.tartarus.org/sgt/putty@1077 cda61777-01e9-0310-a592-d414129be87e

23 years agoUsing plink with CVS - need to make sure the saved session uses SSH
owen [Wed, 18 Apr 2001 15:23:36 +0000 (15:23 +0000)]
Using plink with CVS - need to make sure the saved session uses SSH

git-svn-id: svn://svn.tartarus.org/sgt/putty@1065 cda61777-01e9-0310-a592-d414129be87e

23 years agoUseful workaround I was given, to fake storing settings in a file.
simon [Tue, 17 Apr 2001 10:39:19 +0000 (10:39 +0000)]
Useful workaround I was given, to fake storing settings in a file.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1064 cda61777-01e9-0310-a592-d414129be87e

23 years agoTwo more small bugs introduced by the B-tree reorg: scroll() now
simon [Tue, 17 Apr 2001 09:25:52 +0000 (09:25 +0000)]
Two more small bugs introduced by the B-tree reorg: scroll() now
requires fix_cpos() to be called after it (otherwise cpos might point
to a line that isn't where you remember it being), and a mis-aimed
incpos() was causing forward selection dragging not to include the
char under the mouse. Both fixed.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1063 cda61777-01e9-0310-a592-d414129be87e