u/mdw/putty
21 years agoFix for `hostname-whitespace'; thanks to Justin Bradford.
simon [Wed, 16 Oct 2002 11:35:13 +0000 (11:35 +0000)]
Fix for `hostname-whitespace'; thanks to Justin Bradford.

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

21 years agoBug `shift-backspace': whichever of ^H and ^? is configured for
simon [Wed, 16 Oct 2002 09:40:36 +0000 (09:40 +0000)]
Bug `shift-backspace': whichever of ^H and ^? is configured for
Backspace, Shift-Backspace should do the _other_ one. Thanks to
Justin Bradford.

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

21 years agoOops - check in leftovers from yesterday's development. That's what
simon [Wed, 16 Oct 2002 09:28:17 +0000 (09:28 +0000)]
Oops - check in leftovers from yesterday's development. That's what
I get for running most of my cvs commands in the unix subdir :-/

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

21 years agoSupport bold-as-font, by means of a separate bold font (if one was
simon [Tue, 15 Oct 2002 18:42:48 +0000 (18:42 +0000)]
Support bold-as-font, by means of a separate bold font (if one was
supplied) or shadow bolding (if not). As usual, can't yet be turned
on without a recompile.

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

21 years agoConfigure the pty so that it agrees with our idea of whether
simon [Tue, 15 Oct 2002 18:36:18 +0000 (18:36 +0000)]
Configure the pty so that it agrees with our idea of whether
Backspace sends ^H or ^?.

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

21 years agoSupport underline and vertical-line cursors as well as block.
simon [Tue, 15 Oct 2002 18:18:25 +0000 (18:18 +0000)]
Support underline and vertical-line cursors as well as block.

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

21 years agoIf we can't load the specified font, give an error message rather
simon [Tue, 15 Oct 2002 17:41:22 +0000 (17:41 +0000)]
If we can't load the specified font, give an error message rather
than segfaulting.

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

21 years agoPrinter support: cfg.printer is assumed to be a Unix command through
simon [Tue, 15 Oct 2002 17:38:04 +0000 (17:38 +0000)]
Printer support: cfg.printer is assumed to be a Unix command through
which to pipe printed data. Of course by default printing is
disabled; typically cfg.printer would be set to `lpr', perhaps with
some arguments.

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

21 years agoScrollbar can now be configured to go on the left (although the
simon [Tue, 15 Oct 2002 17:24:13 +0000 (17:24 +0000)]
Scrollbar can now be configured to go on the left (although the
current configuration mechanism doesn't support it).

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

21 years agoSupport ALT + numeric keypad for typing in strange character codes.
simon [Tue, 15 Oct 2002 17:18:24 +0000 (17:18 +0000)]
Support ALT + numeric keypad for typing in strange character codes.

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

21 years agoAdd newline at EOF in uxucs.c. Thanks Richard. :-)
simon [Tue, 15 Oct 2002 16:52:45 +0000 (16:52 +0000)]
Add newline at EOF in uxucs.c. Thanks Richard. :-)

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

21 years agoSupport scrolling with the mouse wheel (X servers apparently usually
simon [Tue, 15 Oct 2002 16:50:42 +0000 (16:50 +0000)]
Support scrolling with the mouse wheel (X servers apparently usually
send a button 4 press for an upward wheel movement and a button 5
press for a downward one). Untested since my own trackball's button
4 does nothing obvious. Someone with a mouse wheel should give this
a workout.

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

21 years agoFixes to terminal.c to support blinking and visual bells under Unix.
simon [Tue, 15 Oct 2002 16:40:22 +0000 (16:40 +0000)]
Fixes to terminal.c to support blinking and visual bells under Unix.

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

21 years agoSupport for blinking text and blinking cursor. Won't actually be
simon [Tue, 15 Oct 2002 16:38:10 +0000 (16:38 +0000)]
Support for blinking text and blinking cursor. Won't actually be
accessible until there's a way to configure it on, but it worked in
tests.

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

21 years agoUse the appalling gnome-terminal hack for server-controlled resizes
simon [Tue, 15 Oct 2002 16:24:42 +0000 (16:24 +0000)]
Use the appalling gnome-terminal hack for server-controlled resizes
rather than the gtk_window_set_policy approach; the GNOME people say
that the former is the Right Thing in spite of the latter looking
obviously plausible.

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

21 years agoRemove some rogue diagnostics.
simon [Tue, 15 Oct 2002 15:44:23 +0000 (15:44 +0000)]
Remove some rogue diagnostics.

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

21 years agoDon't forget to initialise the pixel size parameters of the window
simon [Tue, 15 Oct 2002 15:16:21 +0000 (15:16 +0000)]
Don't forget to initialise the pixel size parameters of the window
as passed to the pty...

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

21 years agoRichard's patch to fix `make clean' under Unix.
simon [Tue, 15 Oct 2002 14:58:02 +0000 (14:58 +0000)]
Richard's patch to fix `make clean' under Unix.

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

21 years agoRichard's patch to make the scrollbar configurably absent. (Still
simon [Tue, 15 Oct 2002 14:55:19 +0000 (14:55 +0000)]
Richard's patch to make the scrollbar configurably absent. (Still
want a new option to configure it to be on the LHS though. And some
lunatic is bound to ask for an xterm-style scrollbar too... :-)

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

