>       * An answer to why if this problem has been around for
>       such a long time (and has been discussed before), that why
>       a solution hasn't been provided.
>       * An actual solution to the problem.

This has nothing to do with whether or not slang writes spaces.  It
has everything to do with how your terminal interprets displayed text
on the screen.  For example, suppose your terminal is a vt100 and
slang sends it the following:

    ESC[1;1H        Move cursor to 1,1
    ESC[K           Erase to end of line
    Foo             Write Foo
    ESC[1;10H       Goto 1,10
    Bar             Write Bar

This will cause the the top line to appear as:

Foo      Bar

Note that no spaces were written between Foo and Bar.  If you select
and paste that into something via the mouse, do you want "Foo Bar"
pasted, or do you want "FooBar"?  

Finally, it is beyond the scope of the screen management library to
second-guess the context of what the application displays on the
screen.  The goal of the library is to manage the display in a way
that is as efficient as possible.  The same comment should apply to the
terminal and the reason this thread has come up is because the
terminal is second-guessing (incorrectly) what is displayed on the
screen.

If you are using rxvt, then apply the patch that I posted earlier.  If
you are using some other terminal, you will have to look elsewhere for
a solution.
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis     Cambridge, MA  02139-4307

Reply via email to