No description
Find a file
Spencer Low 50184062b8 adb shell: Win32: fix Ctrl-C, tab completion, line editing, server echo
The 'adb shell' command on Windows has had problems:

* Ctrl-C killed the local Windows adb.exe process instead of sending the
Ctrl-C to the Android device.

* Local echo was enabled, causing everything typed to be displayed twice.

* Line input was enabled, so the Android device only received input
after hitting enter. This meant that tab completion did not work because
the tab wasn't seen by the shell until pressing enter.

* The usual input line editing keys did not work (Ctrl-A to go to the
beginning of the line, etc.).

This commit fixes these issues by reconfiguring the Win32 console and
then translating input into what Gnome Terminal would send, in effect
somewhat emulating a Unix terminal.

This does not fix all Win32 console issues, but is designed to be better
than what we had before, and to make the common day-to-day usage much
more comfortable and usable.

Change-Id: Idb10e0b634e27002804fa99c09a64e7176cf7c09
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-03-26 12:26:08 -07:00
adb adb shell: Win32: fix Ctrl-C, tab completion, line editing, server echo 2015-03-26 12:26:08 -07:00
adf libadf: enable -Werror 2015-03-10 15:14:38 -07:00
base Move gettid() into libcutils. 2015-03-23 13:01:21 -07:00
cpio cpio: Turn on -Werror 2014-05-23 09:48:09 -07:00
debuggerd Print the build id of shared libraries if present. 2015-03-17 15:13:35 -07:00
fastboot Merge "fastboot/sparse: propagate error code" 2015-03-19 19:05:24 +00:00
fs_mgr Add init command to set verified properties 2015-03-19 10:11:17 +00:00
gpttool gpttool: turn on -Werror 2014-05-05 10:30:04 -07:00
healthd am 492dd1e5: Merge "Remove obsolete BUILD_TINY_ANDROID check from healthd makefile" 2015-01-24 05:33:56 +00:00
include Move gettid() into libcutils. 2015-03-23 13:01:21 -07:00
init Add missing parenthesis in init log message. 2015-03-23 08:07:19 -07:00
libbacktrace Add variable length read to Backtrace. 2015-03-17 14:56:02 -07:00
libcutils (Probably) fix the mac build. 2015-03-23 14:48:05 -07:00
libdiskconfig am eb075e28: am c8179498: am 2f62edf7: Merge "libdiskconfig: Turn on -Werror" 2014-05-21 21:19:27 +00:00
libion Add missing <malloc.h> and <string.h> includes. 2015-01-28 11:37:57 -08:00
liblog liblog: reject empty logging messages 2015-03-18 23:43:42 +00:00
libmemtrack Add missing <malloc.h> and <string.h> includes. 2015-01-28 11:37:57 -08:00
libmincrypt Disable clang optimization that has segmentation fault. 2014-12-17 14:59:53 -08:00
libnativebridge am 0d385d1c: Merge "Track renaming of initUnchangeableSystemProperty." 2015-02-10 16:54:35 +00:00
libnetutils Merge "Improving the time to wait for assigning IP address" 2015-03-19 00:26:30 +00:00
libpixelflinger pixelflinger: make self-contained 2015-03-19 12:34:35 -07:00
libprocessgroup Fix missing #includes in system/core. 2014-12-29 12:24:25 -08:00
libsparse fastboot/sparse: propagate error code 2015-03-01 11:54:02 +01:00
libsuspend Libsuspend: Remove unused variable 2014-11-24 18:53:44 -08:00
libsync Add missing <malloc.h> and <string.h> includes. 2015-01-28 11:37:57 -08:00
libsysutils Add missing <malloc.h> and <string.h> includes. 2015-01-28 11:37:57 -08:00
libusbhost am 0d8943c2: am e4c5b614: Merge "libusbhost: Fix IOCTL call during usb_request_cancel" 2014-08-12 21:05:43 +00:00
libutils Revert "Revert "Create libbase."" 2015-03-16 10:08:46 -07:00
libziparchive libziparchive: fix extraction of >2GiB images 2015-03-23 14:30:40 -07:00
lmkd Lmkd: Fix unused variables 2014-11-24 20:32:42 -08:00
logcat Merge "logcat: test: logcat.logrotate fails" 2015-03-12 20:15:17 +00:00
logd logd: statistics: missing comma 2015-03-20 13:46:00 -07:00
logwrapper Fix "ptsname is not thread-safe; use ptsname_r instead" build break. 2014-07-29 11:06:53 -07:00
mkbootimg mkbootimg: turn on -Werror 2014-05-05 10:30:04 -07:00
reboot reboot: Turn on -Werror 2014-05-21 12:58:38 -07:00
rootdir Switch init over to _PATH_DEFPATH. 2015-03-17 20:01:13 -07:00
run-as run-as: build 1161573 failure 2014-05-08 21:18:23 +00:00
sdcard sdcard doesn't need to explicitly ask for libc! 2015-03-16 20:12:58 -07:00
toolbox Remove /dev/alarm cruft from uptime. 2015-03-20 11:14:50 -07:00
.gitignore Don't compile abort_socket.c for host targets. It is only intended to run on Linux targets. 2009-05-26 13:23:23 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Add a CleanSpec for grep/toolbox. 2015-03-22 18:04:54 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00