21 years agoSupport for all the server-side window configuration requests,
simon [Tue, 15 Oct 2002 14:31:06 +0000 (14:31 +0000)]
Support for all the server-side window configuration requests,
including server-controlled resizing. Irritatingly I've had to use a
deprecated option to gtk_window_set_policy() to make this work,
resulting in me raising GNOME bug #95818 to ask for it to be un-
deprecated again...

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

21 years agoIntroduce the ability to control whether the shell run in pterm is a
simon [Tue, 15 Oct 2002 13:07:18 +0000 (13:07 +0000)]
Introduce the ability to control whether the shell run in pterm is a
login shell or not. Also moved these new pieces of configuration
into the Config structure, though they won't stay there forever
since they will need to be moved out into platform-dependent config.

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

21 years agoFinish up utmp processing: add the -ut- command-line option to
simon [Tue, 15 Oct 2002 12:42:58 +0000 (12:42 +0000)]
Finish up utmp processing: add the -ut- command-line option to
suppress stamping it at all. (I suppose this ought to be part of the
cfg structure really.)

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

21 years agoSupport for utmp, wtmp and lastlog. Probably not terribly portable
simon [Tue, 15 Oct 2002 12:29:52 +0000 (12:29 +0000)]
Support for utmp, wtmp and lastlog. Probably not terribly portable
as yet, but seems to work plausibly on Linux.

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

21 years agoDeal with the warnings generated when passing a pointer-to-enum to
simon [Tue, 15 Oct 2002 10:52:13 +0000 (10:52 +0000)]
Deal with the warnings generated when passing a pointer-to-enum to
gppi as a pointer-to-int.

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

21 years agoSupport for BSD-style pty devices. Tested under Linux; might need
simon [Tue, 15 Oct 2002 10:49:38 +0000 (10:49 +0000)]
Support for BSD-style pty devices. Tested under Linux; might need
minor tweaks to run under other BSD-style OSes.

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

21 years agoTrim wide text properly at the RH edge of the screen.
simon [Tue, 15 Oct 2002 09:30:16 +0000 (09:30 +0000)]
Trim wide text properly at the RH edge of the screen.

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

21 years agoSupport for line attributes: ESC #3, #4 and #6 for double-width and
simon [Tue, 15 Oct 2002 00:22:48 +0000 (00:22 +0000)]
Support for line attributes: ESC #3, #4 and #6 for double-width and
double-height text.

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

21 years agoDon't cause the mouse pointer to reappear just because it's changed
simon [Mon, 14 Oct 2002 23:39:07 +0000 (23:39 +0000)]
Don't cause the mouse pointer to reappear just because it's changed
shape.

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

21 years agoOnly engage a GTK idle function when absolutely necessary, otherwise
simon [Mon, 14 Oct 2002 23:32:00 +0000 (23:32 +0000)]
Only engage a GTK idle function when absolutely necessary, otherwise
the whole app spins on it and takes up CPU all the time.

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

21 years agoSet up the palette _before_ trying to paint the window black.
simon [Mon, 14 Oct 2002 22:14:54 +0000 (22:14 +0000)]
Set up the palette _before_ trying to paint the window black.

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

21 years agoAdd the -log option, which activates full session logging. Should be
simon [Mon, 14 Oct 2002 10:33:34 +0000 (10:33 +0000)]
Add the -log option, which activates full session logging. Should be
handy next time I need to debug any weird terminal problems...

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

