12 Mar 2012 13:02
12 Mar 2012 20:03
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
13 Mar 2012 12:19
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)?
13 Mar 2012 20:54
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
RSS Feed