1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +00:00
Commit Graph

209 Commits

Author SHA1 Message Date
Simon Tatham
8d299e69bd Jacob's fix to the resize-behaviour GUI
[originally from svn r1407]
2001-11-24 13:11:28 +00:00
Jacob Nevins
b723e94b78 Comment/string tweaks to reflect new DES-in-SSH2 capability.
[originally from svn r1397]
2001-11-21 23:40:46 +00:00
Simon Tatham
7f1e73904a Implement writing RTF to the clipboard (off by default), so that if
you enable it text will paste into Word et al in the same font as
PuTTY itself is displaying in. In particular, this will be a fixed-
pitch font, so tables and `ls' and the like will naturally line up.

[originally from svn r1373]
2001-11-07 22:22:53 +00:00
Simon Tatham
2fe380a9ca Fix accelerators in Window panel
[originally from svn r1351]
2001-10-31 18:51:07 +00:00
Simon Tatham
d2c9937691 Rectangular-block selection. Enabled by Alt+drag, unless you
configure it to be the default in which case it's _dis_abled by
Alt+drag.

[originally from svn r1350]
2001-10-31 18:50:09 +00:00
Simon Tatham
05226e43a9 Wez Furlong's patch to tidy up full-screen mode: make it
multi-monitor aware and make the scrollbar separately configurable
in and out of full-screen mode. Also (not Wez's patch, this bit) fix
the case where the user reconfigures _while_ the window is
full-screen, and disables full-screening. (In this case the window
should return gracefully to normal, rather than losing all its title
bars and getting confused.)

[originally from svn r1310]
2001-10-17 21:21:03 +00:00
Simon Tatham
07b6efb23d Revamp the window-resize behaviour UI so there are only three states
rather than four. Should fix all sorts of bugs, since the fourth
(and default!) state was behaving weirdly and nobody liked it.

[originally from svn r1307]
2001-10-12 21:10:56 +00:00
Simon Tatham
835b7a9a18 Spelling fix. When the user hits Browse' next to the Private key'
box, they should see a file chooser labelled Select _Private_ Key
File, not Public!

[originally from svn r1302]
2001-09-25 20:12:14 +00:00
Simon Tatham
1ffe49bea5 Correct capitalisation in one config option (Cyrillic Caps Lock).
[originally from svn r1280]
2001-09-22 15:19:43 +00:00
Simon Tatham
f3a17c0715 Reintroduce Cyrillic Caps Lock mode, which was in 0.51 but got
kicked out by the Unicode patch. It's not very good - only works
sanely on US keyboards - but it's no worse than it was in 0.51.
After 0.52 maybe I should fix it properly.

[originally from svn r1273]
2001-09-18 18:51:10 +00:00
Simon Tatham
3d3ef9b8a4 Three more patches from RDB: one to make Atomica work right, one to
fiddle with the widths of characters in DBCS screen fonts, and (the
big one) one to enable a mode in which resizing the window locks the
terminal size and lets the font change, instead of vice versa. That
should shut up a few feature requests!

[originally from svn r1269]
2001-09-15 15:54:24 +00:00
Simon Tatham
fe43458dad Christopher Allene's patch for going full-screen on Alt-Enter.
[originally from svn r1267]
2001-09-13 18:24:51 +00:00
Simon Tatham
d27684019b Roman Pompejus's patch (heavily hacked) for parametric log file
names with date, time and hostname automatically embedded.

[originally from svn r1255]
2001-09-09 09:58:20 +00:00
Simon Tatham
8e58b47df2 Use WM_SETREDRAW to disable incremental updates while the config box
is switching panels. Speeds things up hugely on slow systems.

[originally from svn r1236]
2001-09-07 21:07:15 +00:00
Simon Tatham
5fad95e748 Jacob's patch to cause Shift to return to copy-and-paste when xterm
mouse tracking is enabled. (This can be turned off if your app
really wants Shift+mouse, but it defaults to on for general
usefulness.)

[originally from svn r1235]
2001-09-07 20:35:38 +00:00
Simon Tatham
c6346dce42 Swap round the contents of the Translation panel. The codepage box
should be at the top because it's by _far_ the most important.

[originally from svn r1231]
2001-09-05 21:02:27 +00:00
Simon Tatham
12e7195c0e Unicode cleanup phase 2: we now reintroduce the ability to enter a
numeric code page, and also reinstate the direct-to-font zero
translation mode (but now under an actual _name_ rather than blank).
Also add CP437 to the list since at least one expatriate DOS user
wanted it; also select a sensible ISO or KOI codepage based on the
system locale.

[originally from svn r1230]
2001-09-05 21:01:04 +00:00
Simon Tatham
a723494288 Remove gratuitous FIXME entries in cipher list. Oops, didn't mean to
check those in :-)

[originally from svn r1201]
2001-08-25 20:02:02 +00:00
Simon Tatham
44c4ee79e6 Jacob's patch for a drag-list to select SSH ciphers. Heavily hacked
by me to make the drag list behaviour slightly more intuitive.
WARNING: DO NOT LOOK AT pl_itemfrompt() IF YOU ARE SQUEAMISH.

[originally from svn r1199]
2001-08-25 19:33:33 +00:00
Simon Tatham
a4d81b170e Wording change: make it explicit that you can enter an IP address as
well as a hostname.

[originally from svn r1196]
2001-08-22 19:56:41 +00:00
Simon Tatham
686740c2fb 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.

[originally from svn r1183]
2001-08-12 19:25:21 +00:00
Simon Tatham
50766ce729 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.

[originally from svn r1176]
2001-08-08 20:44:35 +00:00
Simon Tatham
02c3d0694c Oops - IDC not IDV. Typo.
[originally from svn r1173]
2001-08-04 15:22:52 +00:00
Simon Tatham
3b81448ae4 Rainer Loritz noticed that the Telnet environment box is not cleared
when loading a new session. Oops!

[originally from svn r1171]
2001-08-04 15:04:10 +00:00
Simon Tatham
7b7ec7e72e 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.

[originally from svn r1139]
2001-05-19 15:23:12 +00:00
Simon Tatham
84e58edf9f Glenn Maynard's patch (as adapted by Jacob) for taskbar flashing
when a bell occurs and the window is minimised.

[originally from svn r1123]
2001-05-13 14:42:17 +00:00
Simon Tatham
52a688abd1 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.)

[originally from svn r1122]
2001-05-13 14:11:49 +00:00
Simon Tatham
8422d9e2e8 Oops - initialise sesslist_has_focus.
[originally from svn r1119]
2001-05-13 13:11:53 +00:00
Simon Tatham
b14d3260d8 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.

[originally from svn r1118]
2001-05-13 11:58:36 +00:00
Simon Tatham
275e14673b 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.

[originally from svn r1112]
2001-05-13 10:45:56 +00:00
Simon Tatham
26f1085038 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.

[originally from svn r1110]
2001-05-10 08:34:20 +00:00
Simon Tatham
e001f1533e 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.

[originally from svn r1109]
2001-05-09 15:12:26 +00:00
Simon Tatham
d1d65fa6d0 From RDB: telnet can now start up in passive mode, in which it
doesn't do any negotiation until the remote side does.

[originally from svn r1107]
2001-05-09 13:51:07 +00:00
Simon Tatham
00ebbfaab4 From RDB: yet another fix in the ongoing quest to deal correctly
with font point sizes :-(

[originally from svn r1103]
2001-05-09 13:12:46 +00:00
Simon Tatham
3730ada5ce Run entire source base through GNU indent to tidy up the varying
coding styles of the various contributors! Woohoo!

[originally from svn r1098]
2001-05-06 14:35:20 +00:00
Simon Tatham
0086b20625 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.

[originally from svn r1092]
2001-04-28 18:02:19 +00:00
Simon Tatham
321adcb4b9 The bell overload times are now measured in milliseconds, although
the config box still enters them in seconds (it allows fractions).

[originally from svn r1089]
2001-04-28 15:47:26 +00:00
Simon Tatham
19d76c9306 Add two more ghastly function key options. WE HAVE TOO MANY!
[originally from svn r1050]
2001-04-16 16:16:52 +00:00
Simon Tatham
639ab4c068 Roman Pompejus's patch to allow you to automatically select
overwrite or append in logging mode.

[originally from svn r1049]
2001-04-16 15:58:43 +00:00
Simon Tatham
a9c6997326 Bell can now play an arbitrary sound file.
[originally from svn r1041]
2001-04-14 11:37:47 +00:00
Simon Tatham
a8116a8dae New improved bell handling. Choice between visual and audible bell;
configurable bell overload handling. Thanks to Robert de Bath for
galvanising me into doing this, but I've had to rip most of his code
out and redo it myself...

[originally from svn r1039]
2001-04-13 10:52:36 +00:00
Simon Tatham
d2369721bb Keyboard handling patch from RDB: the Windows Application key is now
always Compose (we have no better use for it), and Ctrl-Alt can be
made to act like AltGr (but it's never Compose even when AltGr is).

[originally from svn r1033]
2001-04-09 12:52:43 +00:00
Simon Tatham
8e91c62bfa We can now configure the terminal's answerback string when it receives ^E.
[originally from svn r1031]
2001-04-09 12:43:46 +00:00
Simon Tatham
0d419ab966 The About box now contains a button that starts up a browser pointing
at the PuTTY web site. Thanks to Eric Theriault.

[originally from svn r1030]
2001-04-09 12:23:45 +00:00
Simon Tatham
2c39b69a52 Default handling of VT100 line drawing characters in cut and paste is
now to translate them into poor man's characters (+--+ and |). We also
have an option to disable this (and map line drawing characters to the
corresponding ASCII code as before). Thanks to Robert de Bath.

[originally from svn r1029]
2001-04-09 11:59:35 +00:00
Simon Tatham
cb9c2e79b9 AES should have accelerator s, not a, to avoid a clash
[originally from svn r997]
2001-03-14 11:47:11 +00:00
Simon Tatham
313b332a38 Finally fixed the point/pixel confusion in font handling. Thanks to
Roman Surma for pointing me at the relevant bits of documentation. All
font sizes should now be measured in points, and everything should be
consistent, and (with any luck) old Registry settings should adapt
gracefully too.

[originally from svn r992]
2001-03-12 12:24:07 +00:00
Simon Tatham
b182356f99 Support for selecting AES from the GUI. In the process, I've had to
introduce another layer of abstraction in SSH2 ciphers, such that a
single `logical cipher' (as desired by a user) can equate to more
than one `physical cipher'. This is because AES comes in several key
lengths (PuTTY will pick the highest supported by the remote end)
and several different SSH2-protocol-level names (aes*-cbc,
rijndael*-cbc, and an unofficial one rijndael-cbc@lysator.liu.se).

[originally from svn r967]
2001-03-02 13:55:23 +00:00
Simon Tatham
b6255788ca Jacob's fixes for the Event Log
[originally from svn r963]
2001-03-02 09:24:05 +00:00
Simon Tatham
a680cef1b2 Oops, that broke Telnet negotiation display. Fix tabstops in eventlog.
[originally from svn r957]
2001-02-27 17:09:04 +00:00
Simon Tatham
0d3ab7306e Timestamp every line of the Event Log. The primary reason for this
(generating detail in bug reports when SSH2 repeat key exchange
failed) is no longer an issue, but it might be useful for other
things. It's a _log_ dammit, and logs should be timestamped.

[originally from svn r956]
2001-02-27 17:02:51 +00:00
Simon Tatham
9b7dbb92cc Modifications to the new Close On Exit option:
- wording change (required a patch to winctrls.c:radioline())
 - `only on clean exit' is used when an old-style config says `yes',
   on the grounds that it's more generally useful than `always' and
   also we want to map the old default to the new default.

[originally from svn r928]
2001-02-05 13:42:33 +00:00
Simon Tatham
4d830f7587 Jacob's patch to improve Close On Exit behaviour
[originally from svn r927]
2001-02-05 13:08:18 +00:00
Simon Tatham
0507b7437a Various bug/warning fixes from Jacob
[originally from svn r926]
2001-02-05 13:04:00 +00:00
Simon Tatham
6dc2424db2 Shrink the keepalive-timeout box so the text beside it can all fit in
[originally from svn r922]
2001-02-01 14:13:46 +00:00
Simon Tatham
4707d0823e Avoid mallocing zero bytes in the event log Copy processing, which
was apparently a problem for compilers other than Visual C. Thanks
to Roman Pompejus for pointing it out.

[originally from svn r918]
2001-02-01 11:35:15 +00:00
Simon Tatham
0d0c8a5e2e Jacob's patch to fix all the accelerators. AGAIN.
[originally from svn r899]
2001-01-26 09:48:37 +00:00
Simon Tatham
7a79df8fe6 Rethink the whole line discipline architecture. Instead of having
multiple switchable line disciplines, we now have a single unified
one which changes its behaviour based on option settings. Each
option setting can be suggested by the back end and/or the terminal
handler, and can be forcibly overridden by the configuration. Local
echo and local line editing are separate, independently switchable,
options.