21 years agoBell overload was working in principle, but wasn't scaled to Unix's
simon [Mon, 14 Oct 2002 10:29:50 +0000 (10:29 +0000)]
Bell overload was working in principle, but wasn't scaled to Unix's
greater time resolution. Oops.

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

21 years agoSupport server requests for colour palette changes.
simon [Mon, 14 Oct 2002 10:21:35 +0000 (10:21 +0000)]
Support server requests for colour palette changes.

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

21 years agoDon't forget to call term_paste() when we get the chance, or big
simon [Mon, 14 Oct 2002 10:14:12 +0000 (10:14 +0000)]
Don't forget to call term_paste() when we get the chance, or big
pastes won't go through. (Not sure whether I should remove this
weird behaviour completely for pterm. It's a bit bizarre.)

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

21 years agoSupport NetHack keypad mode. :-)
simon [Mon, 14 Oct 2002 10:06:07 +0000 (10:06 +0000)]
Support NetHack keypad mode. :-)

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

21 years agoSupport for hiding the mouse pointer on keypresses. Currently
simon [Mon, 14 Oct 2002 09:58:27 +0000 (09:58 +0000)]
Support for hiding the mouse pointer on keypresses. Currently
activated by `-hide' on the command line.

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

21 years agoxterm-class programs should exit when their primary child process
simon [Mon, 14 Oct 2002 09:18:34 +0000 (09:18 +0000)]
xterm-class programs should exit when their primary child process
dies, rather than waiting around until the last open handle on the
pty closes.

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

21 years agoSEL_NL is different between Windows and Unix; move it out into the
simon [Mon, 14 Oct 2002 09:06:31 +0000 (09:06 +0000)]
SEL_NL is different between Windows and Unix; move it out into the
platform-specific header files.

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

21 years agoOops. Defining max() the wrong way round was breaking rect select.
simon [Mon, 14 Oct 2002 09:04:23 +0000 (09:04 +0000)]
Oops. Defining max() the wrong way round was breaking rect select.

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

21 years agoVarious faffs in the pty allocation process to get controlling
simon [Mon, 14 Oct 2002 08:56:55 +0000 (08:56 +0000)]
Various faffs in the pty allocation process to get controlling
terminals right. Irritatingly this was working when run from another
[xsp]term but not when run from my GNOME panel. I think it's now
more robust.

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

21 years agoWindow title configurability: -T to set it from the command line,
simon [Mon, 14 Oct 2002 00:05:37 +0000 (00:05 +0000)]
Window title configurability: -T to set it from the command line,
support for the xterm escape sequences to set it, and support for
the xterm escape sequence to query it.

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

21 years agoDon't forget to set $TERM when we spawn the pty. Of course I haven't
simon [Sun, 13 Oct 2002 23:57:40 +0000 (23:57 +0000)]
Don't forget to set $TERM when we spawn the pty. Of course I haven't
noticed this until now because I've always been spawning it _from_
another xterm! :-)

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

21 years agognome-terminal insists on receiving the selection as COMPOUND_TEXT
simon [Sun, 13 Oct 2002 23:48:31 +0000 (23:48 +0000)]
gnome-terminal insists on receiving the selection as COMPOUND_TEXT
rather than STRING, so we can now supply that too. Pasting both ways
between pterm and gnome-terminal now works.

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

21 years agoAdded two simple command-line arguments: -fn (so I can have my Font
simon [Sun, 13 Oct 2002 12:54:17 +0000 (12:54 +0000)]
Added two simple command-line arguments: -fn (so I can have my Font
Of Choice back :-) and -e to run a command other than $SHELL.

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

21 years agoResizing of pterm now works, and the size information is correctly
simon [Sun, 13 Oct 2002 12:44:01 +0000 (12:44 +0000)]
Resizing of pterm now works, and the size information is correctly
sent on to the pty.

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

21 years agoDeal with the appalling mouse pointer colours. (Why doesn't GTK let
simon [Sun, 13 Oct 2002 12:17:03 +0000 (12:17 +0000)]
Deal with the appalling mouse pointer colours. (Why doesn't GTK let
us select our own mouse pointer fg and bg for standard pointers?
It's ludicrous that we can only do it for pixmap-derived ones. :-( )

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

21 years agoShift-Ins pastes.
simon [Sun, 13 Oct 2002 11:27:39 +0000 (11:27 +0000)]
Shift-Ins pastes.

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

21 years agoSelection now supported in pterm. Required small modifications
simon [Sun, 13 Oct 2002 11:24:25 +0000 (11:24 +0000)]
Selection now supported in pterm. Required small modifications
outside the unix subdir, owing to more things needing to become
platform-dependent.

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

21 years agoFix underline, which I cleverly broke while adding support for the
simon [Sun, 13 Oct 2002 09:57:07 +0000 (09:57 +0000)]
Fix underline, which I cleverly broke while adding support for the
window border. Oops.

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

21 years agoScrollbar now exists and functions; so do Shift-PgUp / Shift-PgDn.
simon [Sun, 13 Oct 2002 09:54:36 +0000 (09:54 +0000)]
Scrollbar now exists and functions; so do Shift-PgUp / Shift-PgDn.

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

21 years agoThe Great Defaults Change (and about time too)! SSH now defaults to
simon [Sun, 13 Oct 2002 08:56:58 +0000 (08:56 +0000)]
The Great Defaults Change (and about time too)! SSH now defaults to
protocol 2, and background-colour erase now defaults to on.

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

21 years agoInitialise some members of the Proxy_Socket structure that were left
jacob [Fri, 11 Oct 2002 12:29:27 +0000 (12:29 +0000)]
Initialise some members of the Proxy_Socket structure that were left
uninitialised. This problem only showed up with mingw builds of PuTTY
(maybe MSVCRT is more forgiving with malloc initialisation than CRTDLL?).
The 'error' field was causing me most trouble, and I think the other two
were necessary too before things started working.
Note however that I don't fully understand the code, and that there are
more uninitialised fields in the structure.

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

21 years agoStop hard-coding a nonstandard font. We now default to `fixed', and
simon [Thu, 10 Oct 2002 14:42:56 +0000 (14:42 +0000)]
Stop hard-coding a nonstandard font. We now default to `fixed', and
pick up the font's real width and height. This means I now _can't_
use my font of choice until I implement some command-line options; I
wonder what feature will appear next :-)

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

21 years agoUpdate to reflect 0.53 release.
jacob [Thu, 10 Oct 2002 14:39:35 +0000 (14:39 +0000)]
Update to reflect 0.53 release.

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

21 years agoAnd that's it! pty.c is now a real pty backend rather than a
simon [Thu, 10 Oct 2002 12:40:05 +0000 (12:40 +0000)]
And that's it! pty.c is now a real pty backend rather than a
loopback interface; pterm now runs $SHELL and gives every impression
of being not a bad terminal emulator. I'm quite pleased with that. :-)

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

21 years agoHalf-decent keyboard handling for pterm. Not very well done - it
simon [Thu, 10 Oct 2002 12:14:05 +0000 (12:14 +0000)]
Half-decent keyboard handling for pterm. Not very well done - it
would have been better to abstract the general key-handling rules
away from the platform-specific keysyms rather than doing clone-
and-hack as I've done - but it'll serve for now. Now all I need is a
real pty back end and pterm should be a just-about-usable prototype.

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

21 years agoTemporary hack which makes vt100 line drawing work in the prototype
simon [Thu, 10 Oct 2002 11:33:46 +0000 (11:33 +0000)]
Temporary hack which makes vt100 line drawing work in the prototype
pterm.

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

21 years agoA sensible minimum of do_text() and do_cursor() is now implemented.
simon [Thu, 10 Oct 2002 10:40:30 +0000 (10:40 +0000)]
A sensible minimum of do_text() and do_cursor() is now implemented.
This means pterm actually _looks_ like the PuTTY terminal emulator
engine, instead of merely giving evidence to the expert eye that
said engine is hidden in there somewhere :-)

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

21 years agoFirst phase of porting. pterm now compiles and runs under Linux+gtk.
simon [Wed, 9 Oct 2002 18:09:42 +0000 (18:09 +0000)]
First phase of porting. pterm now compiles and runs under Linux+gtk.
The current pty.c backend is temporarily a loopback device for
terminal emulator testing, the display handling is only just enough
to show that terminal.c is functioning, the keyboard handling is
laughable, and most features are absent. Next step: bring output and
input up to a plausibly working state, and put a real pty on the
back to create a vaguely usable prototype. Oh, and a scrollbar would
be nice too.
In _theory_ the Windows builds should still work fine after this...

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

21 years agoOops. Dirsep in Makefile.cyg should be / not \.
simon [Mon, 7 Oct 2002 22:21:28 +0000 (22:21 +0000)]
Oops. Dirsep in Makefile.cyg should be / not \.

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

21 years agoRemove "-log" option from Plink. AFAICT this code has been dead since Roman
jacob [Mon, 7 Oct 2002 17:43:07 +0000 (17:43 +0000)]
Remove "-log" option from Plink. AFAICT this code has been dead since Roman
Pompejus' improved logging (Jan 2001).

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

21 years agoFix pscp-cmdline-port-bug for PSFTP too. (Also removes what appears to be a
jacob [Mon, 7 Oct 2002 17:31:52 +0000 (17:31 +0000)]
Fix pscp-cmdline-port-bug for PSFTP too. (Also removes what appears to be a
gratuitous re-implementation of the "-l user" option.)

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

21 years agoFix code which was clobbering people's -P arguments in PSCP (moved it to
jacob [Mon, 7 Oct 2002 16:52:55 +0000 (16:52 +0000)]
Fix code which was clobbering people's -P arguments in PSCP (moved it to
before the deferred command line processing).
Also removed a couple of unused variables.

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

21 years agoBegin destabilisation in the wake of 0.53! This checkin contains the
simon [Mon, 7 Oct 2002 16:45:23 +0000 (16:45 +0000)]
Begin destabilisation in the wake of 0.53! This checkin contains the
beginning of a Unix port. It's nowhere near done, and currently it
won't even compile on Unix. But this represents the start of the
process of separating out platform-specific code, and also contains
the mkfiles.pl changes required to support a Unix makefile and a
non-flat source tree.

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

21 years agoRemove last vestiges of `buggymac' in the Config structure. Might
simon [Tue, 1 Oct 2002 18:30:15 +0000 (18:30 +0000)]
Remove last vestiges of `buggymac' in the Config structure. Might
have been cause of a Plink bug since it no longer got initialised.

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

21 years agoBump the version number on the installer script.
simon [Tue, 1 Oct 2002 17:27:54 +0000 (17:27 +0000)]
Bump the version number on the installer script.

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

21 years agoAdd a chapter explaining common error messages
simon [Tue, 1 Oct 2002 16:27:36 +0000 (16:27 +0000)]
Add a chapter explaining common error messages

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

21 years agoAdd a new SSH2 bug: some servers apparently claim to be able to do
simon [Thu, 26 Sep 2002 18:37:33 +0000 (18:37 +0000)]
Add a new SSH2 bug: some servers apparently claim to be able to do
DH group exchange, but choke when you actually try it. Never
automatically enabled; manual control only.

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

21 years agoAny application using non-modal dialogs must use IsDialogMessage in
simon [Thu, 26 Sep 2002 18:01:21 +0000 (18:01 +0000)]
Any application using non-modal dialogs must use IsDialogMessage in
its main message loop, otherwise keyboard accelerators will not work
in the dialogs. I MUST NOT FORGET THIS AGAIN.

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

21 years agoIf the user asks for the Pageant key list window and it's already
simon [Thu, 26 Sep 2002 17:57:44 +0000 (17:57 +0000)]
If the user asks for the Pageant key list window and it's already
present, bring it to the front.

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

21 years agoFinish replacing `Network error' with `Proxy error' throughout proxy
simon [Tue, 24 Sep 2002 19:27:58 +0000 (19:27 +0000)]
Finish replacing `Network error' with `Proxy error' throughout proxy
code.

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

