[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #5835 [arm]: Arm getstr prompt doesn't support delete



#5835: Arm getstr prompt doesn't support delete
--------------------+-------------------------------------------------------
 Reporter:  atagar  |          Owner:  atagar
     Type:  defect  |         Status:  new   
 Priority:  minor   |      Milestone:        
Component:  arm     |        Version:        
 Keywords:          |         Parent:        
   Points:          |   Actualpoints:        
--------------------+-------------------------------------------------------
 Curses getstr prompts are dumb, and we need to teach it how to be a sane
 text editor. Arm's TextInputValidator class [1] supports the left/right
 arrows, home, end, and esc keys. We should add support there for the
 delete key too.

 This should be easy...
 - add a line here to log keycodes
 - run arm, navigate to the interpretor panel, hit the delete key
 - see in the log what the keycode is
 - add a handler for that keycode to delete the next character

 Another minor bug is that hitting backspace when at the start of the line
 deletes the first character.

 [1]
 https://gitweb.torproject.org/arm.git/blob/HEAD:/src/util/textInput.py#l12

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5835>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs