u/mdw/putty
21 years agoFirst attempt at a platform-independent keyboard handler. This isn't complete
ben [Mon, 27 Jan 2003 00:39:01 +0000 (00:39 +0000)]
First attempt at a platform-independent keyboard handler.  This isn't complete
yet -- there's no Alt+keypad support, and no way for the front-end to find
out what it should do with the Num Lock light.  It's also not fully tested.
Nonetheless, it's at least as good as the previous Mac keyboard handler.
Other platforms probably shouldn't adopt it just yet.

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

21 years agoRemove some fossils.
ben [Mon, 27 Jan 2003 00:33:49 +0000 (00:33 +0000)]
Remove some fossils.

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

21 years agoSupport for pasting 'TEXT', ie text in the local character set. At the moment,
ben [Sat, 25 Jan 2003 19:23:03 +0000 (19:23 +0000)]
Support for pasting 'TEXT', ie text in the local character set.  At the moment,
we assume it's in the system script -- later we should check for 'styl' scrap
in case it isn't.

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

21 years agoDon't pass NULL to strcmp. Instead, if the user passes a font of NULL,
ben [Sat, 25 Jan 2003 19:21:56 +0000 (19:21 +0000)]
Don't pass NULL to strcmp.  Instead, if the user passes a font of NULL,
only match table entries where the font is NULL.

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

21 years agoAdd support for copying non-Unicode text to the clipboard. We also send a
ben [Sat, 25 Jan 2003 17:20:54 +0000 (17:20 +0000)]
Add support for copying non-Unicode text to the clipboard.  We also send a
simple 'styl' record along with it to specify the font and suchlike.  I'm
not sure it's worth making this optional in the way the RTF is in Windows.

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

21 years agoFix Unix breakage from term_mouse() revamp too.
simon [Sat, 25 Jan 2003 16:23:48 +0000 (16:23 +0000)]
Fix Unix breakage from term_mouse() revamp too.

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

21 years agoFix minor breakage on Windows as a result of term_mouse revamp.
simon [Sat, 25 Jan 2003 16:22:49 +0000 (16:22 +0000)]
Fix minor breakage on Windows as a result of term_mouse revamp.

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

21 years agoChange the term_mouse interface a little so that it gets passed
ben [Sat, 25 Jan 2003 16:16:45 +0000 (16:16 +0000)]
Change the term_mouse interface a little so that it gets passed
both the raw and the cooked mouse button, with the mapping being done in
advance by the front-end.  This is useful because it allows the front-end to
use information other than the raw button (e.g. the modifier state) to decide
which cooked button to generate.
.
Front ends other than the Mac one are untested, but they just call
translate_button() themselves and pass the result to term_mouse().

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

21 years agoThe PowerPC build works on Owen's Mac, which doesn't have AppearanceLib, so
ben [Sat, 25 Jan 2003 15:21:54 +0000 (15:21 +0000)]
The PowerPC build works on Owen's Mac, which doesn't have AppearanceLib, so
that bug's definitely fixed.

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

21 years agoDuplicate Session is done.
ben [Sat, 25 Jan 2003 15:18:51 +0000 (15:18 +0000)]
Duplicate Session is done.

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

21 years agoAdd support for "Duplicate Session", moving back-end selection into
ben [Sat, 25 Jan 2003 15:15:40 +0000 (15:15 +0000)]
Add support for "Duplicate Session", moving back-end selection into
mac_startsession() in the process.

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

21 years agoEnsure that development snapshots have a version number higher than the
ben [Sat, 25 Jan 2003 14:09:47 +0000 (14:09 +0000)]
Ensure that development snapshots have a version number higher than the
preceding release.

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

21 years agoWe now have _some_ useful AE support, so mention what's missing specifically.
ben [Sat, 25 Jan 2003 14:07:50 +0000 (14:07 +0000)]
We now have _some_ useful AE support, so mention what's missing specifically.
Also mentio lack of Duplicate Session.

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

21 years agoAEGetNthPtr() is stupid and counts from 1. Allowing for this gets aevt/odoc
ben [Sat, 25 Jan 2003 14:04:47 +0000 (14:04 +0000)]
AEGetNthPtr() is stupid and counts from 1.  Allowing for this gets aevt/odoc
working.

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

