I want to use viat startup adb shell. Running vi is easy. However, I found that the key ESCdoes not seem to pass, so I cannot exit insert mode.
In a broader sense, I do not see that I can send a character ESCto the adb shell at all. I looked through the website quite carefully and could not find anyone with a similar problem (and even more so with the answer).
I am running VRUFNK1 on a Samsung S4. On the computer, I run the adb shell command from Cygwin on Windows.
Ideas ???
UPDATE: Here are some possible tips.
- The adb shell does not seem to be a problem. I can capture the ESC in the file being loaded
od -cb > file, so the ESC seems to get into the program running under the adb shell. - All commands receive an echo in my "adb shell" (as if set -v is enabled, but it is not).
- I notice that the input does not seem to be sent to the adb shell from my cygwin shell in "raw mode", i.e. any text I type gets buffered locally until I hit the carriage return - then the whole line will be sent, I'm not sure why this would make ESC inefficient, but, of course, vi does not expect it to get input like this image and possibly its indicator of something unusual in my environment.
# 1, bash (Bash X), , , bash . ESC " " bash (Bash X) ( set -o vi), . ESC, k, , ( ); "k" "k" ( ). , (!).
2: ...
stty " adb" , cygwin bash, .
: - vim, .
- (
:so <filename>). - , "vi" ( "vim" ).
:
a <cr> ESC, "vi" - ESC , . , ( TERM ), .
, , . telnet; . Ssh , . " adb" /sbin/adbd - , - . - , ( , S4 ). .
, :
- adb - ( root, Busybox "vi" ) (BTW, "vi" - ssh. )
- - , "vi" " adb" , (, -, "adb shell" vi - .
, .
3: XDA
XDA. , ( , 2010 ). .
XDA Link 1
XDA Link 2
XDA Link 3
, / adb, , :
ADB