[originally from svn r895]
2001-01-24 14:08:20 +00:00
Simon Tatham
3082f7e8be Ahem. The log-file Browse button should set cfg.logfilename and not
cfg.keyfile. Next time I copy and paste a huge chunk of code, I
should take more care about it :-/

[originally from svn r893]
2001-01-24 09:29:55 +00:00
Simon Tatham
34af1c4f1a Roman Pompejus's suggestion: do sensible things with focus when the
event log window appears or disappears.

[originally from svn r892]
2001-01-23 17:40:51 +00:00
Simon Tatham
bde2f9ac8a Roman Pompejus's fix for the TAB-not-working-in-Event-Log bug
[originally from svn r891]
2001-01-23 17:37:52 +00:00
Simon Tatham
d58d2cc2bb When the SSH panel disappears in puttytel, the Tunnels panel should too!
[originally from svn r890]
2001-01-23 14:20:04 +00:00
Simon Tatham
5c8e6a5295 Jeremy Sawicki's fix for the multiple-conflicting-accelerators
problems: controls are now destroyed and recreated on a panel
switch. In addition, this patch also introduces a better means of
doing the group boxes.

[originally from svn r884]
2001-01-22 17:17:26 +00:00
Simon Tatham
beeaa85fc5 Ability to hide the mouse pointer on a keypress a la Word
[originally from svn r883]
2001-01-22 16:38:43 +00:00
Simon Tatham
a9ff0485c0 Add a title to the Tunnels panel
[originally from svn r880]
2001-01-22 13:15:52 +00:00
Simon Tatham
c9c214d1e4 Try the blindingly-obvious fix for the hidden-controls-are-still-
accessible GUI bug.

