Andrew Kudryashov | 12 Mar 2012 13:02
Picon

mksh horizontal scrolling

Could you add option that disables that confusing
horizontal scrolling in line editing?

Thorsten Glaser | 12 Mar 2012 20:03
Picon
Gravatar

Re: mksh horizontal scrolling

Andrew Kudryashov dixit:

>Could you add option that disables that confusing
>horizontal scrolling in line editing?

I had considered it. In fact this is one of the long-standing
wishlist items.

But.

Vertical cursor movement is not portable across terminals.
Implementing it would mean adding a dependency on termcap
or terminfo, pulling in a rather large (~2M) data file and
possibly a huge dynamic library or a shitload of rewritten
(NIH) code. It also would drastically reduce portability.

So, I fear, this cannot be done, even not as shell option.

Sorry,
//mirabilos
--

-- 
  “Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool.”
						-- Edward Burr

Andrew Kudryashov | 13 Mar 2012 12:19
Picon

Re: mksh horizontal scrolling

On Mon, Mar 12, 2012 at 11:03 PM, Thorsten Glaser <tg@...> wrote:
> Vertical cursor movement is not portable across terminals.
> Implementing it would mean adding a dependency on termcap
> or terminfo, pulling in a rather large (~2M) data file and
> possibly a huge dynamic library or a shitload of rewritten
> (NIH) code. It also would drastically reduce portability.

What do you think about doing it original ksh way: implementing it as
disabled by default option and hardcoding ansi sequence (as most
modern terminals are compatible with it)?

Thorsten Glaser | 13 Mar 2012 20:54
Picon
Gravatar

Re: mksh horizontal scrolling

Andrew Kudryashov dixit:

>What do you think about doing it original ksh way: implementing it as
>disabled by default option and hardcoding ansi sequence (as most
>modern terminals are compatible with it)?

They aren’t. Not even for horizontal movement – we had to remove
the ANSI code for "clear from cursor to end of line" because the
modern KDE Konsole application did and still does not support it
so we have to resort to drawing a lot of spaces followed by that
same lot of backspaces instead. With vertical movement it's even
worse.

Sorry,
//mirabilos
--

-- 
  “Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool.”
						-- Edward Burr


Gmane