aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-03-15 10:07:14 +0000
committerRon Yorston <rmy@pobox.com>2019-03-15 10:07:14 +0000
commit79c85ec59075b5ead415a4713bd72445546dcf8e (patch)
tree614d5f43da34da207de8be08d186cf78169cf859 /win32
parentec02b825d05d814800558995e2f28513de80206b (diff)
downloadbusybox-w32-79c85ec59075b5ead415a4713bd72445546dcf8e.tar.gz
busybox-w32-79c85ec59075b5ead415a4713bd72445546dcf8e.tar.bz2
busybox-w32-79c85ec59075b5ead415a4713bd72445546dcf8e.zip
lineedit: add a command to change backslashes to slashes
When a path name is copied to a console application using drag and drop the path separator is backslash. To handle this situation in the shell add an editing command (Ctrl-Z) to convert all backslashes on the current line to slashes. See GitHub issue #149. Also remove some unused code from read_key().
Diffstat (limited to 'win32')
-rw-r--r--win32/termios.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/win32/termios.c b/win32/termios.c
index fe6f0c546..25f2ea48c 100644
--- a/win32/termios.c
+++ b/win32/termios.c
@@ -71,12 +71,6 @@ int64_t FAST_FUNC read_key(int fd, char *buf UNUSED_PARAM, int timeout)
71 continue; 71 continue;
72 } 72 }
73 } 73 }
74 if (state & (RIGHT_CTRL_PRESSED|LEFT_CTRL_PRESSED) &&
75 (record.Event.KeyEvent.wVirtualKeyCode >= 'A' &&
76 record.Event.KeyEvent.wVirtualKeyCode <= 'Z')) {
77 ret = record.Event.KeyEvent.wVirtualKeyCode & ~0x40;
78 break;
79 }
80 74
81 switch (record.Event.KeyEvent.wVirtualKeyCode) { 75 switch (record.Event.KeyEvent.wVirtualKeyCode) {
82 case VK_DELETE: ret = KEYCODE_DELETE; goto done; 76 case VK_DELETE: ret = KEYCODE_DELETE; goto done;