u/mdw/putty
21 years agoMake various internal functions static.
ben [Sat, 15 Feb 2003 13:29:26 +0000 (13:29 +0000)]
Make various internal functions static.

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

21 years agoMove the 'vers' resources for Mac OS into their own file, to be shared
ben [Thu, 13 Feb 2003 12:30:10 +0000 (12:30 +0000)]
Move the 'vers' resources for Mac OS into their own file, to be shared
by the various applications.

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

21 years agoMinimal shell of PuTTYgen for Mac. No actual PuTTYgen-specific code there
ben [Wed, 12 Feb 2003 23:53:15 +0000 (23:53 +0000)]
Minimal shell of PuTTYgen for Mac.  No actual PuTTYgen-specific code there
yet, but an absence of PuTTY-specific code.

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

21 years agoDeal with a "possible extraneous ';'" warning.
ben [Wed, 12 Feb 2003 23:21:38 +0000 (23:21 +0000)]
Deal with a "possible extraneous ';'" warning.

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

21 years agoConvert implicit (char *) and (unsigned char *) casts to explicit ones.
ben [Wed, 12 Feb 2003 23:06:40 +0000 (23:06 +0000)]
Convert implicit (char *) and (unsigned char *) casts to explicit ones.

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

21 years agoUpdate list of Telnet options to match what IANA currently have.
ben [Wed, 12 Feb 2003 19:49:25 +0000 (19:49 +0000)]
Update list of Telnet options to match what IANA currently have.

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

21 years agoClip host resize requests to the size of the desktop.
ben [Tue, 11 Feb 2003 23:10:34 +0000 (23:10 +0000)]
Clip host resize requests to the size of the desktop.

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

21 years agoRemove another `please pester ssh.com for their agent protocol' bit.
simon [Tue, 11 Feb 2003 14:10:20 +0000 (14:10 +0000)]
Remove another `please pester ssh.com for their agent protocol' bit.

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

21 years agoThe event log is implemented; remove it from the list.
ben [Mon, 10 Feb 2003 23:49:58 +0000 (23:49 +0000)]
The event log is implemented; remove it from the list.

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

21 years agoSet some parent windows on PuTTYgen and Pageant About/Licence dialog to
jacob [Fri, 7 Feb 2003 14:22:19 +0000 (14:22 +0000)]
Set some parent windows on PuTTYgen and Pageant About/Licence dialog to
improve window management behaviour.

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

21 years agoGive PuTTYgen an icon.
jacob [Fri, 7 Feb 2003 13:54:34 +0000 (13:54 +0000)]
Give PuTTYgen an icon.

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

21 years agoCrude Event Log implementation for the Mac. I'm fairly convinced now that
ben [Fri, 7 Feb 2003 01:38:12 +0000 (01:38 +0000)]
Crude Event Log implementation for the Mac.  I'm fairly convinced now that
using the List Manager was entirely the wrong decision on my part, so I'll
probably rewrite this to use TextEdit at some point, but it's better than
stderr even so.

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

21 years agoClean up Carbon build procedures somewhat. I still don't have anything that
ben [Fri, 7 Feb 2003 01:33:24 +0000 (01:33 +0000)]
Clean up Carbon build procedures somewhat.  I still don't have anything that
actually works, but I think I'm getting closer.

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

21 years agoMove net_service_lookup() to macnet.c, since that's where it belongs.
ben [Thu, 6 Feb 2003 01:01:27 +0000 (01:01 +0000)]
Move net_service_lookup() to macnet.c, since that's where it belongs.

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

21 years agoOops; overzealous copy-and-paste in the Windows Help context names.
simon [Wed, 5 Feb 2003 09:05:35 +0000 (09:05 +0000)]
Oops; overzealous copy-and-paste in the Windows Help context names.

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

21 years agoAdd a level of indirection to make it rather easier to work out which of a
ben [Tue, 4 Feb 2003 23:39:26 +0000 (23:39 +0000)]
Add a level of indirection to make it rather easier to work out which of a
session's windows we're dealing with.

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

21 years agoAdd another bug workaround, this one for old OpenSSH (<2.3) servers
simon [Tue, 4 Feb 2003 13:02:51 +0000 (13:02 +0000)]
Add another bug workaround, this one for old OpenSSH (<2.3) servers
which have a strange idea of what data should be signed in a PK auth
request. This actually got in my way while doing serious things at
work! :-)

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

