Changes between Initial Version and Version 1 of Ticket #48807, comment 137


Ignore:
Timestamp:
Sep 10, 2017, 11:07:38 PM (7 years ago)
Author:
jmroot (Joshua Root)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48807, comment 137

    initial v1  
    11Further findings:
    22 * I'm leaning towards the missing deprep being a bug in libedit's readline emulation. The readline docs say that rl_callback_handler_install will prep the terminal and rl_callback_handler_remove will deprep it. They are silent on whether an explicit call to rl_prep_terminal should need a matching call to rl_deprep_terminal, but the actual behaviour of readline is that it does not, so that's what libedit should emulate.
    3  * What's going in with the prompt is that after a line is entered by the user, libedit prints a new prompt before python has a chance to print its output. Just using the readline() function doesn't have this issue, only the callback-based API. I'm attaching a reduced test program.
     3 * What's going on with the prompt is that after a line is entered by the user, libedit prints a new prompt before python has a chance to print its output. Just using the readline() function doesn't have this issue, only the callback-based API. I'm attaching a reduced test program.