Hello,

I'm combining readline and ncurses in the same program. I'm using a custom
rl_redisplay_function that prints rl_line_buffer ("mvprintw(x, y,
rl_line_buffer)") and moves the cursor to rl_point ("move(y, rl_point)").

Since rl_point is a byte rather than character offset, this breaks for
strings with multibyte characters (as well as for other cases like
combining characters). It would be handy if readline exported its idea of
where the cursor should be (e.g., rl_cursor_col) to avoid code duplication.
Thoughts?

Cheers,
Ulf
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to