21 years agoChange website refs from putty/wishlist.html to putty/wishlist/
jacob [Fri, 24 Jan 2003 14:12:31 +0000 (14:12 +0000)]
Change website refs from putty/wishlist.html to putty/wishlist/

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

21 years agoWe'd like full-screen mode too.
ben [Fri, 24 Jan 2003 00:37:27 +0000 (00:37 +0000)]
We'd like full-screen mode too.

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

21 years agoAdd a bug and a missing feature.
ben [Fri, 24 Jan 2003 00:28:57 +0000 (00:28 +0000)]
Add a bug and a missing feature.

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

21 years agoRedesign the macnet.c infrastructure, largely so as to avoid using Gestalt(),
ben [Fri, 24 Jan 2003 00:25:33 +0000 (00:25 +0000)]
Redesign the macnet.c infrastructure, largely so as to avoid using Gestalt(),
which didn't detect the MacTCP emulation in Owen's Open Transport.

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

21 years agoAdd Apple Event handlers for 'aevt'/'oapp', 'aevt'/'odoc' and 'aevt'/'pdoc'.
ben [Thu, 23 Jan 2003 22:57:43 +0000 (22:57 +0000)]
Add Apple Event handlers for 'aevt'/'oapp', 'aevt'/'odoc' and 'aevt'/'pdoc'.
None of them does anything useful yet (though the odoc one tries to).

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

21 years agoAdd {Question} to faq-psftp-slow
jacob [Thu, 23 Jan 2003 17:01:27 +0000 (17:01 +0000)]
Add {Question} to faq-psftp-slow

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

21 years agoMention Ctrl-PgUp/PgDn
jacob [Thu, 23 Jan 2003 12:30:26 +0000 (12:30 +0000)]
Mention Ctrl-PgUp/PgDn

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

21 years agoIn pursuance of `icon-title-default-change':
jacob [Thu, 23 Jan 2003 11:37:54 +0000 (11:37 +0000)]
In pursuance of `icon-title-default-change':
Change the sense of cfg.win_name_always' representation in the UI (from
`Avoid ever using icon title' to `Separate window and icon titles').
Also update the docs to match reality.

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

21 years agoNext instalment of the Great Incompatible Defaults Change: `avoid
simon [Wed, 22 Jan 2003 20:22:39 +0000 (20:22 +0000)]
Next instalment of the Great Incompatible Defaults Change: `avoid
ever using icon title' now defaults to On, because in general it
seems to cause more problems than it solves.

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

