]> asedeno.scripts.mit.edu Git - PuTTY.git/log
PuTTY.git
21 years agoAdd all the Mac OS simple single-byte character sets from ftp.unicode.org.
Ben Harris [Wed, 1 Jan 2003 16:24:01 +0000 (16:24 +0000)]
Add all the Mac OS simple single-byte character sets from ftp.unicode.org.
Also add the older variants described there, and the character set used by
the "VT100" font (old and new).

Since RFC 1345 defines "macintosh" to refer to the currency-sign variant
of Mac OS Roman, update our table to match.

[originally from svn r2403]

21 years agoRemove a couple of unnecessary casts that my compiler seems to have taken
Ben Harris [Wed, 1 Jan 2003 11:45:43 +0000 (11:45 +0000)]
Remove a couple of unnecessary casts that my compiler seems to have taken
exception to.

[originally from svn r2402]

21 years agoUse the shiny new character-set library to handle conversion from Unicode
Ben Harris [Tue, 31 Dec 2002 22:49:03 +0000 (22:49 +0000)]
Use the shiny new character-set library to handle conversion from Unicode
to Mac OS Roman for display if the Unicode Converter isn't around.  Support
for Mac character sets other than Roman (e.g. the variant used by the Apple
VT100 font) is still absent.

[originally from svn r2401]

21 years agoAdd "-notOnce" to the compiler options on the Mac to stop the compiler
Ben Harris [Tue, 31 Dec 2002 22:40:38 +0000 (22:40 +0000)]
Add "-notOnce" to the compiler options on the Mac to stop the compiler
assuming that duplicate #includes of the same file are idempotent.  I mean,
it's not even true for the standard headers (think <assert.h>), and
certainly isn't true here.

[originally from svn r2400]

21 years agoI have no idea what Simon thought he was doing casting what was once a
Ben Harris [Tue, 31 Dec 2002 22:37:27 +0000 (22:37 +0000)]
I have no idea what Simon thought he was doing casting what was once a
struct sbcs_data * (first element an array of unsigned long) into a
wchar_t *, but I think it's reasonably safe to assume that it was a
mistake.

[originally from svn r2399]

21 years agoAdd internal prototypes to keep my compiler from complaining.
Ben Harris [Tue, 31 Dec 2002 21:12:29 +0000 (21:12 +0000)]
Add internal prototypes to keep my compiler from complaining.

[originally from svn r2398]

21 years agoAdd a small comment explaining my failure to find any way to get QuickDraw
Ben Harris [Tue, 31 Dec 2002 20:11:38 +0000 (20:11 +0000)]
Add a small comment explaining my failure to find any way to get QuickDraw
to give me the missing-character glyph for a font.
While I'm here, change the character we substitute for unmappable ones
to '.', since that's what the charset library uses.

[originally from svn r2397]

21 years agoBetter, I think, to avoid mapping 0x00 -> U+0020 in the X11
Simon Tatham [Tue, 31 Dec 2002 15:42:07 +0000 (15:42 +0000)]
Better, I think, to avoid mapping 0x00 -> U+0020 in the X11
nonstandard font encoding. 0x20 maps to it, so it's not as if it's
in short supply.

[originally from svn r2396]

21 years agoFirst draft of Unicode support in pterm. It's pretty complete: it
Simon Tatham [Tue, 31 Dec 2002 12:20:34 +0000 (12:20 +0000)]
First draft of Unicode support in pterm. It's pretty complete: it
does UTF-8 copy and paste (falling back to normal strings if
necessary), it understands X font encodings and translates things
accordingly so that if you have a Unicode font you can ask for
virtually any single-byte encoding and get it (Mac-Roman pterm,
anyone?), and so on. There's work left to be done (wide fonts for
CJK spring to mind), but I reckon this is a pretty good start.

[originally from svn r2395]