[originally from svn r879]
2001-01-22 12:35:16 +00:00
Simon Tatham
4a339ef430 Add X11 forwarding, mainly thanks to Andreas Schultz
[originally from svn r878]
2001-01-22 11:34:52 +00:00
Simon Tatham
7edcb497cc Make sure it's SSH, and not Rlogin, which gets omitted from the
PuTTYtel config box. Oops!

[originally from svn r877]
2001-01-20 11:00:07 +00:00
Simon Tatham
ca90be26a8 Experimental Rlogin support, thanks to Delian Delchev. Local flow
control is unsupported, and server-to-client comms may fail for want
of working TCP Urgent.

[originally from svn r875]
2001-01-19 10:10:37 +00:00
Simon Tatham
72cdcc611a Keepalives are now in seconds not minutes
[originally from svn r874]
2001-01-19 09:01:50 +00:00
Simon Tatham
d199d419fa Tidy up that latest checkin. PS_DOTTED is spelled PS_DOT and in any
case doesn't really cut it; we have to SetPixel every other one
manually because although PS_ALTERNATE exists it only works under
NT. Meanwhile, IDC_CURSTATIC was already used, for the cursor
_keys_. Duh.

[originally from svn r871]
2001-01-17 17:20:28 +00:00
Simon Tatham
c68959b584 Introduce alternative cursor shapes: underline, vertical line
[originally from svn r870]
2001-01-17 16:57:33 +00:00
Simon Tatham
e4532bb582 Enable explicit changing of the window title after session start
[originally from svn r852]
2001-01-08 16:28:21 +00:00
Simon Tatham
3a2a06b1fc Improved session logging courtesy of Roman Pompejus
[originally from svn r846]
2001-01-07 18:24:59 +00:00
Simon Tatham
f2b13650c8 `Change Settings' now behaves sensibly w.r.t. window size.
[originally from svn r841]
2001-01-07 16:27:48 +00:00
Simon Tatham
5a908bb1d7 Apply `getservbyname' to the Port Number field in case it's
non-numeric. Patch due to Christian Biesinger.

[originally from svn r839]
2001-01-07 15:12:20 +00:00
Simon Tatham
93004c40ad Make the colour list failsafe. Patch due to Robert de Bath
[originally from svn r837]
2001-01-07 13:39:31 +00:00
Simon Tatham
d5240d4157 Make memory management uniform: _everything_ now goes through the
smalloc() macros and thence to the safemalloc() functions in misc.c.
This should allow me to plug in a debugging allocator and track
memory leaks and segfaults and things.