21 years agoaccel.pl knows about the accelerators added by winctrls.c:prefslist().
jacob [Tue, 21 Jan 2003 21:05:35 +0000 (21:05 +0000)]
accel.pl knows about the accelerators added by winctrls.c:prefslist().
(I'm amazed this still works...)

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

21 years agoFix "-v" in the Windows console utilities (plink, pscp, psftp).
jacob [Tue, 21 Jan 2003 19:18:06 +0000 (19:18 +0000)]
Fix "-v" in the Windows console utilities (plink, pscp, psftp).
I'm not convinced I've done this the right way (I've introduced a static for
logctx in console.c) but it will do for now.

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

21 years agoWe'll need the event log to work, too.
ben [Tue, 21 Jan 2003 00:28:20 +0000 (00:28 +0000)]
We'll need the event log to work, too.

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

21 years agoRemove stray debugging printfs.
ben [Tue, 21 Jan 2003 00:27:24 +0000 (00:27 +0000)]
Remove stray debugging printfs.

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

21 years agoMore unimplemented features.
ben [Mon, 20 Jan 2003 22:55:54 +0000 (22:55 +0000)]
More unimplemented features.

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

21 years agoAdd minimal Apple Event support -- we handle the 'aevt'/'quit' event.
ben [Mon, 20 Jan 2003 22:55:08 +0000 (22:55 +0000)]
Add minimal Apple Event support -- we handle the 'aevt'/'quit' event.

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

21 years agoEnable -Werror in GTK builds (we already have -Wall, so more GCCisms aren't
ben [Mon, 20 Jan 2003 20:15:28 +0000 (20:15 +0000)]
Enable -Werror in GTK builds (we already have -Wall, so more GCCisms aren't
_that_ evil).

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

21 years agoAdd a stub "free" routine for pterm. Thanks to rjk.
ben [Mon, 20 Jan 2003 20:10:07 +0000 (20:10 +0000)]
Add a stub "free" routine for pterm.  Thanks to rjk.

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

21 years agoRun through contrib/accel.pl 1.1 [r1585]:
jacob [Mon, 20 Jan 2003 18:05:13 +0000 (18:05 +0000)]
Run through contrib/accel.pl 1.1 [r1585]:
 - Fix accelerator clash on SSH panel (D)
 - Fix accelerator comments

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

21 years agoSync with reality and add more things that need fixing.
ben [Mon, 20 Jan 2003 01:07:13 +0000 (01:07 +0000)]
Sync with reality and add more things that need fixing.

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

21 years agounitab_xterm is now basically right.
ben [Sun, 19 Jan 2003 00:00:53 +0000 (00:00 +0000)]
unitab_xterm is now basically right.
SC's optimiser seems to do something nasty to ssh.c.

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

21 years agoUse the correct ProcInfo for AddrToStr. This makes the MacTCP code work in
ben [Sat, 18 Jan 2003 23:26:56 +0000 (23:26 +0000)]
Use the correct ProcInfo for AddrToStr.  This makes the MacTCP code work in
PowerPC builds.  Well, makes it not crash, anyway -- AddrToStr doesn't seem
to be returning amything very useful.

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

21 years agoRemove stray debugging code that got in with the last commit.
ben [Sat, 18 Jan 2003 22:02:22 +0000 (22:02 +0000)]
Remove stray debugging code that got in with the last commit.

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

21 years agoClear kex_ctx in a new session so we can safely free an ssh session without
ben [Sat, 18 Jan 2003 21:56:33 +0000 (21:56 +0000)]
Clear kex_ctx in a new session so we can safely free an ssh session without
one.

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

21 years agoRemember which file a session was opened from, so it can be the default one
ben [Sat, 18 Jan 2003 20:52:59 +0000 (20:52 +0000)]
Remember which file a session was opened from, so it can be the default one
to save back to.

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

21 years agoSupport for saving sessions on the Mac. This is slightly useful even in the
ben [Sat, 18 Jan 2003 20:09:21 +0000 (20:09 +0000)]
Support for saving sessions on the Mac.  This is slightly useful even in the
absence of a config dialogue, since it allows me to get Default Settings out.

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

21 years agoPuTTY doesn't remember which file it got a saved session from, so it's
ben [Sat, 18 Jan 2003 17:24:21 +0000 (17:24 +0000)]
PuTTY doesn't remember which file it got a saved session from, so it's
as stationery-pad-aware as it needs to be.

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

21 years agoAdd "Save" and "Save As..." items to the menus. No code behind them yet.
ben [Sat, 18 Jan 2003 17:14:34 +0000 (17:14 +0000)]
Add "Save" and "Save As..." items to the menus.  No code behind them yet.

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

21 years agoMove mac_opensession() from macterm.c to macdlg.c.
ben [Sat, 18 Jan 2003 16:54:25 +0000 (16:54 +0000)]
Move mac_opensession() from macterm.c to macdlg.c.

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

21 years agoVarious things to make the Finder like us:
ben [Sat, 18 Jan 2003 16:10:21 +0000 (16:10 +0000)]
Various things to make the Finder like us:
 - Change the creator of files we don't want the user to open to 'pTTI' (for
   "PuTTY internal"), and give them application-missing strings.
 - Provide missing-application names for saved sessions.
 - Provide a ResEdit 'TMPL' resource for integers in saved sessions.
 - Provide an icon for saved session stationery pads (maybe "Default Settings"
   should be one of these by default).  No code to handle this yet.

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

21 years agoCorrect an incorrect black pixel in the PuTTY icon that's been annoying me
ben [Sat, 18 Jan 2003 12:25:43 +0000 (12:25 +0000)]
Correct an incorrect black pixel in the PuTTY icon that's been annoying me
for some time.

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

21 years agoClear the "Inited" bit when we finish building each executable, in a bid
ben [Sat, 18 Jan 2003 12:19:04 +0000 (12:19 +0000)]
Clear the "Inited" bit when we finish building each executable, in a bid
to get the Finder to look at the new 'BNDL' resource.

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

21 years agoIt would help if everything agreed on the type of PuTTY random seed files.
ben [Sat, 18 Jan 2003 12:18:04 +0000 (12:18 +0000)]
It would help if everything agreed on the type of PuTTY random seed files.

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

21 years agoSimplify the random-seed-saving code: There's no need to take great care to
ben [Sat, 18 Jan 2003 12:03:28 +0000 (12:03 +0000)]
Simplify the random-seed-saving code:  There's no need to take great care to
preserve the old file in case the update is interrupted and replace it
atomically, so we just overwrite in place.  Much simpler.

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

21 years agoWhen voting for items already on the wishlist, a stonking new reason that
jacob [Fri, 17 Jan 2003 13:32:51 +0000 (13:32 +0000)]
When voting for items already on the wishlist, a stonking new reason that
we hadn't already thought of might help.

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

21 years agoSteven Shockley points out that the .PPK extension is far from obvious to
jacob [Thu, 16 Jan 2003 15:43:18 +0000 (15:43 +0000)]
Steven Shockley points out that the .PPK extension is far from obvious to
users. Update the file selection dialogs to mention it per the usual Windows
convention, and also sprinkle references to it throughout the docs. I've
also scattered hints that most tools need PuTTY's native format; perhaps this
will reduce the frequency with which FAQ A.1.2 trips people up.

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

21 years agoStatements after declarations, dammit
jacob [Thu, 16 Jan 2003 00:52:28 +0000 (00:52 +0000)]
Statements after declarations, dammit

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

21 years agoAdd some icons for saved sessions and random seeds.
ben [Thu, 16 Jan 2003 00:35:11 +0000 (00:35 +0000)]
Add some icons for saved sessions and random seeds.

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

21 years ago"I don't think that bit means what I think it means", if you see what I mean.
ben [Wed, 15 Jan 2003 23:46:11 +0000 (23:46 +0000)]
"I don't think that bit means what I think it means", if you see what I mean.

In other words, turn off the useTextEditServices bit in our 'SIZE' resource.

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

21 years agoAdd the ability to close sessions. This adds *_free() functions to most
ben [Wed, 15 Jan 2003 23:30:21 +0000 (23:30 +0000)]
Add the ability to close sessions.  This adds *_free() functions to most
areas of the code.  Not all back-ends have been tested, but Telnet and SSH
behave reasonably.

Incidentally, almost all of this patch was written through Mac PuTTY,
admittedly over a Telnet connection.

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

21 years agoMake this compile again.
ben [Wed, 15 Jan 2003 22:37:58 +0000 (22:37 +0000)]
Make this compile again.

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

21 years agoImplement Simon's suggestion of moving DEFAULT_PROTOCOL into a per-backend-
jacob [Wed, 15 Jan 2003 20:47:50 +0000 (20:47 +0000)]
Implement Simon's suggestion of moving DEFAULT_PROTOCOL into a per-backend-
link-module const variable `be_default_protocol' which suggests a sensible
default to the front end (which can ignore it). (DEFAULT_PORT is replaced by a
lookup in the backend[] table.)
Still not pretty, but it does mean that the recent fix for `ssh-default'
doesn't break PuTTYtel.

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

21 years agoMacTCP returns canonical names with a trailing dot. We don't want this, so
ben [Wed, 15 Jan 2003 18:47:41 +0000 (18:47 +0000)]
MacTCP returns canonical names with a trailing dot.  We don't want this, so
strip it off.

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

21 years agoPuTTYtel should use be_nossh, not be_none.
ben [Wed, 15 Jan 2003 18:45:42 +0000 (18:45 +0000)]
PuTTYtel should use be_nossh, not be_none.
While we're here, also comment the meaning of [M].

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

21 years agoFix small breakages as a result of yesterday's upheavals. Oops.
simon [Wed, 15 Jan 2003 16:16:36 +0000 (16:16 +0000)]
Fix small breakages as a result of yesterday's upheavals. Oops.

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

21 years ago`ssh-default': change the /DSSH_DEFAULT flag to a /DTELNET_DEFAULT one
jacob [Wed, 15 Jan 2003 15:22:58 +0000 (15:22 +0000)]
`ssh-default': change the /DSSH_DEFAULT flag to a /DTELNET_DEFAULT one
and note its existence in Recipe. As far as I can tell there are no
documentation changes required.

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

21 years agoUse set_icon and set_title rather than SetWindowText. Should fix
owen [Wed, 15 Jan 2003 14:51:54 +0000 (14:51 +0000)]
Use set_icon and set_title rather than SetWindowText.  Should fix
inactive-title.

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

21 years agoUse the standard linedraw->Unicode mapping from unicode.c to generate
ben [Tue, 14 Jan 2003 19:57:36 +0000 (19:57 +0000)]
Use the standard linedraw->Unicode mapping from unicode.c to generate
unitab_xterm.  Most linedraw characters display correctly, but it's clear
that RDB and Apple disagree on some of the mappings.

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

21 years agoUpdate for Unicode deglobalisations.
ben [Tue, 14 Jan 2003 19:42:00 +0000 (19:42 +0000)]
Update for Unicode deglobalisations.

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

21 years agoUpdate the "known bugs" and "missing features" sections.
ben [Tue, 14 Jan 2003 19:41:19 +0000 (19:41 +0000)]
Update the "known bugs" and "missing features" sections.

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

21 years agoAdd constants to mac_res.r to set the binary version number.
ben [Tue, 14 Jan 2003 19:29:18 +0000 (19:29 +0000)]
Add constants to mac_res.r to set the binary version number.
Mention this in CHECKLST as a location where the version number has to be set.

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

21 years agoconst fallout.
ben [Tue, 14 Jan 2003 19:09:24 +0000 (19:09 +0000)]
const fallout.

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

21 years agoRemove debugging printfs from mac_workoutfontscale().
ben [Tue, 14 Jan 2003 18:44:34 +0000 (18:44 +0000)]
Remove debugging printfs from mac_workoutfontscale().

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

21 years agoMiscellaneous fixes to finish up `remove-statics'. rlogin.c had a
simon [Tue, 14 Jan 2003 18:43:45 +0000 (18:43 +0000)]
Miscellaneous fixes to finish up `remove-statics'. rlogin.c had a
holdout static I hadn't noticed; unicode.c had one too; and a large
number of statics that were perfectly OK due to being constants have
been made `const', with assorted `const' repercussions all over the
place. I now declare `remove-statics' to be fixed.

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

21 years agoAdd double width/height support. This passes all the relevant parts of
ben [Tue, 14 Jan 2003 18:43:26 +0000 (18:43 +0000)]
Add double width/height support.  This passes all the relevant parts of
vttest apart from the "mad programmer" screen, which I think is a linedraw
problem.
This also intorduces proper clipping of the drawn text for good measure.

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

21 years agoDeglobalise the Unicode module. Despite all my grand plans, I've
simon [Tue, 14 Jan 2003 18:28:23 +0000 (18:28 +0000)]
Deglobalise the Unicode module. Despite all my grand plans, I've
just done this the very simple way - bundle all the globals into a
data structure and pass pointers around. One particularly ugly wart
is that wc_to_mb now takes a pointer to this structure as an
argument (optional, may be NULL, and unused in any Unicode layer
that's even marginally less of a mess than the Windows one). I do
need to do this properly at some point, but for now this should just
about be adequate. As usual, the Mac port has not been updated.

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

21 years agorequest_resize() needs to call term_size() to tell the terminal emulator
ben [Tue, 14 Jan 2003 15:24:51 +0000 (15:24 +0000)]
request_resize() needs to call term_size() to tell the terminal emulator
that its resize request has been approved.

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

21 years agoIt's impossible to write a checklist from scratch without leaving
simon [Tue, 14 Jan 2003 15:01:18 +0000 (15:01 +0000)]
It's impossible to write a checklist from scratch without leaving
one or two things out of the first version.

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

21 years agoAfter the New Year copyright-dates fiasco, I think it's about time
simon [Tue, 14 Jan 2003 14:19:35 +0000 (14:19 +0000)]
After the New Year copyright-dates fiasco, I think it's about time
we had one or two official checklists. This file lists the locations
of _all_ the copies of the licence and the copyright dates, all the
files in CVS which need to know the current version number, and also
lays out the release procedure since I always find it terribly
fiddly to do it all in the right order.
PLEASE KEEP THESE LISTS UP TO DATE, people! Anyone adds a new copy
of the licence or the copyright notice, shout about it in here.
Likewise any file that needs to know the current release number and
can't get away with referencing LATEST.VER.

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

21 years agoCtrl-PgUp and Ctrl-PgDn now scroll by one line on Unix and Windows
owen [Tue, 14 Jan 2003 11:24:26 +0000 (11:24 +0000)]
Ctrl-PgUp and Ctrl-PgDn now scroll by one line on Unix and Windows

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

21 years agoOops - put the right `void *' in back->reconfig.
simon [Mon, 13 Jan 2003 18:03:55 +0000 (18:03 +0000)]
Oops - put the right `void *' in back->reconfig.

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

21 years agoMake ^/ do the same as ^_ (wish control-slash)
owen [Mon, 13 Jan 2003 15:06:56 +0000 (15:06 +0000)]
Make ^/ do the same as ^_ (wish control-slash)

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

21 years agoSet the window title to the canonical host name when we connect.
ben [Sun, 12 Jan 2003 16:25:58 +0000 (16:25 +0000)]
Set the window title to the canonical host name when we connect.

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

21 years agoConsequences of Simon's recent deglobalisation changes.
ben [Sun, 12 Jan 2003 16:11:27 +0000 (16:11 +0000)]
Consequences of Simon's recent deglobalisation changes.

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

21 years agoWhen receiving data, only pass up to the backend as much as we received.
ben [Sun, 12 Jan 2003 15:46:33 +0000 (15:46 +0000)]
When receiving data, only pass up to the backend as much as we received.

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

21 years agoAhem. Doing loads of stuff to inst->cfg would probably be best done
simon [Sun, 12 Jan 2003 15:45:29 +0000 (15:45 +0000)]
Ahem. Doing loads of stuff to inst->cfg would probably be best done
_after_ allocating inst. Oops.

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

21 years agoMake this compile again.
ben [Sun, 12 Jan 2003 15:42:24 +0000 (15:42 +0000)]
Make this compile again.

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

21 years agoAhem. Global replace of `cfg' with `inst->cfg' is all very well, but
simon [Sun, 12 Jan 2003 15:36:05 +0000 (15:36 +0000)]
Ahem. Global replace of `cfg' with `inst->cfg' is all very well, but
let's try to make sure it doesn't happen inside any strings! The
-cfg option for cursor foreground colour nearly had a nasty accident
there.

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

21 years agoHaving laid all the groundwork, we can now remove the global `cfg'
simon [Sun, 12 Jan 2003 15:32:31 +0000 (15:32 +0000)]
Having laid all the groundwork, we can now remove the global `cfg'
completely from putty.h. It's now static in each of the command-line
front ends, shared only between window.c and windlg.c in PuTTY
proper (I've tested this by doing #define cfg cfgsillyname in those
two files only, and it still links so nobody else is using that
symbol!), and part of the `inst' structure in pterm. I think that
only leaves the Unicode module as the last stubborn holdout in the
anti-global-variables campaign.

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

21 years agoproxy.c now no longer refers to `cfg'. Instead, each of the three
simon [Sun, 12 Jan 2003 15:26:10 +0000 (15:26 +0000)]
proxy.c now no longer refers to `cfg'. Instead, each of the three
proxy-indirection network functions (name_lookup, new_connection,
new_listener) takes a `const Config *' as an argument, and extracts
enough information from it before returning to handle that
particular network operation in accordance with the proxy settings
it specifies. This involved {win,ux}net.c due to a `const'
repercussion.

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

21 years agoThe logging module now contains a local copy of cfg too.
simon [Sun, 12 Jan 2003 15:10:27 +0000 (15:10 +0000)]
The logging module now contains a local copy of cfg too.

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

21 years agoThe Unicode module no longer depends on `cfg', since it gets the
simon [Sun, 12 Jan 2003 14:59:54 +0000 (14:59 +0000)]
The Unicode module no longer depends on `cfg', since it gets the
relevant bits of it passed in to init_ucs(). (Actually I pass in all
of it in the Windows version, since it's a bit hairy in there.)

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

21 years agoThere's no real need for portfwd.c to reference `cfg' directly, when
simon [Sun, 12 Jan 2003 14:56:19 +0000 (14:56 +0000)]
There's no real need for portfwd.c to reference `cfg' directly, when
it only needs one item from it and that can easily be passed in from
the call site in ssh.c.

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

21 years agoprinter_start_job shouldn't need to refer to cfg.printer, since it's
simon [Sun, 12 Jan 2003 14:50:34 +0000 (14:50 +0000)]
printer_start_job shouldn't need to refer to cfg.printer, since it's
getting the printer name passed in anyway! Oops.

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

21 years agoJust like under Windows, cleanup_exit() shouldn't need to check
simon [Sun, 12 Jan 2003 14:49:44 +0000 (14:49 +0000)]
Just like under Windows, cleanup_exit() shouldn't need to check
before calling random_save_seed().

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

21 years agoThe back ends now contain their own copies of the Config structure,
simon [Sun, 12 Jan 2003 14:48:29 +0000 (14:48 +0000)]
The back ends now contain their own copies of the Config structure,
and have a function to pass in a new one. (Well, actually several
back ends don't actually bother to do this because they need nothing
out of Config after the initial setup phase, but they could if they
wanted to.)

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

21 years agoCall ot_poll as appropriate.
ben [Sun, 12 Jan 2003 14:45:33 +0000 (14:45 +0000)]
Call ot_poll as appropriate.
Also use cleanup_exit() in preference to exit() so that MacTCP gets shut down
even on unclean exits.

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

21 years agoDon't fatalbox() unconditionally when opening a connection, since that makes
ben [Sun, 12 Jan 2003 14:44:12 +0000 (14:44 +0000)]
Don't fatalbox() unconditionally when opening a connection, since that makes
it a little difficult to do anything.

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

21 years agoForgot to match the cmdline changes in the Unix port.
simon [Sun, 12 Jan 2003 14:37:26 +0000 (14:37 +0000)]
Forgot to match the cmdline changes in the Unix port.

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

21 years agoterm->cfg is now a full copy of the Config structure, not a pointer;
simon [Sun, 12 Jan 2003 14:30:02 +0000 (14:30 +0000)]
term->cfg is now a full copy of the Config structure, not a pointer;
and term_reconfig() now passes in a new structure which is copied
over the top. This means that the old and new structures can be
compared, and the _current_ as well as default states of auto wrap
mode, DEC origin mode, BCE, blinking text and character classes can
be conveniently reconfigured in mid-session without requiring a
terminal reset.

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

21 years agoCOmpiling _before_ committing is usually a good idea.
ben [Sun, 12 Jan 2003 14:23:00 +0000 (14:23 +0000)]
COmpiling _before_ committing is usually a good idea.

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

21 years agoThe command-line routines now take a pointer to `cfg' as an
simon [Sun, 12 Jan 2003 14:17:03 +0000 (14:17 +0000)]
The command-line routines now take a pointer to `cfg' as an
argument, so they don't depend on it being a global any more.

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

21 years agoSupport for XDM-AUTHORIZATION-1 at the SSH server end, making use of
simon [Sun, 12 Jan 2003 14:11:38 +0000 (14:11 +0000)]
Support for XDM-AUTHORIZATION-1 at the SSH server end, making use of
the remote IP/port data provided by the server for forwarded
connections. Disabled by default, since it's incompatible with SSH2,
probably incompatible with some X clients, and tickles a bug in
at least one version of OpenSSH.

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

21 years agoCorrect code to insert into a doubly-linked list.
ben [Sun, 12 Jan 2003 13:50:04 +0000 (13:50 +0000)]
Correct code to insert into a doubly-linked list.

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

21 years agoEach platform's implementation of askappend() is no longer required
simon [Sun, 12 Jan 2003 13:44:35 +0000 (13:44 +0000)]
Each platform's implementation of askappend() is no longer required
to consult cfg.logxfovr, because it gets done once in logging.c.
askappend() is now called only when a question _really_ needs to be
asked of the user. Also in this checkin, cleanup_exit() in console.c
no longer consults cfg.protocol to decide whether to save the random
seed, because random_save_seed() can make that decision for itself
and do it better.

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

21 years agoCute though DNSAddresses are, they're a poor match for the model the
ben [Sun, 12 Jan 2003 13:06:59 +0000 (13:06 +0000)]
Cute though DNSAddresses are, they're a poor match for the model the
rest of PuTTY has of DNS resolution, so I've replaced them with something
more conventional.  Sorry.

The new code has the advantage of working, of course.

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

21 years agoUse memset() rather than OTMemzero(), and hence remove the need to weak link
ben [Sun, 12 Jan 2003 01:37:24 +0000 (01:37 +0000)]
Use memset() rather than OTMemzero(), and hence remove the need to weak link
against OTUtilityLib.

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