[Bug-readline] readline and the more command don't play well together
From:
Matt Fischer
Subject:
[Bug-readline] readline and the more command don't play well together
Date:
Thu, 25 Jan 2007 16:58:25 -0700
I am using GNU readline (ia64, 5.2-2 debian unstable). My app uses popen to dump some text files to "more -d". In some boundary cases, where the lines are just so, the "--more--" message is still on the screen when my prompt comes back (example at bottom).
I figured that I could use some of the reset functionality to reset readline and the terminal so that it would clear the extranneous --more-- from the screen and have a "clean" prompt.
I essentially tried every reset/clear related function that I saw in the documentation, and nothing helped. Specifically I called:
rl_reset_line_state() rl_reset_terminal("vt100") rl_on_new_line() rl_on_new_line_with_prompt() --> this segfaulted.... rl_cleanup_after_signal() in combination with rl_reset_after_signal() --> this segfaulted too and several others, in various combinations..
It seems that "more -d" is upsetting the terminal settings, but why wouldn't rl_reset_* clear this problem up?
Here's what it looks like on my screen, my prompt is "here>". here>e--[Press space to continue, 'q' to quit.]
[Prev in Thread]
Current Thread
[Next in Thread]
[Bug-readline] readline and the more command don't play well together,
Matt Fischer<=