21 years agoSCO ACS part 2 (ESC[12m) apparently puts the top half of CP437 into
Simon Tatham [Tue, 31 Dec 2002 11:03:23 +0000 (11:03 +0000)]
SCO ACS part 2 (ESC[12m) apparently puts the top half of CP437 into
_both_ halves of the character set, rather than flipping the two
halves. My source for this is linux/drivers/char/console.c.

[originally from svn r2394]

21 years agoDimitrie Paun's patch for Winelib support. Actually does nothing
Simon Tatham [Tue, 31 Dec 2002 10:04:35 +0000 (10:04 +0000)]
Dimitrie Paun's patch for Winelib support. Actually does nothing
except add a couple of commented-out lines to Makefile.cyg; the
Winelib user must uncomment them to do the compilation.

[originally from svn r2393]

21 years agoAdd a minimalist settings dialogue, which contains a single button
Ben Harris [Tue, 31 Dec 2002 01:40:14 +0000 (01:40 +0000)]
Add a minimalist settings dialogue, which contains a single button
marked "open".  Still, it seems to work.

[originally from svn r2392]

21 years agoRemove mentions of files and functions that no longer exist.
Ben Harris [Mon, 30 Dec 2002 23:33:13 +0000 (23:33 +0000)]
Remove mentions of files and functions that no longer exist.

[originally from svn r2391]

21 years agoNo need to compile resources manually now.
Ben Harris [Mon, 30 Dec 2002 23:15:46 +0000 (23:15 +0000)]
No need to compile resources manually now.

[originally from svn r2390]

21 years agoAdd support for compiling 'vers' resources into Mac applications. This is
Ben Harris [Mon, 30 Dec 2002 23:14:11 +0000 (23:14 +0000)]
Add support for compiling 'vers' resources into Mac applications.  This is
needlessly complex because Rez's preprocessor doesn't do either ANSI or K&R
stringification, and the MPW Shell isn't much good as shells go.

Also make _all_ the Mac executables depend on reources, not just the
Classic 68K one.

[originally from svn r2389]

21 years agoSet the default directory to somewhere useful (the PuTTY saved sessions
Ben Harris [Mon, 30 Dec 2002 19:01:44 +0000 (19:01 +0000)]
Set the default directory to somewhere useful (the PuTTY saved sessions
folder) when we start up.

[originally from svn r2388]

21 years agoAdd an "open" command to the "file" (now "session") menu on the Mac to
Ben Harris [Mon, 30 Dec 2002 18:21:17 +0000 (18:21 +0000)]
Add an "open" command to the "file" (now "session") menu on the Mac to
open an existing saved session.  This has entailed adding an extra hook to
settings.c to allow for loading settings other than by name.

[originally from svn r2387]

21 years agoRemove a spurious reference to a variable I've removed.
Ben Harris [Mon, 30 Dec 2002 15:41:52 +0000 (15:41 +0000)]
Remove a spurious reference to a variable I've removed.

[originally from svn r2386]

21 years agoFinally add support for building Mac resource forks. This adds a new kind
Ben Harris [Mon, 30 Dec 2002 14:20:25 +0000 (14:20 +0000)]
Finally add support for building Mac resource forks.  This adds a new kind
of compiled resource file, .rsrc, which is built from .r, and adds mechanisms
to the MPW makefile generator to handle this.

[originally from svn r2385]

21 years agoAdd spaces to system include lines to that mkfiles.pl doesn't try to
Ben Harris [Mon, 30 Dec 2002 14:17:51 +0000 (14:17 +0000)]
Add spaces to system include lines to that mkfiles.pl doesn't try to
follow them (silly Rez can't do angle-bracket includes).

[originally from svn r2384]

21 years agoMore cleanup to Mac build procedures, notably:
Ben Harris [Mon, 30 Dec 2002 13:43:19 +0000 (13:43 +0000)]
More cleanup to Mac build procedures, notably:
 - Remove an unused library from the CFM-68K link line.
 - Set the fragment name in CFM builds to "PuTTY".
 - Set the hasBundle and isShared bits on freshly-created applications.

[originally from svn r2383]

21 years agoAdd various files produced by the build system.
Ben Harris [Sun, 29 Dec 2002 19:19:10 +0000 (19:19 +0000)]
Add various files produced by the build system.

[originally from svn r2382]

21 years agoDon't try to call TerminateUnicodeConverter() in the CFM world: it isn't there.
Ben Harris [Sun, 29 Dec 2002 19:14:56 +0000 (19:14 +0000)]
Don't try to call TerminateUnicodeConverter() in the CFM world: it isn't there.

[originally from svn r2381]

21 years agoBrutally simplify out all the junk that MPW left here when it first wrote this
Ben Harris [Sun, 29 Dec 2002 19:11:40 +0000 (19:11 +0000)]
Brutally simplify out all the junk that MPW left here when it first wrote this
file.

[originally from svn r2380]

21 years agoAdd support for building a CFM-68K version of PuTTY, which is rather smaller
Ben Harris [Sun, 29 Dec 2002 19:01:33 +0000 (19:01 +0000)]
Add support for building a CFM-68K version of PuTTY, which is rather smaller
than the Classic 68K version.  This requires installing more bits of the
Text Encoding Converter SDK, since Apple seem to have forgotten to put _any_
68k bits for it, either CFM or Classic, in Universal Interfaces.

Also don't bother linking against libraries we don't seem to need.

[originally from svn r2379]

21 years agoSubstantial overhaul of Mac build system. We now have working PowerPC builds,
Ben Harris [Sun, 29 Dec 2002 15:44:15 +0000 (15:44 +0000)]
Substantial overhaul of Mac build system.  We now have working PowerPC builds,
and optimisation (for size) enabled.

[originally from svn r2378]

21 years agoPut prototypes for the functions exported by wcwidth.c in putty.h, and remove
Ben Harris [Sun, 29 Dec 2002 15:08:27 +0000 (15:08 +0000)]
Put prototypes for the functions exported by wcwidth.c in putty.h, and remove
one from terminal.c.  Have wcwidth.c include putty.h to get its prototypes.

[originally from svn r2377]

21 years agoMake resizeline() and lineptr() static and give them prototypes.
Ben Harris [Sun, 29 Dec 2002 14:47:01 +0000 (14:47 +0000)]
Make resizeline() and lineptr() static and give them prototypes.

[originally from svn r2376]

21 years agoUse the "far" versions of all libraries for which they seem to exist.
Ben Harris [Sun, 29 Dec 2002 13:41:38 +0000 (13:41 +0000)]
Use the "far" versions of all libraries for which they seem to exist.
This should make things less likely to break as the code gets bigger.

[originally from svn r2375]

21 years agoAdd some pragmas so that Mac compilers know that fatalbox() and
Ben Harris [Sun, 29 Dec 2002 13:21:12 +0000 (13:21 +0000)]
Add some pragmas so that Mac compilers know that fatalbox() and
modalfatalbox() don't return.

[originally from svn r2374]

21 years agoIt would be better if I deleted the unused variable from the correct function.
Ben Harris [Sat, 28 Dec 2002 22:44:27 +0000 (22:44 +0000)]
It would be better if I deleted the unused variable from the correct function.

[originally from svn r2373]

21 years agoRemove more unused variables.
Ben Harris [Sat, 28 Dec 2002 22:25:31 +0000 (22:25 +0000)]
Remove more unused variables.

[originally from svn r2372]

21 years agoDispose of some unused local variables.
Ben Harris [Sat, 28 Dec 2002 22:22:43 +0000 (22:22 +0000)]
Dispose of some unused local variables.

[originally from svn r2371]

21 years agoThe current version of SC generates warnings for unused parameters just
Ben Harris [Sat, 28 Dec 2002 22:17:51 +0000 (22:17 +0000)]
The current version of SC generates warnings for unused parameters just
like MrC.  Turn them off, since they're clearly silly.

[originally from svn r2370]

21 years agoMention in the documentation that the method of generating RSA keys
Simon Tatham [Fri, 27 Dec 2002 16:54:14 +0000 (16:54 +0000)]
Mention in the documentation that the method of generating RSA keys
might give a bit count one less than the one the user asked for. Two
people have been worried by this now, and it's probably worth
documenting that it's perfectly normal.

[originally from svn r2369]

21 years agoMove the stderr output of event log messages in verbose mode to the
Simon Tatham [Thu, 19 Dec 2002 14:24:28 +0000 (14:24 +0000)]
Move the stderr output of event log messages in verbose mode to the
general logging module rather than localising it in ssh.c. This
means it should work in other protocols as well (notably Telnet,
where it might actually be useful for debugging negotiations).

[originally from svn r2360]

21 years agoFirst crack at an implementation of TELOPT_BINARY, which apparently
Simon Tatham [Thu, 19 Dec 2002 14:22:16 +0000 (14:22 +0000)]
First crack at an implementation of TELOPT_BINARY, which apparently
RFC 1123 (host requirements) says is compulsory.

[originally from svn r2358]

21 years agologeventf() shouldn't throw stuff at stderr, since it invokes the
Simon Tatham [Thu, 19 Dec 2002 11:51:42 +0000 (11:51 +0000)]
logeventf() shouldn't throw stuff at stderr, since it invokes the
ssh.c logevent _macro_ which has already done so! Duhh.

[originally from svn r2356]

21 years agoSupport for doing DNS at the proxy end. I've invented a new type of
Simon Tatham [Wed, 18 Dec 2002 16:23:11 +0000 (16:23 +0000)]
Support for doing DNS at the proxy end. I've invented a new type of
SockAddr, which just contains an unresolved hostname and is created
by a stub function in *net.c. It's an error to pass this to most of
the real-meat functions in *net.c; these fake addresses should have
been dealt with by the time they get down that far. proxy.c now
contains name_lookup(), a wrapper on sk_namelookup() which decides
whether or not to do real DNS, and the individual proxy
implementations each deal sensibly with being handed an unresolved
address and avoid ever passing one down to *net.c.

[originally from svn r2353]

21 years agoBetter reporting of DNS errors while trying to find the proxy server.
Simon Tatham [Wed, 18 Dec 2002 12:32:18 +0000 (12:32 +0000)]
Better reporting of DNS errors while trying to find the proxy server.

[originally from svn r2350]

21 years agoStop proxying connections to localhost by default; should fix
Simon Tatham [Wed, 18 Dec 2002 12:18:54 +0000 (12:18 +0000)]
Stop proxying connections to localhost by default; should fix
`x11-proxy-crash'.

[originally from svn r2348]

21 years agoPlacate a trivial compiler warning.
Simon Tatham [Wed, 18 Dec 2002 11:51:09 +0000 (11:51 +0000)]
Placate a trivial compiler warning.

[originally from svn r2347]

21 years agoImprove the tab order in the Tunnels box: the `Add' button should
Simon Tatham [Wed, 18 Dec 2002 11:49:14 +0000 (11:49 +0000)]
Improve the tab order in the Tunnels box: the `Add' button should
happen _after_ all the controls that set up the forwarding, since
that's the obvious order you'd want to use them in.

[originally from svn r2346]

21 years agoImplement `portfwd-loopback-choice'. Works on local side in Unix as
Simon Tatham [Wed, 18 Dec 2002 11:39:25 +0000 (11:39 +0000)]
Implement `portfwd-loopback-choice'. Works on local side in Unix as
well, though it's a lot less useful since you still can't bind to
low-numbered ports of odd loopback IPs. Should work in principle for
SSH2 remote forwardings as well as local ones, but OpenSSH seems
unwilling to cooperate.

[originally from svn r2344]

21 years agoBUG_SSH2_DERIVEKEY is apparently only present in SSH 2.0.11 and
Simon Tatham [Wed, 18 Dec 2002 10:06:38 +0000 (10:06 +0000)]
BUG_SSH2_DERIVEKEY is apparently only present in SSH 2.0.11 and
before, not in 2.0.13. Verified on at least one host. Fixes bug
`ssh2-keyderive-nonbug'.

[originally from svn r2342]

21 years ago`Leonid' points out a stupid mistake in MD5 HMAC initialisation: we
Simon Tatham [Wed, 18 Dec 2002 09:54:55 +0000 (09:54 +0000)]
`Leonid' points out a stupid mistake in MD5 HMAC initialisation: we
should initialise _both_ MD5 states, not the same one twice.

[originally from svn r2341]

21 years agologeventf()'s first argument is ssh, not ssh->frontend! This is what
Simon Tatham [Wed, 18 Dec 2002 09:47:20 +0000 (09:47 +0000)]
logeventf()'s first argument is ssh, not ssh->frontend! This is what
I get for making the latter a `void *' - type checking deserts me in
my hour of need. Should fix Andrey Borzenkov's bug.

[originally from svn r2340]

21 years agoFixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
Jacob Nevins [Sun, 15 Dec 2002 13:31:58 +0000 (13:31 +0000)]
Fixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
  window.c:90: warning: `do_mouse_wheel_msg' declared `static' but never defined
Introduced in 1.185 [r1499]. This function doesn't appear to ever have
existed.

[originally from svn r2334]
[r1499 == d6016149bfd0fe316629ff74e32e06f42948cf87]

21 years agoFixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
Jacob Nevins [Sun, 15 Dec 2002 13:25:24 +0000 (13:25 +0000)]
Fixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
  psftp.c: In function `sftp_cmd_chmod':
  psftp.c:835: warning: too many arguments for format

[originally from svn r2333]

21 years agoFixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
Jacob Nevins [Sun, 15 Dec 2002 13:23:13 +0000 (13:23 +0000)]
Fixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
  plink.c:65: warning: `password' defined but not used
(introduced in 1.50 [r1525])

[originally from svn r2332]
[r1525 == 466b1c82d5db5d2f71daf7e2f0a450c9ff9cadd6]

21 years agoFixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
Jacob Nevins [Sun, 15 Dec 2002 13:19:59 +0000 (13:19 +0000)]
Fixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
  plink.c: In function `from_backend':
  plink.c:172: warning: unused variable `h'
(introduced in 1.35 [r1198])

[originally from svn r2331]
[r1198 == c87fa98d09343621fc4ae7c3c8fb197d0feeaa67]

21 years agoFrom Greg Prosser: Apparently using "MS Shell Dlg" instead of "MS Sans Serif"
Jacob Nevins [Sun, 15 Dec 2002 12:44:21 +0000 (12:44 +0000)]
From Greg Prosser: Apparently using "MS Shell Dlg" instead of "MS Sans Serif"
in resource files interoperates better with WinXP (enabling font smoothing
and improving display of password boxes). I've verified that it's harmless
on Win95.

[originally from svn r2329]

21 years agofaq-rh8-utf8: Problems with Red Hat 8.0 and UTF-8
Jacob Nevins [Sun, 15 Dec 2002 11:51:21 +0000 (11:51 +0000)]
faq-rh8-utf8: Problems with Red Hat 8.0 and UTF-8

[originally from svn r2327]

21 years agoRemove an unnecessary "{Includes}" from the example Rez command.
Ben Harris [Fri, 13 Dec 2002 00:50:53 +0000 (00:50 +0000)]
Remove an unnecessary "{Includes}" from the example Rez command.

[originally from svn r2317]

21 years agoProvide a full set of small application icons for PuTTY, now equipped with
Ben Harris [Fri, 13 Dec 2002 00:45:08 +0000 (00:45 +0000)]
Provide a full set of small application icons for PuTTY, now equipped with
small lightning flashes too.

[originally from svn r2316]

21 years agoUse the Unicode Converter to convert from Unicode to the display encoding
Ben Harris [Fri, 13 Dec 2002 00:02:48 +0000 (00:02 +0000)]
Use the Unicode Converter to convert from Unicode to the display encoding
if it's available.  Linking against the static Unicode Converter library
costs us about 30k on Classic 68K, which I can live with.

Because the default fallback converter can generate multiple output
characters for a single input character, we provide our own fallback that
doesn't.  It converts everything to '?' instead.

[originally from svn r2315]

21 years agoWhen loading a string setting, expect in the same form we would have
Ben Harris [Thu, 12 Dec 2002 23:55:51 +0000 (23:55 +0000)]
When loading a string setting, expect in the same form we would have
saved (raw text rather than Pascal string).

[originally from svn r2314]

21 years agoAdd some documentation for the Mac port.
Ben Harris [Wed, 11 Dec 2002 18:34:49 +0000 (18:34 +0000)]
Add some documentation for the Mac port.

[originally from svn r2305]

21 years agoIPv4/IPv6 sense problem in SOCKS5 proxying spotted by Andrey Borzenkov --
Jacob Nevins [Tue, 10 Dec 2002 10:19:51 +0000 (10:19 +0000)]
IPv4/IPv6 sense problem in SOCKS5 proxying spotted by Andrey Borzenkov --
recent change.

[originally from svn r2301]

21 years agoSince PuTTY depends on lots of features of System 7, have it bale out if
Ben Harris [Tue, 10 Dec 2002 01:11:40 +0000 (01:11 +0000)]
Since PuTTY depends on lots of features of System 7, have it bale out if
it finds itself running on anything older.  This is better than killing the
whole system with an umimplemented trap.

[originally from svn r2300]

21 years agoWhen resizing the window, redraw the grow box as well as the scroll bar.
Ben Harris [Mon, 9 Dec 2002 23:26:52 +0000 (23:26 +0000)]
When resizing the window, redraw the grow box as well as the scroll bar.
I wasn't noticing the bug on my system, since the Appearance Manager handles
the grow box itself when it's present.

[originally from svn r2299]

21 years agoUpdate the non-Color Quickdraw code in pre_paint() to match recent changes
Ben Harris [Mon, 9 Dec 2002 22:49:56 +0000 (22:49 +0000)]
Update the non-Color Quickdraw code in pre_paint() to match recent changes
to the Color Quickdraw code.  This makes redraw work properly on old Macs
again.

[originally from svn r2298]

21 years agoOops. When deciding which attributes are interesting, we want the union of
Ben Harris [Sun, 8 Dec 2002 22:23:08 +0000 (22:23 +0000)]
Oops.  When deciding which attributes are interesting, we want the union of
all the screens' capabilites, not the intersection.

[originally from svn r2297]

21 years agoRemove a stray prototype for mac_set_attr_mask().
Ben Harris [Sun, 8 Dec 2002 22:15:10 +0000 (22:15 +0000)]
Remove a stray prototype for mac_set_attr_mask().

[originally from svn r2296]

21 years agoRemove some unused cruft.
Ben Harris [Sun, 8 Dec 2002 22:09:47 +0000 (22:09 +0000)]
Remove some unused cruft.

[originally from svn r2295]

21 years agoModify bug-compatibility checks to use wildcards. Should have exactly the
Jacob Nevins [Sun, 8 Dec 2002 16:54:31 +0000 (16:54 +0000)]
Modify bug-compatibility checks to use wildcards. Should have exactly the
same behaviour as before (tested a little bit), but should be easier to
expand.
(This is the easy bit -- work still needs to be done to fix
ssh2-keyderive-nonbug, vshell-no-bug-compat, etc -- but should be easier
now.)

[originally from svn r2293]

21 years agoWrong length was causing spurious \0 to be sent during SSH negotiation with
Jacob Nevins [Sun, 8 Dec 2002 15:32:40 +0000 (15:32 +0000)]
Wrong length was causing spurious \0 to be sent during SSH negotiation with
HTTP proxy -- fixed. (Also added a "len -= eol" to HTTP header munching,
although it has no practical effect.) HTTP proxying now works again, hurrah.

[originally from svn r2292]

21 years agoArgh. With DEBUG and MALLOC_LOG enabled, I found output intended for the
Jacob Nevins [Sun, 8 Dec 2002 14:44:42 +0000 (14:44 +0000)]
Argh. With DEBUG and MALLOC_LOG enabled, I found output intended for the
console was ending up in one or other of debug.log or putty_mem.log. I
don't really understand why, but I've put some extra paranoia and caching
in debug(()) and that seems to have fixed it (tm). Perhaps I can get back
to debugging...

[originally from svn r2291]

21 years agoDoofus Award: logfopen is shared between SSH-packet and session-logging modes,
Jacob Nevins [Sun, 8 Dec 2002 12:10:58 +0000 (12:10 +0000)]
Doofus Award: logfopen is shared between SSH-packet and session-logging modes,
so of _course_ it has to be mode "wb". Restored, and added \r to all of the
SSH packet logging stuff.

[originally from svn r2289]

21 years agoAdd a new diagnostic in winnet.c, to attempt to pinpoint the reason
Simon Tatham [Sun, 8 Dec 2002 11:00:47 +0000 (11:00 +0000)]
Add a new diagnostic in winnet.c, to attempt to pinpoint the reason
for the tree234 assertion failure we've had reported recently.

[originally from svn r2288]

21 years agoSlightly cheesy size-tip implementation. This is suboptimal in two ways:
Ben Harris [Sun, 8 Dec 2002 01:17:31 +0000 (01:17 +0000)]
Slightly cheesy size-tip implementation.  This is suboptimal in two ways:
 * It paints over the top-left corner of the terminal window.  A little
   floating window would be rather nicer and not much harder to do.
 * It uses the low-memory global, DragHook, which is unavailable in Carbon
   and broken in some versions of Mac OS 8 (8.5?).  I suspect this is
   unavoidable, though.

[originally from svn r2287]

21 years agoFor some reason Roman Pompejus' original logging patch opened the log in
Jacob Nevins [Sat, 7 Dec 2002 21:35:05 +0000 (21:35 +0000)]
For some reason Roman Pompejus' original logging patch opened the log in
"wb" mode. Since we were mostly writing "\n" rather than "\r\n", I've
changed it to just "w" and refunded the difference.

[originally from svn r2286]

21 years agoFix write to freed memory in HTTP proxying. Things aren't entirely happy yet,
Jacob Nevins [Sat, 7 Dec 2002 21:15:49 +0000 (21:15 +0000)]
Fix write to freed memory in HTTP proxying. Things aren't entirely happy yet,
though.

[originally from svn r2285]

21 years agoWhen scrolling part of the window, scroll the update region as well so that
Ben Harris [Sat, 7 Dec 2002 15:21:56 +0000 (15:21 +0000)]
When scrolling part of the window, scroll the update region as well so that
parts that haven't been painted yet still get an update event in their new
location.  This code seems far too complicated, and I suspect there's a
better way.  Still, scrolling continuously with the window partially
off-screen now works.

[originally from svn r2284]

21 years agoIgnore generated Mac Makefile
Jacob Nevins [Sat, 7 Dec 2002 12:03:33 +0000 (12:03 +0000)]
Ignore generated Mac Makefile

[originally from svn r2283]

21 years agoUse the Script Manager to find a small Roman font for the licence box rather
Ben Harris [Fri, 6 Dec 2002 00:09:34 +0000 (00:09 +0000)]
Use the Script Manager to find a small Roman font for the licence box rather
than assuming that the application font at 9pt will be useful (which it
probably won't be on non-Roman systems).

[originally from svn r2282]

21 years agoAdd some comments explaining what each of these functions is used for.
Ben Harris [Wed, 4 Dec 2002 19:44:57 +0000 (19:44 +0000)]
Add some comments explaining what each of these functions is used for.

[originally from svn r2280]

21 years agoAvoid potential memory leak.
Owen Dunn [Wed, 4 Dec 2002 12:53:42 +0000 (12:53 +0000)]
Avoid potential memory leak.

[originally from svn r2278]

21 years ago#include <signal.h>. Compiled fine without it on Debian 3.0, but not
Simon Tatham [Wed, 4 Dec 2002 12:40:36 +0000 (12:40 +0000)]
#include <signal.h>. Compiled fine without it on Debian 3.0, but not
on 2.2. Wonder what changed.

[originally from svn r2277]

21 years agoChanged to use strerror()
Owen Dunn [Wed, 4 Dec 2002 12:39:32 +0000 (12:39 +0000)]
Changed to use strerror()

[originally from svn r2276]

21 years agoDriver script for building PuTTY under MPW. MPW isn't multi-tasking, so its
Ben Harris [Mon, 2 Dec 2002 21:06:12 +0000 (21:06 +0000)]
Driver script for building PuTTY under MPW.  MPW isn't multi-tasking, so its
"make" program just emits a script for us to run.  This script wraps all that
horribleness up so we don't have to see it.

[originally from svn r2274]

21 years agoAdd an entry for the Mac version of PuTTY.
Ben Harris [Mon, 2 Dec 2002 21:03:14 +0000 (21:03 +0000)]
Add an entry for the Mac version of PuTTY.

[originally from svn r2273]

21 years agoAdd support for generating MPW Makefiles. This makes the following changes:
Ben Harris [Mon, 2 Dec 2002 21:01:11 +0000 (21:01 +0000)]
Add support for generating MPW Makefiles.  This makes the following changes:

* splitline gets support for changing the continuation character.
* deps returns a data structure for the output routine to format as
  appropriate.
* There's a new program type, [M], for Macintosh.
* There's a new backend to output mac/Makefile.mpw.

[originally from svn r2272]

21 years agoImprove support for non-colour displays by adding a mask of attributes to
Ben Harris [Fri, 29 Nov 2002 00:32:03 +0000 (00:32 +0000)]
Improve support for non-colour displays by adding a mask of attributes to
ignore when breaking text into runs for display, and implement setting this
on Mac (other ports just use 0xffffffff).

We don't use DeviceLoop for this any more because Apple Technical Q&A
QA1024 says we shouldn't.  Unlike their example, we don't depend on the
Display Manager's being present either.

[originally from svn r2264]

21 years agoDon't call SetFractEnable every time we draw some text, since
Ben Harris [Thu, 28 Nov 2002 21:10:55 +0000 (21:10 +0000)]
Don't call SetFractEnable every time we draw some text, since
SetFractEnable unconditionally flushes the Font Manager's width cache,
and the default is fine for us anyway.  This more or less doubles
redraw speed, which is nice, but still not really fast enough.

[originally from svn r2263]

21 years agoFollow the recommendations in Tech Note TB575 for clipping off the space
Ben Harris [Thu, 28 Nov 2002 21:02:07 +0000 (21:02 +0000)]
Follow the recommendations in Tech Note TB575 for clipping off the space
for the horizontal scroll bar when drawing the grow box.

[originally from svn r2262]

21 years agoUse StdText() rather than DrawText, so that (later) we can support scaling of
Ben Harris [Thu, 28 Nov 2002 00:25:09 +0000 (00:25 +0000)]
Use StdText() rather than DrawText, so that (later) we can support scaling of
text to get double-width etc.

Also set the background when scrolling in Original Quickdraw.

[originally from svn r2261]

21 years agoIncrease the size of the `font' buffer in the Config structure, for
Simon Tatham [Tue, 26 Nov 2002 19:35:40 +0000 (19:35 +0000)]
Increase the size of the `font' buffer in the Config structure, for
the benefit of X font names which are rather more verbose than
Windows. One day I want to replace all these fixed-size buffers with
sensible dynamically allocated stuff, but not today.

[originally from svn r2260]

21 years agoSubstantial overhaul of colour handling in do_text(). Highlights include:
Ben Harris [Tue, 26 Nov 2002 01:32:51 +0000 (01:32 +0000)]
Substantial overhaul of colour handling in do_text().  Highlights include:
* No more mucking about with transfer modes.  We always set up the foreground
  and background sensibly, EraseRect the whole lot and use srcOr.  Apple
  Tech Note QD505 suggests that this should be faster than srcCopy.
* Always use the Palette Manager if we've got Color QuickDraw, even in 1bpp
  modes.
* Apply the cursor colours _after_ all the other stuff, rather than trying to
  get them through everything else intact.

Unfortunately, this doesn't make much difference to the speed.

[originally from svn r2259]

21 years agoMake the default font on Mac OS be Monaco 9 rather than Monaco 10, since the
Ben Harris [Mon, 25 Nov 2002 23:34:59 +0000 (23:34 +0000)]
Make the default font on Mac OS be Monaco 9 rather than Monaco 10, since the
former is available as a bitmap.

[originally from svn r2258]

21 years agoRemove a spurious 'q'.
Ben Harris [Mon, 25 Nov 2002 19:02:23 +0000 (19:02 +0000)]
Remove a spurious 'q'.

[originally from svn r2257]

21 years agoAdd support for displaying the licence window.
Ben Harris [Sun, 24 Nov 2002 15:08:52 +0000 (15:08 +0000)]
Add support for displaying the licence window.

[originally from svn r2255]

21 years agoFix scrolling on systems without Color QuickDraw. It seems that the current
Ben Harris [Sun, 24 Nov 2002 00:38:44 +0000 (00:38 +0000)]
Fix scrolling on systems without Color QuickDraw.  It seems that the current
background colour and pen mode have some silly effects on ScrollRect, so
set them back to their defaults before calling it.

[originally from svn r2254]

21 years agoDon't try to initialise the palette unless we have Color QuickDraw. This gets
Ben Harris [Sat, 23 Nov 2002 22:36:56 +0000 (22:36 +0000)]
Don't try to initialise the palette unless we have Color QuickDraw.  This gets
PuTTY running on my Mac SE again (albeit very slowly and with scroll
optimisation broken for some reason).

[originally from svn r2253]

21 years agoFix a bug in scroll_display(): when the scrolled region contains the cursor
Ben Harris [Sat, 23 Nov 2002 21:42:46 +0000 (21:42 +0000)]
Fix a bug in scroll_display(): when the scrolled region contains the cursor
we need to update dispcurs as well as disptext.

Add scroll optimisation to scroll().  This makes it rather obvious that scroll
optimisation is breaking with PuTTY's usual policy of lazy updates, since
scrolling is done eagerly.  Fixing this so that all the scrolling is saved
up for do_paint would be nice, but non-trivial.

[originally from svn r2252]

21 years agoRemove stray debugging printfs.
Ben Harris [Sat, 23 Nov 2002 20:40:22 +0000 (20:40 +0000)]
Remove stray debugging printfs.

[originally from svn r2251]

21 years agoAdd a Config * argument to ldisc_create(), and use it in place of the global
Ben Harris [Sat, 23 Nov 2002 20:02:38 +0000 (20:02 +0000)]
Add a Config * argument to ldisc_create(), and use it in place of the global
cfg throughout ldisc.c.  Not tested other than on Mac, but all other ports
just pass &cfg as this argument for now.

[originally from svn r2250]

21 years agoReturn the state information from loop_init() in the correct way. This means
Ben Harris [Sat, 23 Nov 2002 19:58:55 +0000 (19:58 +0000)]
Return the state information from loop_init() in the correct way.  This means
the backend actually works now.

[originally from svn r2249]

21 years agoAdd a "Config *" argument to term_init(), and use that instead of the global
Ben Harris [Sat, 23 Nov 2002 19:01:01 +0000 (19:01 +0000)]
Add a "Config *" argument to term_init(), and use that instead of the global
cfg throughout the terminal emulator.  Not tested in PuTTY and pterm, but they
just pass in &cfg.

[originally from svn r2248]

21 years agoOnly try to retrieve a 'vers' resource from the current resource file (the
Ben Harris [Sat, 23 Nov 2002 18:22:47 +0000 (18:22 +0000)]
Only try to retrieve a 'vers' resource from the current resource file (the
application), rather from the entire chain.  This prevents us displaying the
System version if PuTTY doesn't have one.  Also cope with not finding any
'vers' resource.

[originally from svn r2247]