classification
Title: curses.textpad.Textbox backtrace support
Type: enhancement Stage: test needed
Components: Extension Modules Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: emeaudroid.emeaudroid, ned.deily, ragreener
Priority: normal Keywords: easy

Created on 2012-10-14 14:38 by emeaudroid.emeaudroid, last changed 2019-03-15 22:29 by BreamoreBoy.

Messages (3)
msg172888 - (view) Author: emeaudroid emeaudroid (emeaudroid.emeaudroid) Date: 2012-10-14 14:38
python: 2.6.6
curses' revision: 61064 2008-02-25 16:29:58Z andrew.kuchling


line 93 and 102 of curses/textpad.py

could you replace the backspace's specific chars codes by using this dedicated curses' function retrieving the currently in-use char's code ?

ord( curses.erasechar( ))

this one would make specific erase char specified to term supported, unlike curses.ascii.BS, curses.KEY_BACKSPACE that are specifics to most configurations indeed.

at least adding the curses.ascii.DEL char's code seems legit na ?
msg223108 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-07-15 13:44
@emeaudroid please accept our apologies for the delay in getting back to you.  Can someone take a look at this please as I don't have a *nix box to play with.
msg237423 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2015-03-07 07:13
This has also been reported in Issue23598 including a patch to add DEL as suggested.  I have little experience with curses so I don't have any insight as to pros and cons of using erasechar() rather than the hardcoded BS and DEL chars.  A test would be nice if someone has a creative approach for creating one.  I see that a patch for Issue13051 contains a suggested test for another problem with curses.textpad; perhaps it could be adapted.
History
Date User Action Args
2019-03-15 22:29:17BreamoreBoysetnosy: - BreamoreBoy
2015-03-07 07:14:04ned.deilysetmessages: - msg237420
2015-03-07 07:13:53ned.deilysetmessages: + msg237423
2015-03-07 07:12:27ned.deilylinkissue23598 superseder
2015-03-07 07:11:52ned.deilysetnosy: + ragreener, ned.deily
messages: + msg237420

keywords: + easy
stage: test needed
2014-07-15 13:44:36BreamoreBoysetnosy: + BreamoreBoy

messages: + msg223108
versions: + Python 3.5, - Python 2.6
2012-10-14 14:38:05emeaudroid.emeaudroidcreate