Cursor position, selection highlights and mouse clicks are now all
transformed back and forth according to the character position
permutation output from the bidi algorithm. I was expecting that to
be a lot harder.


git-svn-id: svn://svn.tartarus.org/sgt@4915 cda61777-01e9-0310-a592-d414129be87e
Stability fixes (thanks valgrind).


git-svn-id: svn://svn.tartarus.org/sgt@4916 cda61777-01e9-0310-a592-d414129be87e
Implement xterm 256-colour mode.


git-svn-id: svn://svn.tartarus.org/sgt@4917 cda61777-01e9-0310-a592-d414129be87e
Bah, there's always one thing I miss. Correct the background-colour
handling in Unix PuTTY.


git-svn-id: svn://svn.tartarus.org/sgt@4918 cda61777-01e9-0310-a592-d414129be87e
Briefly document the "CP866" manual-entry feature on Windows in the dialog
itself (since we have a bit of room).


git-svn-id: svn://svn.tartarus.org/sgt@4922 cda61777-01e9-0310-a592-d414129be87e
typo in comment


git-svn-id: svn://svn.tartarus.org/sgt@4923 cda61777-01e9-0310-a592-d414129be87e
rm '$Source$' from comments as not meaningful under Subversion


git-svn-id: svn://svn.tartarus.org/sgt@4924 cda61777-01e9-0310-a592-d414129be87e
Some blurb about terminal types and 256-colour xterms. Thanks to Dan
Nicolaescu for the suggestion.


git-svn-id: svn://svn.tartarus.org/sgt@4925 cda61777-01e9-0310-a592-d414129be87e
Nitpick, close bracket.


git-svn-id: svn://svn.tartarus.org/sgt@4926 cda61777-01e9-0310-a592-d414129be87e
Another default-background fix for 256-colour mode


git-svn-id: svn://svn.tartarus.org/sgt@4931 cda61777-01e9-0310-a592-d414129be87e
Fix large memory leak introduced in the r4915 bidi changes.


git-svn-id: svn://svn.tartarus.org/sgt@4936 cda61777-01e9-0310-a592-d414129be87e
term_bidi_cache_store() now has a need to distinguish between the
_width_ of a terminal line (number of character cell positions) and
its _size_ (number of termchars), since of course these differ in
the presence of combining characters.


git-svn-id: svn://svn.tartarus.org/sgt@4938 cda61777-01e9-0310-a592-d414129be87e
Kimmo Parviainen points out that SSH software version strings have
restrictions on the use of hyphens and spaces.


git-svn-id: svn://svn.tartarus.org/sgt@4939 cda61777-01e9-0310-a592-d414129be87e
And now I look at it, the latest draft also says version strings
should be followed by \r\n, not just \n.


git-svn-id: svn://svn.tartarus.org/sgt@4940 cda61777-01e9-0310-a592-d414129be87e
Bah. Ben points out that SSH_1_ version strings should still end in
\n, and also that `\r' and `\n' don't mean what I think they mean on
all compilers (Mac reverses them).


git-svn-id: svn://svn.tartarus.org/sgt@4941 cda61777-01e9-0310-a592-d414129be87e
Mention our assumptions about the execution character set.  Not very
well-written, since my brain is largely absent today.


git-svn-id: svn://svn.tartarus.org/sgt@4945 cda61777-01e9-0310-a592-d414129be87e
NULL a couple of members after freeing them in ssh_free(). In particular,
should stop ssh_do_close() accessing freed ssh->channels when invoked later
from ssh_free(). Spotted by Fred Sauer.

(Perhaps this is the cause of the crashes people have been reporting on
abnormal closures such as `Software caused connection abort'? I've not been
able to test this.)


git-svn-id: svn://svn.tartarus.org/sgt@4946 cda61777-01e9-0310-a592-d414129be87e
\n and \r need double backslashes in Halibut.


git-svn-id: svn://svn.tartarus.org/sgt@4947 cda61777-01e9-0310-a592-d414129be87e
Fix segfault when HOME not set on Unix.


git-svn-id: svn://svn.tartarus.org/sgt@4948 cda61777-01e9-0310-a592-d414129be87e
Bidi stability work. I _think_ I've now removed all the failures of
array bounds checking.


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