[issue1175004] Export more libreadline API functions

2015-08-01 Thread Martin Panter

Martin Panter added the comment:

rl_forced_update_display() wrappers already proposed in Issue 23067

--
dependencies: +Export readline forced_update_display

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1175004] Export more libreadline API functions

2015-08-01 Thread Martin Panter

Martin Panter added the comment:

Simon: See Issue 24266 about recovering after interrupting the search mode.

Also, I think Issue 1744456 wraps a different part of the Readline API 
(rl_callback_ for non-blocking interface) to the patch here (rl_add_defun for 
adding a custom “key binding” or something). So the two patches could be 
considered independently.

--
nosy: +vadmium

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1175004] Export more libreadline API functions

2010-09-23 Thread strank

Changes by strank :


--
nosy: +strank

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1175004] Export more libreadline API functions

2010-09-17 Thread Ned Deily

Ned Deily  added the comment:

Issue1744456 contains a different patch to implement readline callbacks.  
Suggest that anyone moving forward with this review both patches.

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1175004] Export more libreadline API functions

2010-08-21 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 3.2 -Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1175004] Export more libreadline API functions

2009-09-26 Thread Simon Arlott

Simon Arlott  added the comment:

Access to rl_reset_line_state (and possibly others in the Redisplay
section) are also required, otherwise it's not possible to recover from
KeyboardInterrupt during raw_input() if readline isn't in the expected
editing mode.

Example:
  1. call raw_input() and use ctrl-R (reverse-i-search)
  2. catch a KeyboardInterrupt
  3. call raw_input() again

The input editing is still in reverse-i-search mode.
This makes it impractical to use raw_input() again after
KeyboardInterrupt because the input buffer may be in an unknown state.
If the history is modified then the search will break and character
input will appear to be ignored.

Note: It may be desirable to stay in this mode and call raw_input()
again, ignoring KeyboardInterrupt entirely (although the prompt is
redisplayed when exiting search mode so that doesn't currently work
cleanly), so it can't just auto-reset on KeyboardInterrupt.

The documentation should explain how to resume after KeyboardInterrupt
safely.

--
nosy: +lp0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com