[originally from svn r818]
2000-12-12 10:33:13 +00:00
Simon Tatham
7a3c5f57b5 Patch from Robert de Bath: blank the saved-session name edit box
when loading `Default Settings'.

[originally from svn r806]
2000-11-21 19:00:11 +00:00
Simon Tatham
462063cdc5 Implement Zlib compression, in both SSH1 and SSH2.
[originally from svn r792]
2000-11-01 21:34:21 +00:00
Simon Tatham
091acb4e06 Add support for Always On Top. Patch due to Janes "Ender" Brown.
[originally from svn r773]
2000-10-27 09:46:04 +00:00
Simon Tatham
fc63ad0046 Gaaah, I might have known. Split combined app cursor / app keypad
disablement option into two options so the app cursor keys and app
keypad can be controlled separately. The Pedantic Software Award in
this case goes to the Midnight Commander for its egregious failure
to just use the terminal in Perfectly Normal mode.

[originally from svn r766]
2000-10-25 14:20:47 +00:00
Simon Tatham
9e6dc1faa1 Fix control ID bug causing rogue Appearance title bars in other panels
[originally from svn r764]
2000-10-25 08:23:41 +00:00
Simon Tatham
fc9b38ed01 Add configurable option to disable application keypad/cursor keys totally
[originally from svn r760]
2000-10-24 13:49:23 +00:00
Simon Tatham
8f7a1e30f7 Remove a rogue diagnostic
[originally from svn r758]
2000-10-24 13:39:21 +00:00
Simon Tatham
ea0d42801a Add the Appearance panel and reorganise things a bit
[originally from svn r757]
2000-10-24 13:38:27 +00:00
Simon Tatham
bbbda4110b Created a shiny new abstraction for the socket handling. Has many
advantages:
 - protocol modules can call sk_write() without having to worry
   about writes blocking, because blocking writes are handled in the
   abstraction layer and retried later.
 - `Lost connection while sending' is a thing of the past.
 - <winsock.h> is no longer needed in most modules, because
   "putty.h" doesn't have to declare `SOCKET' variables any more,
   only the abstracted `Socket' type.
 - select()-equivalent between multiple sockets will now be handled
   sensibly, which opens the way for things like SSH port
   forwarding.

[originally from svn r744]
2000-10-23 10:32:37 +00:00
Simon Tatham
6eb613e3c4 Three new configurable options:
- Robert de Bath's Compose key is now off by default and configurable on
 - The ages-old controversy over whether ALT by itself should bring the
   System menu up is now controllable by a config option
 - You can now independently configure whether scrollback resets on a
   keypress _and_ whether it resets on screen activity.

[originally from svn r741]
2000-10-21 16:30:58 +00:00
Simon Tatham
51b05a4438 Rename "Stored Sessions" to "Saved Sessions" for consistency
[originally from svn r732]
2000-10-20 15:09:56 +00:00
Simon Tatham
4b08041d42 Some better IDC_* names for the controls on the Colours panel
[originally from svn r731]
2000-10-20 15:09:35 +00:00
Simon Tatham
8e7a270f7f Miscellaneous cleanups and reorgs in preparation for building
PuTTYgen. In particular, moved self-managing controls stuff out of
windlg.c into the new and reusable winctrls.c.

[originally from svn r714]
2000-10-18 15:36:32 +00:00
Simon Tatham
e67f143e61 Implement a much more visually appealing, but much more internally
grotty, hack to get around Explorer maximising the config box.

[originally from svn r707]
2000-10-12 12:56:33 +00:00
Simon Tatham
3e83d75154 Add a config option to emulate the HMAC bug in commercial SSH v2.3.x
and earlier (namely, it uses only 16 bytes of key rather than 20).

[originally from svn r706]
2000-10-12 12:39:44 +00:00
Simon Tatham
421aafb4c0 Stop the SSH panel appearing in PuTTYtel
[originally from svn r705]
2000-10-12 09:10:45 +00:00
Simon Tatham
fff1053350 Trivial bug with the function-key radio buttons
[originally from svn r699]
2000-10-10 09:17:13 +00:00
Simon Tatham
6b620323e0 Now when a saved session is loaded, its name appears in the
IDC_SESSEDIT box, so that clicking Save will save over it. Useful
for people who want to load, modify, and re-save. Special case: this
doesn't apply to Default Settings, because I think people will be
more likely to load DS, modify it, and save under a _different_
name, so it's good not to allow a single mouse click to screw them
up.

[originally from svn r698]
2000-10-10 09:03:20 +00:00
Simon Tatham
ef5965e430 Move initialisation of the saved session box outside init_dlg_ctrls() so
that you don't end up with twice as many items after clicking Load

[originally from svn r697]
2000-10-10 08:33:49 +00:00
Simon Tatham
a453e02987 Rename IDC_FUNCTILDE from "VT400" to "ESC[n~" because another VT400 now
exists!

[originally from svn r696]
2000-10-10 08:20:26 +00:00
Simon Tatham
7b444de332 Add ISO8859-2 / CP852 translation courtesy of Jaromir Filsak
[originally from svn r695]
2000-10-09 16:29:12 +00:00
Simon Tatham
3e7c4813d7 Work around horrifyingly nonportable use of unions in <commctrl.h>
[originally from svn r694]
2000-10-09 16:12:51 +00:00