Chromium Code Reviews
DescriptionAdd support for command-line editing to ddbg.
This is implemented using two new files, commando.dart and
terminfo.dart. My hope is to eventually submit commando.dart to pub
for general use once the wrinkles are ironed out.
Commando supports:
- Emacs style editing keys:
^A (home)
^E (end)
^B or left arrow (back)
^F or right arrow (forward)
^K (kill from cursor) [^Y not yet implemented]
^L (clear screen)
^U (clear line)
backspace
- Command line history
^P or up arrow (history previous)
^N or down arrow (history next)
- Tab completion
single-TAB (complete current command)
double-TAB (list all completions)
I have not yet completed reasonable command line completion for ddbg.
Currently only first part of command is completed.
I have only tested this on Mac. It may work on linux and definitely
will not work on Windows. I need to implement a fallback mode for
windows. I am leaving this to another cl, as the command line
debugger, as I believe that the command line debugger is not widely
used yet.
R=hausner@google.com
Committed: https://code.google.com/p/dart/source/detail?r=30585
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #Patch Set 8 : #Patch Set 9 : #
Total comments: 23
Patch Set 10 : #Patch Set 11 : #
Total comments: 8
Patch Set 12 : #Patch Set 13 : #Patch Set 14 : #Patch Set 15 : #
Messages
Total messages: 10 (0 generated)
|
|||||||||||||||||||||||||||||||||||||