21 years agoAdd a missing space in an error message.
simon [Tue, 24 Sep 2002 18:44:29 +0000 (18:44 +0000)]
Add a missing space in an error message.

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

21 years agoAdd context help support for Proxy panel
jacob [Mon, 23 Sep 2002 09:55:11 +0000 (09:55 +0000)]
Add context help support for Proxy panel

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

21 years agoCleanups to proxy code: greater robustness in receiving proxy data,
simon [Sat, 21 Sep 2002 16:52:21 +0000 (16:52 +0000)]
Cleanups to proxy code: greater robustness in receiving proxy data,
better error reporting for SOCKS 5 and HTTP proxies.

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

21 years agoSupport username/password authentication in SOCKS 5.
simon [Sat, 21 Sep 2002 16:07:43 +0000 (16:07 +0000)]
Support username/password authentication in SOCKS 5.

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

21 years agoSupport username and password authentication when talking to HTTP
simon [Sat, 21 Sep 2002 14:03:05 +0000 (14:03 +0000)]
Support username and password authentication when talking to HTTP
proxies.

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

21 years agoUpdate README to make it clear it's a _source_ README.
simon [Fri, 20 Sep 2002 18:57:05 +0000 (18:57 +0000)]
Update README to make it clear it's a _source_ README.

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

