]> asedeno.scripts.mit.edu Git - PuTTY.git/log
PuTTY.git
21 years agoSSH2 MACs now use dynamically allocated contexts.
Simon Tatham [Fri, 25 Oct 2002 12:51:28 +0000 (12:51 +0000)]
SSH2 MACs now use dynamically allocated contexts.

[originally from svn r2131]

21 years agoSSH ciphers now use dynamically allocated contexts.
Simon Tatham [Fri, 25 Oct 2002 12:35:22 +0000 (12:35 +0000)]
SSH ciphers now use dynamically allocated contexts.

[originally from svn r2130]

21 years agoFix the nasty flashing-light-grey-on-resize problem, after MCV
Simon Tatham [Fri, 25 Oct 2002 11:58:59 +0000 (11:58 +0000)]
Fix the nasty flashing-light-grey-on-resize problem, after MCV
helpfully alerted me to the existence of gdk_window_set_background().

[originally from svn r2129]

21 years agopty backend now supports the changed function interface, so pterm
Simon Tatham [Fri, 25 Oct 2002 11:50:51 +0000 (11:50 +0000)]
pty backend now supports the changed function interface, so pterm
now compiles and runs again after the major destabilisation.
Unfortunately it wasn't feasible to actually encapsulate all of the
pty backend's data, since the utmp helper and the need to fork and
drop privileges before doing anything else at all rather confuses
matters. So the data handle passed around to the pty backend is a
null pointer, and the pty backend is just as global-ridden as it
always has been. Shame, but such is life.

[originally from svn r2128]

21 years agoMajor destabilisation, phase 2. This time it's the backends' turn:
Simon Tatham [Fri, 25 Oct 2002 11:30:33 +0000 (11:30 +0000)]
Major destabilisation, phase 2. This time it's the backends' turn:
each backend now stores all its internal variables in a big struct,
and each backend function gets a pointer to this struct passed to
it. This still isn't the end of the work - lots of subsidiary things
still use globals, notably all the cipher and compressor modules and
the X11 forwarding authentication stuff. But ssh.c itself has now
been transformed, and that was the really painful bit, so from here
on it all ought to be a sequence of much smaller and simpler pieces
of work.

[originally from svn r2127]

21 years agoNeed to stub frontend_keypress() in console.c as well as window.c.
Simon Tatham [Thu, 24 Oct 2002 14:48:08 +0000 (14:48 +0000)]
Need to stub frontend_keypress() in console.c as well as window.c.

[originally from svn r2126]

21 years agoOops - repercussions of the close-on-exit stuff which I forgot to
Simon Tatham [Thu, 24 Oct 2002 14:12:55 +0000 (14:12 +0000)]
Oops - repercussions of the close-on-exit stuff which I forgot to
check in. I must stop doing my Unix checkins in the Unix subdir :-(

[originally from svn r2125]

21 years agoMinor compiler nits:
Jacob Nevins [Wed, 23 Oct 2002 14:24:40 +0000 (14:24 +0000)]
Minor compiler nits:
 - use smalloc/sfree, not malloc/free
 - include <ctype.h>
 - include <string.h> (although this doesn't shut the compiler up about
   non-ANSI stricmp/strnicmp)

[originally from svn r2121]

21 years agoImplement handling of all Close On Exit modes. Default is to close
Simon Tatham [Wed, 23 Oct 2002 14:21:12 +0000 (14:21 +0000)]
Implement handling of all Close On Exit modes. Default is to close
only on clean exit, which is a departure from most xterm-alikes but
Ian reckons people will love me for it. If this turns out to be
wrong, we can always change the default for Unix.

[originally from svn r2120]

21 years agoFixes for (Backend)->size() changes -- internal declarations didn't include
Jacob Nevins [Wed, 23 Oct 2002 14:03:11 +0000 (14:03 +0000)]
Fixes for (Backend)->size() changes -- internal declarations didn't include
new arguments and neither did internal calls.

[originally from svn r2119]

21 years agoRemove apparently unnecessary declaration of typedef Config from winstuff.h --
Jacob Nevins [Wed, 23 Oct 2002 13:46:59 +0000 (13:46 +0000)]
Remove apparently unnecessary declaration of typedef Config from winstuff.h --
it was breaking mingw builds (gcc being more picky than Visual C).

[originally from svn r2118]

21 years agoCleanups from yesterday's destabilisation: lots of stuff in
Simon Tatham [Wed, 23 Oct 2002 12:41:35 +0000 (12:41 +0000)]
Cleanups from yesterday's destabilisation: lots of stuff in
terminal.c was apparently relying on implicit initialisation to
zero, and also I've removed the backends' dependency on terminal.h
by having terminal sizes explicitly passed in to back->size().

[originally from svn r2117]

21 years agoOops. Forgot to check in terminal.h from yesterday's work. There's
Simon Tatham [Wed, 23 Oct 2002 09:11:36 +0000 (09:11 +0000)]
Oops. Forgot to check in terminal.h from yesterday's work. There's
always one :-/

[originally from svn r2116]

21 years agoMajor destabilisation, phase 1. In this phase I've moved (I think)
Simon Tatham [Tue, 22 Oct 2002 16:11:33 +0000 (16:11 +0000)]
Major destabilisation, phase 1. In this phase I've moved (I think)
all the global and function-static variables out of terminal.c into
a dynamically allocated data structure. Note that this does not yet
confer the ability to run more than one of them in the same process,
because other things (the line discipline, the back end) are still
global, and also in particular the address of the dynamically
allocated terminal-data structure is held in a global variable
`term'. But what I've got here represents a reasonable stopping
point at which to check things in. In _theory_ this should all still
work happily, on both Unix and Windows. In practice, who knows?

[originally from svn r2115]

21 years agoMake -ut work the right way round! :-)
Simon Tatham [Tue, 22 Oct 2002 13:27:58 +0000 (13:27 +0000)]
Make -ut work the right way round! :-)

[originally from svn r2114]

21 years agoStop `pterm -ut-' leaving the unnecessary utmp helper as a zombie
Simon Tatham [Tue, 22 Oct 2002 13:26:57 +0000 (13:26 +0000)]
Stop `pterm -ut-' leaving the unnecessary utmp helper as a zombie
process (Debian bug #165887).

[originally from svn r2113]

21 years agoThanks to Richard B for pointing out that xterm has its own variants
Simon Tatham [Tue, 22 Oct 2002 10:31:23 +0000 (10:31 +0000)]
Thanks to Richard B for pointing out that xterm has its own variants
of the alternate-screen and save-cursor control sequences, with
subtly different semantics and entertaining interactions with the
usual ones. No thanks to xterm for doing so in the first place :-(
This checkin should sort it all out.

[originally from svn r2112]

21 years agoJustin Bradford's patch for increased proxy robustness.
Simon Tatham [Tue, 22 Oct 2002 09:40:38 +0000 (09:40 +0000)]
Justin Bradford's patch for increased proxy robustness.

[originally from svn r2111]

21 years agoMake sure SIGINT and SIGQUIT haven't been nobbled in our child
Simon Tatham [Mon, 21 Oct 2002 23:01:34 +0000 (23:01 +0000)]
Make sure SIGINT and SIGQUIT haven't been nobbled in our child
process by weird POSIX-required shell behaviour.

[originally from svn r2110]

21 years agoDon't bother closing fds 0-2 before dup2ing over them; there's no
Simon Tatham [Mon, 21 Oct 2002 23:00:18 +0000 (23:00 +0000)]
Don't bother closing fds 0-2 before dup2ing over them; there's no
need, and it means we always have a valid open stderr.

[originally from svn r2109]

21 years agoVT100 line drawing characters should only happen between 0x5F and
Simon Tatham [Mon, 21 Oct 2002 22:59:14 +0000 (22:59 +0000)]
VT100 line drawing characters should only happen between 0x5F and
0x7E, not everywhere else. Silly me thought nobody would bother to
depend on this :-)

[originally from svn r2108]

21 years agoImplement Richard's really clever idea about bell overload mode:
Simon Tatham [Sun, 20 Oct 2002 13:23:30 +0000 (13:23 +0000)]
Implement Richard's really clever idea about bell overload mode:
it's automatically deactivated by any keypress, so that command-line
beeps from (e.g.) filename completion don't suddenly stop occurring,
but it still provides a rapid response to an accidental spewing of a
binary to your terminal.

[originally from svn r2107]

21 years agoScrollOnKey wasn't working because I failed to set seen_key_event in
Simon Tatham [Sun, 20 Oct 2002 12:44:29 +0000 (12:44 +0000)]
ScrollOnKey wasn't working because I failed to set seen_key_event in
pterm.c.

[originally from svn r2106]

21 years agoReject unrecognised command-line options; thanks rjk.
Simon Tatham [Fri, 18 Oct 2002 15:26:54 +0000 (15:26 +0000)]
Reject unrecognised command-line options; thanks rjk.

[originally from svn r2102]

21 years agoFix typo in man page. Thanks Richard.
Simon Tatham [Fri, 18 Oct 2002 10:38:22 +0000 (10:38 +0000)]
Fix typo in man page. Thanks Richard.

[originally from svn r2101]

21 years agoOops - that fix wasn't _quite_ right, since it killed all
Simon Tatham [Thu, 17 Oct 2002 16:58:24 +0000 (16:58 +0000)]
Oops - that fix wasn't _quite_ right, since it killed all
non-function keys completely :-/

[originally from svn r2096]

21 years agoMake the shadow bold offset configurable, after discovering that
Simon Tatham [Thu, 17 Oct 2002 16:51:01 +0000 (16:51 +0000)]
Make the shadow bold offset configurable, after discovering that
7x13 goes the other way to all other X fonts I've ever seen. (Arrgh.)

[originally from svn r2095]

21 years agoThis should fix the bug causing Alt-Shift to generate Escape.
Simon Tatham [Thu, 17 Oct 2002 16:45:17 +0000 (16:45 +0000)]
This should fix the bug causing Alt-Shift to generate Escape.

[originally from svn r2093]

21 years agoAdd the -xrm command-line option, to allow specification of an
Simon Tatham [Wed, 16 Oct 2002 22:54:58 +0000 (22:54 +0000)]
Add the -xrm command-line option, to allow specification of an
arbitrary X resource which doesn't have a dedicated command-line
option.

[originally from svn r2089]

21 years agoAdd a man page.
Simon Tatham [Wed, 16 Oct 2002 22:43:35 +0000 (22:43 +0000)]
Add a man page.

[originally from svn r2088]

21 years agoTemporarily change the default for cut-and-paste of line drawing
Simon Tatham [Wed, 16 Oct 2002 16:32:17 +0000 (16:32 +0000)]
Temporarily change the default for cut-and-paste of line drawing
characters, under Unix only, because the stub Unicode layer makes
the usual default break moderately painfully.

[originally from svn r2087]

21 years agoA few more command-line options.
Simon Tatham [Wed, 16 Oct 2002 16:00:38 +0000 (16:00 +0000)]
A few more command-line options.

[originally from svn r2086]

21 years agoOops, forgot to add BoldFont to the settings module.
Simon Tatham [Wed, 16 Oct 2002 14:32:21 +0000 (14:32 +0000)]
Oops, forgot to add BoldFont to the settings module.

[originally from svn r2085]

21 years agoImplement reading of X resources, and -name to change the name under
Simon Tatham [Wed, 16 Oct 2002 14:32:06 +0000 (14:32 +0000)]
Implement reading of X resources, and -name to change the name under
which to look them up.

[originally from svn r2084]

21 years agoAdd a file to the source archive mentioning the version number of
Simon Tatham [Wed, 16 Oct 2002 12:30:51 +0000 (12:30 +0000)]
Add a file to the source archive mentioning the version number of
the latest release. This is so that .tar.gz snapshots for the Unix
port can be versioned as `0.53-20021016' or similar, meaning that
(e.g.) Debian version numbering can be monotonic between releases
and snapshots.

[originally from svn r2083]

21 years agoFix utmp and pty handling so that GTK never complains about running
Simon Tatham [Wed, 16 Oct 2002 12:17:51 +0000 (12:17 +0000)]
Fix utmp and pty handling so that GTK never complains about running
set[ug]id. All privs-requiring pty operations are done at the very
start of the run, then privs are dropped before initialising GTK.
Utmp is handled by forking a still-privileged subprocess at this
point, and later asking it (through a pipe) to stamp utmp. The
subprocess cleans up utmp on exit, which has the additional
advantage that if the main pterm process suffers some sort of
unexpected termination (up to and including SIGKILL) the subprocess
can still mop up utmp.

[originally from svn r2082]

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

[originally from svn r2080]

21 years agoBug `shift-backspace': whichever of ^H and ^? is configured for
Simon Tatham [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.

[originally from svn r2079]

21 years agoOops - check in leftovers from yesterday's development. That's what
Simon Tatham [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 :-/

[originally from svn r2078]

21 years agoSupport bold-as-font, by means of a separate bold font (if one was
Simon Tatham [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.

[originally from svn r2077]

21 years agoConfigure the pty so that it agrees with our idea of whether
Simon Tatham [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 ^?.

[originally from svn r2076]

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

[originally from svn r2075]

21 years agoIf we can't load the specified font, give an error message rather
Simon Tatham [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.

[originally from svn r2074]

21 years agoPrinter support: cfg.printer is assumed to be a Unix command through
Simon Tatham [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.

[originally from svn r2073]

21 years agoScrollbar can now be configured to go on the left (although the
Simon Tatham [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).

[originally from svn r2072]

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

[originally from svn r2071]

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

[originally from svn r2070]

21 years agoSupport scrolling with the mouse wheel (X servers apparently usually
Simon Tatham [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.

[originally from svn r2069]

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

[originally from svn r2068]

21 years agoSupport for blinking text and blinking cursor. Won't actually be
Simon Tatham [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.

[originally from svn r2067]

21 years agoUse the appalling gnome-terminal hack for server-controlled resizes
Simon Tatham [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.

[originally from svn r2066]

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

[originally from svn r2065]

21 years agoDon't forget to initialise the pixel size parameters of the window
Simon Tatham [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...

[originally from svn r2064]

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

[originally from svn r2063]

21 years agoRichard's patch to make the scrollbar configurably absent. (Still
Simon Tatham [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... :-)

[originally from svn r2062]

21 years agoSupport for all the server-side window configuration requests,
Simon Tatham [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...

[originally from svn r2061]

21 years agoIntroduce the ability to control whether the shell run in pterm is a
Simon Tatham [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.

[originally from svn r2060]

21 years agoFinish up utmp processing: add the -ut- command-line option to
Simon Tatham [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.)

[originally from svn r2059]

21 years agoSupport for utmp, wtmp and lastlog. Probably not terribly portable
Simon Tatham [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.

[originally from svn r2058]

21 years agoDeal with the warnings generated when passing a pointer-to-enum to
Simon Tatham [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.

[originally from svn r2057]

21 years agoSupport for BSD-style pty devices. Tested under Linux; might need
Simon Tatham [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.

[originally from svn r2056]

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

[originally from svn r2055]

21 years agoSupport for line attributes: ESC #3, #4 and #6 for double-width and
Simon Tatham [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.

[originally from svn r2054]

21 years agoDon't cause the mouse pointer to reappear just because it's changed
Simon Tatham [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.

[originally from svn r2053]

21 years agoOnly engage a GTK idle function when absolutely necessary, otherwise
Simon Tatham [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.

[originally from svn r2052]

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

[originally from svn r2051]

21 years agoAdd the -log option, which activates full session logging. Should be
Simon Tatham [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...

[originally from svn r2050]

21 years agoBell overload was working in principle, but wasn't scaled to Unix's
Simon Tatham [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.

[originally from svn r2049]

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

[originally from svn r2048]

21 years agoDon't forget to call term_paste() when we get the chance, or big
Simon Tatham [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.)

[originally from svn r2047]

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

[originally from svn r2046]

21 years agoSupport for hiding the mouse pointer on keypresses. Currently
Simon Tatham [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.

[originally from svn r2045]

21 years agoxterm-class programs should exit when their primary child process
Simon Tatham [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.

[originally from svn r2044]

21 years agoSEL_NL is different between Windows and Unix; move it out into the
Simon Tatham [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.

[originally from svn r2043]

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

[originally from svn r2042]

21 years agoVarious faffs in the pty allocation process to get controlling
Simon Tatham [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.

[originally from svn r2041]

21 years agoWindow title configurability: -T to set it from the command line,
Simon Tatham [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.

[originally from svn r2040]

21 years agoDon't forget to set $TERM when we spawn the pty. Of course I haven't
Simon Tatham [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! :-)

[originally from svn r2039]

21 years agognome-terminal insists on receiving the selection as COMPOUND_TEXT
Simon Tatham [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.

[originally from svn r2038]

21 years agoAdded two simple command-line arguments: -fn (so I can have my Font
Simon Tatham [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.

[originally from svn r2037]

21 years agoResizing of pterm now works, and the size information is correctly
Simon Tatham [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.

[originally from svn r2036]

21 years agoDeal with the appalling mouse pointer colours. (Why doesn't GTK let
Simon Tatham [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. :-( )

[originally from svn r2035]

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

[originally from svn r2034]

21 years agoSelection now supported in pterm. Required small modifications
Simon Tatham [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.

[originally from svn r2033]

21 years agoFix underline, which I cleverly broke while adding support for the
Simon Tatham [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.

[originally from svn r2032]

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

[originally from svn r2031]

21 years agoThe Great Defaults Change (and about time too)! SSH now defaults to
Simon Tatham [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.

[originally from svn r2030]

21 years agoInitialise some members of the Proxy_Socket structure that were left
Jacob Nevins [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.

[originally from svn r2029]

21 years agoStop hard-coding a nonstandard font. We now default to `fixed', and
Simon Tatham [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 :-)

[originally from svn r2027]

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

[originally from svn r2026]

21 years agoAnd that's it! pty.c is now a real pty backend rather than a
Simon Tatham [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. :-)

[originally from svn r2015]

21 years agoHalf-decent keyboard handling for pterm. Not very well done - it
Simon Tatham [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.

[originally from svn r2013]

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

[originally from svn r2012]

21 years agoA sensible minimum of do_text() and do_cursor() is now implemented.
Simon Tatham [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 :-)

[originally from svn r2011]

21 years agoFirst phase of porting. pterm now compiles and runs under Linux+gtk.
Simon Tatham [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...

[originally from svn r2010]

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

[originally from svn r2004]

21 years agoRemove "-log" option from Plink. AFAICT this code has been dead since Roman
Jacob Nevins [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).

[originally from svn r2000]

21 years agoFix pscp-cmdline-port-bug for PSFTP too. (Also removes what appears to be a
Jacob Nevins [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.)

[originally from svn r1997]

21 years agoFix code which was clobbering people's -P arguments in PSCP (moved it to
Jacob Nevins [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.

[originally from svn r1994]

21 years agoBegin destabilisation in the wake of 0.53! This checkin contains the
Simon Tatham [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.

[originally from svn r1993]