21 years agoFurther fallout from the introduction of the Filename type. (Memo to
simon [Tue, 4 Feb 2003 13:00:54 +0000 (13:00 +0000)]
Further fallout from the introduction of the Filename type. (Memo to
self: if you change the type of a variable and everything compiles
without type-checking errors, that doesn't mean it's all fixed,
because variadic functions aren't type-checked! Oops.)

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

21 years agoIf we're compiling for Carbon, define OTCARBONAPPLICATION so that we get
ben [Tue, 4 Feb 2003 02:15:18 +0000 (02:15 +0000)]
If we're compiling for Carbon, define OTCARBONAPPLICATION so that we get
the simplified (and backward-compatible) application-only interfaces.

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

21 years agoCarbonise, or at least disable MacTCP support under Carbon.
ben [Tue, 4 Feb 2003 02:10:42 +0000 (02:10 +0000)]
Carbonise, or at least disable MacTCP support under Carbon.

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

21 years agoI can only quote the comment in <Scrap.h> which prompted this commit:
ben [Tue, 4 Feb 2003 02:08:03 +0000 (02:08 +0000)]
I can only quote the comment in <Scrap.h> which prompted this commit:
/*
    Newsflash! After 15 years of arduous toil, it's finally possible
    for specially trained typists wielding advanced text editing
    technology to define symbolic names for commonly used scrap
    flavor type constants! Apple triumphs again!
*/

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

21 years agoFix various breakages my Carbonisation caused in the Classic build, notably
ben [Tue, 4 Feb 2003 02:03:53 +0000 (02:03 +0000)]
Fix various breakages my Carbonisation caused in the Classic build, notably
that outside Carbon, CGrafPtr and GrafPtr are different types, even though
they're mostly interchangeable, so we need to interpose a cast between
GetWindowPort and SetPort.

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

21 years agoCarbonise. Currently, size tips and copy/paste won't work in Carbon.
ben [Tue, 4 Feb 2003 01:53:50 +0000 (01:53 +0000)]
Carbonise.  Currently, size tips and copy/paste won't work in Carbon.

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

21 years agoSlightly improve Carbon handling: we still have to deal with the "About..."
ben [Tue, 4 Feb 2003 00:33:11 +0000 (00:33 +0000)]
Slightly improve Carbon handling: we still have to deal with the "About..."
menu entry, even if the rest of the Apple Menu is done for us.

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

21 years agoConvert keyboard events into Unicode properly. I can now type all manner of
ben [Tue, 4 Feb 2003 00:01:33 +0000 (00:01 +0000)]
Convert keyboard events into Unicode properly.  I can now type all manner of
interesting characters and have them work properly.

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

21 years agoUpdate to match reality.
ben [Sun, 2 Feb 2003 16:02:50 +0000 (16:02 +0000)]
Update to match reality.

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

21 years agoAdd support for using Navigation Services to open saved sessions.
ben [Sun, 2 Feb 2003 15:59:00 +0000 (15:59 +0000)]
Add support for using Navigation Services to open saved sessions.
Support for saving sessions using Navigation Services will come later.

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

21 years agoCarbonise, mostly by replacing addresource() with c2pstrcpy() and
ben [Sun, 2 Feb 2003 00:04:36 +0000 (00:04 +0000)]
Carbonise, mostly by replacing addresource() with c2pstrcpy() and
AddResource(), and similar.

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

21 years agoCarbonise. Until we support Navigation Services, loading and saving sessions
ben [Sat, 1 Feb 2003 23:55:00 +0000 (23:55 +0000)]
Carbonise.  Until we support Navigation Services, loading and saving sessions
is tricky.

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

21 years agoMake this compile in a Carbon world (while still supporting everything else).
ben [Sat, 1 Feb 2003 23:42:30 +0000 (23:42 +0000)]
Make this compile in a Carbon world (while still supporting everything else).

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

21 years agoAdd some glue to allow building a Carbon version of PuTTY. It won't
ben [Sat, 1 Feb 2003 22:20:53 +0000 (22:20 +0000)]
Add some glue to allow building a Carbon version of PuTTY.  It won't
work, but it's nice to have the infrastructure in place.

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

21 years agoRather more natural (if much more complex) Mac Filename implementation.
ben [Sat, 1 Feb 2003 21:44:05 +0000 (21:44 +0000)]
Rather more natural (if much more complex) Mac Filename implementation.
Filenames are represented as a FSSpec, which is converted to and from an
alias record ('alis' resource) when saving and loading sessions.
.
It might be an idea to allow in-core Filenames to contain alias records too,
so that they can refer to directories that don't exist on the current system,
but that requires Filenames to be dynamically allocated, which is likely to be
a pain.

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

21 years agoIn xlatlognam(), use the start of the destination buffer as the destination
ben [Sat, 1 Feb 2003 21:39:59 +0000 (21:39 +0000)]
In xlatlognam(), use the start of the destination buffer as the destination
filename, not the end.

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

21 years agoInitialise a variable that might otherwise have caused trouble.
simon [Sat, 1 Feb 2003 17:25:06 +0000 (17:25 +0000)]
Initialise a variable that might otherwise have caused trouble.
Thanks to Ross Younger.

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

21 years agoOops, Ben is quite right about the rather appalling design of
simon [Sat, 1 Feb 2003 17:24:27 +0000 (17:24 +0000)]
Oops, Ben is quite right about the rather appalling design of
filename_from_str. Here's a better fix, with some const
repercussions too.

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

21 years agoTidy up Simon's FontSpec abstraction.
ben [Sat, 1 Feb 2003 15:44:08 +0000 (15:44 +0000)]
Tidy up Simon's FontSpec abstraction.
Also, make fontspec_to_str not return the address of an automatic variable.
It now has a memory leak instead.

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

21 years agoMake save_scroll() static.
ben [Sat, 1 Feb 2003 15:42:01 +0000 (15:42 +0000)]
Make save_scroll() static.

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

21 years agoCreated new data types `Filename' and `FontSpec', intended to be
simon [Sat, 1 Feb 2003 12:54:40 +0000 (12:54 +0000)]
Created new data types `Filename' and `FontSpec', intended to be
opaque to all platform-independent modules and only handled within
per-platform code. `Filename' is there because the Mac has a magic
way to store filenames (though currently this checkin doesn't
support it!); `FontSpec' is there so that all the auxiliary stuff
such as font height and charset and so on which is needed under
Windows but not Unix can be kept where it belongs, and so that I can
have a hope in hell of dealing with a font chooser in the forthcoming
cross-platform config box code, and best of all it gets the horrid
font height wart out of settings.c and into the Windows code where
it should be.
The Mac part of this checkin is a bunch of random guesses which will
probably not quite compile, but which look roughly right to me.
Sorry if I screwed it up, Ben :-)

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

21 years agoFix the gcc warnings in this module (since we now seem to be
simon [Sat, 1 Feb 2003 12:28:43 +0000 (12:28 +0000)]
Fix the gcc warnings in this module (since we now seem to be
building -Werror under Unix this is quite important!).

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

21 years agoRichard's lazy-scrolling patch. This builds up scroll operations in a list,
ben [Sat, 1 Feb 2003 12:26:33 +0000 (12:26 +0000)]
Richard's lazy-scrolling patch.  This builds up scroll operations in a list,
combining adjacent ones for the same region, and runs them all in do_paint.
I'm not sure it's entirely right, but it works on my Mac in every case I've
tested.

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

21 years agoMisc tweaks to proxy section
jacob [Sat, 1 Feb 2003 02:09:02 +0000 (02:09 +0000)]
Misc tweaks to proxy section

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

21 years agoBe slightly less negative about other people's setting up PuTTY-related
ben [Sat, 1 Feb 2003 00:29:38 +0000 (00:29 +0000)]
Be slightly less negative about other people's setting up PuTTY-related
fora.

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

21 years agoMention the slightly odd "too many authentication attempts" message you
ben [Fri, 31 Jan 2003 23:18:44 +0000 (23:18 +0000)]
Mention the slightly odd "too many authentication attempts" message you
get from OpenSSH if you overfill Pageant.

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

21 years agoSmall amount of extra noise gathering -- slurp the process list in
ben [Thu, 30 Jan 2003 23:11:07 +0000 (23:11 +0000)]
Small amount of extra noise gathering -- slurp the process list in
noise_get_heavy().

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

21 years agoYet more fallout from the 16-colour changes. I think by this time
simon [Thu, 30 Jan 2003 13:39:24 +0000 (13:39 +0000)]
Yet more fallout from the 16-colour changes. I think by this time
these fiddly little changes are no longer bugs I introduced
recently, they're bugs that have been around all along and I've only
just smoked out by altering the ATTR_* definitions.

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

21 years agoAntonin Brothanek points out that `Incoming packet was garbled on
simon [Thu, 30 Jan 2003 10:19:05 +0000 (10:19 +0000)]
Antonin Brothanek points out that `Incoming packet was garbled on
decryption' could be a result of the wrong setting of the
`Miscomputes SSH2 encryption keys' bug workaround option.

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

21 years agoFurther cosmetic tweaks to file-selection boxes per observed conventions
jacob [Wed, 29 Jan 2003 16:39:18 +0000 (16:39 +0000)]
Further cosmetic tweaks to file-selection boxes per observed conventions
on Windows:
 - Change "AllFiles" to "All Files (*.*)"
 - Extensions in lower case

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

21 years agoAnd another bit missing from the settings changes: pterm's platform
simon [Tue, 28 Jan 2003 12:06:37 +0000 (12:06 +0000)]
And another bit missing from the settings changes: pterm's platform
default for CloseOnExit was encoded wrongly. Hopefully this should
be everything now; I'm really starting to get sick of picking up the
pieces after my two checkins yesterday. Perhaps I should have waited
until I had a brain before doing them in the first place.

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

21 years agoGaah, another missing bit from the 16-colour support: Ben points out
simon [Tue, 28 Jan 2003 12:05:38 +0000 (12:05 +0000)]
Gaah, another missing bit from the 16-colour support: Ben points out
an out-of-date comment in putty.h.

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

21 years agoNeither do we do non-block cursors.
ben [Tue, 28 Jan 2003 11:57:08 +0000 (11:57 +0000)]
Neither do we do non-block cursors.

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

21 years agoWe don't do blinking text/cursor yet.
ben [Tue, 28 Jan 2003 11:56:32 +0000 (11:56 +0000)]
We don't do blinking text/cursor yet.

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

21 years agoAhem, and restore the missing & from that checkin. Arrgh.
simon [Tue, 28 Jan 2003 09:30:14 +0000 (09:30 +0000)]
Ahem, and restore the missing & from that checkin. Arrgh.

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

21 years agoOh, _that's_ why that `if' had the sense it did. Good grief.
simon [Tue, 28 Jan 2003 09:26:32 +0000 (09:26 +0000)]
Oh, _that's_ why that `if' had the sense it did. Good grief.
Apparently I used to rely on the fact that the same `erase_char'
used to wipe parts of the screen was also a good value to use for
resetting line attributes. Should now be more robust against future
reorganisations of the ATTR_* bit fields.

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

21 years agoDon't log every keypress by default here either.
ben [Tue, 28 Jan 2003 00:35:54 +0000 (00:35 +0000)]
Don't log every keypress by default here either.

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

21 years agoFix a minor oversight in the new 16-colour code for the Mac, which was
ben [Tue, 28 Jan 2003 00:25:20 +0000 (00:25 +0000)]
Fix a minor oversight in the new 16-colour code for the Mac, which was
calculating the background colour wrongly.

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

21 years agoSecurity fascists might claim that logging every keypress to stderr is a bad
ben [Tue, 28 Jan 2003 00:17:17 +0000 (00:17 +0000)]
Security fascists might claim that logging every keypress to stderr is a bad
idea, so stop doing that (only in the Mac port, so not actually much of a
problem).

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

21 years agoAdd myself to the list of copyright holders, largely for term_key().
ben [Mon, 27 Jan 2003 23:46:03 +0000 (23:46 +0000)]
Add myself to the list of copyright holders, largely for term_key().

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

21 years agoOf course, that cleanup I did earlier in which I rationalised all
simon [Mon, 27 Jan 2003 23:18:16 +0000 (23:18 +0000)]
Of course, that cleanup I did earlier in which I rationalised all
the various `yes/no/maybe' enums into one common one missed a vital
point: all those enums mapped on to integers in different ways,
which affected the format of stored settings. Arrgh. So now
settings.c contains yet more painful warts and I'm _really_ starting
to think it's about time we designed a new set of human-usable
config keywords and retired this lot to the status of Unpleasant
Backwards-Compatibility Relic.

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

21 years agoxterm apparently supports ESC[90m through ESC[97m to set bright
simon [Mon, 27 Jan 2003 23:03:31 +0000 (23:03 +0000)]
xterm apparently supports ESC[90m through ESC[97m to set bright
foreground colours, and ESC[100m through ESC[107m to set bright
background colours. Hence, so do we. Bright-foreground is
distinguishable from bold, and bright-background distinguishable
from blink, when it leaves terminal.c; the front end may then choose
to display them in the same way if it's configured to do so. This
change makes the xterm backend for Turbo Vision (!!!) work properly.
Untested on Mac.

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

21 years agoRemove all `enum'-typed variables from the Config structure.
simon [Mon, 27 Jan 2003 18:02:24 +0000 (18:02 +0000)]
Remove all `enum'-typed variables from the Config structure.
Everything in there which is integral is now an actual int, which
means my forthcoming revamp of the config box will be able to work
with `int *' pointers without fear of doom.

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

21 years agoBlinking text was broken on pterm. This should fix it.
simon [Mon, 27 Jan 2003 15:44:48 +0000 (15:44 +0000)]
Blinking text was broken on pterm. This should fix it.

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

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