21 years agoInitial checkin of PuTTY installer script and associated files.
simon [Fri, 20 Sep 2002 18:57:05 +0000 (18:57 +0000)]
Initial checkin of PuTTY installer script and associated files.

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

21 years agoUse memcpy rather than strncpy in sk_addrcopy! How did that happen?
simon [Fri, 20 Sep 2002 17:54:17 +0000 (17:54 +0000)]
Use memcpy rather than strncpy in sk_addrcopy! How did that happen?

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

21 years agoJordan Russell's mysterious workaround for an almost equally
simon [Sun, 15 Sep 2002 22:18:02 +0000 (22:18 +0000)]
Jordan Russell's mysterious workaround for an almost equally
mysterious Windows GDI bug. Looks unlikely to cause any other
trouble and it's pretty small, so it can go in.

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

21 years agoBe proactively pedantic about channel-close irregularities: we no
simon [Sun, 15 Sep 2002 13:31:11 +0000 (13:31 +0000)]
Be proactively pedantic about channel-close irregularities: we no
longer just sit there like a lemon if we can't find the channel in
question, we bomb out and complain. With any luck, remaining
problems of this type should be easier to catch under this policy.

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

21 years agoImprovements to SSH1 channel close handling: track sending and
simon [Sun, 15 Sep 2002 13:24:00 +0000 (13:24 +0000)]
Improvements to SSH1 channel close handling: track sending and
receiving of CLOSE and CLOSE_CONFIRMATION separately rather than
taking short cuts. I believe ssh-1.2.33 sending CLOSE_CONFIRMATION
before CLOSE was causing the remaining incidences of bug
`nonexistent-channel'. (ssh-1.2.33 appears to have unilaterally
decreed that CLOSE and CLOSE_CONFIRMATION are respectively renamed
INPUT_EOF and OUTPUT_CLOSING, hence there is no longer an ordering
constraint on them. Bah.)

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

21 years agoLog file tinkering: copy Event Log entries into the SSH packet log,
simon [Sun, 15 Sep 2002 13:21:32 +0000 (13:21 +0000)]
Log file tinkering: copy Event Log entries into the SSH packet log,
so that when people send us a packet log they never forget to send
the Event Log alongside it :-)

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

21 years agoOpenSSH vs OpenSSL Q: mention older OpenSSH versions
jacob [Sat, 14 Sep 2002 10:24:27 +0000 (10:24 +0000)]
OpenSSH vs OpenSSL Q: mention older OpenSSH versions

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

21 years agoSemi-bug "long-usernames":
jacob [Thu, 12 Sep 2002 16:05:05 +0000 (16:05 +0000)]
Semi-bug "long-usernames":
Bump username storage from 32 to 100 chars. Also replaced a couple of magic
numbers with sizeof in ssh.c.
I don't believe this is going to startle any of the protocols PuTTY talks.

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

21 years agoUpdated usage messages for command-line utilities to reflect new options.
jacob [Wed, 11 Sep 2002 17:30:36 +0000 (17:30 +0000)]
Updated usage messages for command-line utilities to reflect new options.
Updated manual to reflect reality (e.g. usage messages, '-p port' not actually
  implemented, sprinkle references to '-i keyfile').
(I've put "Release 0.53" in the messages; let's hope this doesn't cause a
  flood of "where is 0.53?" email.)
I don't guarantee that the result is entirely sane and sensible in all
  respects, but it is at least consistent.

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

21 years agoNote about separate client-server and server-client encryption in SSH-2
jacob [Tue, 10 Sep 2002 12:30:45 +0000 (12:30 +0000)]
Note about separate client-server and server-client encryption in SSH-2

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

21 years agoIntroduce the Bugs control panel, for overriding PuTTY's server
simon [Sun, 8 Sep 2002 13:28:38 +0000 (13:28 +0000)]
Introduce the Bugs control panel, for overriding PuTTY's server
version number checks to determine the presence or absence of server
bugs.

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

21 years agoUpdate to reflect the last batch of proxy stuff we got from Justin Bradford.
jacob [Sun, 8 Sep 2002 13:25:58 +0000 (13:25 +0000)]
Update to reflect the last batch of proxy stuff we got from Justin Bradford.

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

21 years agoIncrease length limit on SSH1_MSG_DEBUG; 70 chars is short enough to
simon [Sat, 7 Sep 2002 12:27:13 +0000 (12:27 +0000)]
Increase length limit on SSH1_MSG_DEBUG; 70 chars is short enough to
lose vital information in some existing servers' messages.

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

21 years agoAfter trying a succession of tests on Jacob's machine, I think I've
simon [Mon, 2 Sep 2002 13:47:50 +0000 (13:47 +0000)]
After trying a succession of tests on Jacob's machine, I think I've
finally isolated the _important_ difference between Romano Trampus's
working printing.c and my failing one: he ignores the error return
from the first exploratory how-big-does-my-buffer-need-to-be call to
EnumPrinters(), because not having enough buffer space counts as an
error condition. Hence I am officially a klutz, but this should now
work. (Also reverted ENUM_LEVEL to 1, again, because that seems to
be the choice of people whose code works.)

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

21 years agoConvert from CRLF to Unix line endings -- no other change
jacob [Mon, 2 Sep 2002 13:32:37 +0000 (13:32 +0000)]
Convert from CRLF to Unix line endings -- no other change

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

21 years agoMention PocketPC in the WinCE question. I'm not sure how similar WinCE and
jacob [Mon, 2 Sep 2002 13:04:46 +0000 (13:04 +0000)]
Mention PocketPC in the WinCE question. I'm not sure how similar WinCE and
PocketPC are, though -- perhaps it merits its own question. (Although I don't
know of anyone who's looked into it yet.)

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

21 years agoI'm rapidly running out of patience for trying all possible
simon [Sun, 1 Sep 2002 13:12:51 +0000 (13:12 +0000)]
I'm rapidly running out of patience for trying all possible
combinations of options to EnumPrinters() to see which one works,
but here's another one tried at random for now. *sigh*

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

21 years agoAdd BUG_SSH2_DERIVEKEY, present (according to OpenSSH) in ssh.com
simon [Sun, 18 Aug 2002 09:27:15 +0000 (09:27 +0000)]
Add BUG_SSH2_DERIVEKEY, present (according to OpenSSH) in ssh.com
versions 2.0.*, and causing the shared secret not to be included in
key derivation hashes. (This doesn't quite cause a blatant security
hole because the session ID - _derived_ from the shared secret - is
still included.)

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

21 years agoIn SSH2, if decrypting the packet length gave us a negative value,
simon [Sun, 18 Aug 2002 09:10:17 +0000 (09:10 +0000)]
In SSH2, if decrypting the packet length gave us a negative value,
subsequent packet-receiver code would fail to notice anything was
wrong and segfault. Since this is clearly a silly packet length
anyway, we now explicitly reject it as a daft encryption error.

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

21 years agoChanged wording of OpenSSH vs bad OpenSSL FAQ so that it's more obvious it
jacob [Thu, 15 Aug 2002 14:59:48 +0000 (14:59 +0000)]
Changed wording of OpenSSH vs bad OpenSSL FAQ so that it's more obvious it
applies to 3.4p1.

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

21 years agoAlter the Feedback page, so that instead of saying `at some point we
simon [Mon, 12 Aug 2002 14:08:55 +0000 (14:08 +0000)]
Alter the Feedback page, so that instead of saying `at some point we
plan to start blocking executable attachments' it now says we _do_
block executable attachments. :-)

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

21 years agoFinal fixes to keyboard-interactive so it now works with packets
simon [Sun, 11 Aug 2002 13:02:01 +0000 (13:02 +0000)]
Final fixes to keyboard-interactive so it now works with packets
containing more than one prompt instead of less than one, and also
correctly enables echo on prompts that the server requests it for.
In the process I've moved the whole username/password input routine
out into its own function, where it's called independently of which
SSH protocol we're using, so this should even have _saved_ code
size. Rock!

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

21 years agoAnecdotal evidence suggests that a single EnumPrinters() call
simon [Sun, 11 Aug 2002 12:17:25 +0000 (12:17 +0000)]
Anecdotal evidence suggests that a single EnumPrinters() call
specifying both PRINTER_ENUM_LOCAL and PRINTER_ENUM_CONNECTIONS
catches more printers in some circumstances than two EnumPrinters()
calls each specifying just one of them. We'll try it for a bit; if
it goes wrong I might have to put back the two original calls as
well and sort out some means of removing duplicate printers from the
list.

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