svn commit: trunk/busybox/libbb

pgf at busybox.net pgf at busybox.net
Fri Jan 11 16:50:09 UTC 2008


Author: pgf
Date: 2008-01-11 08:50:08 -0800 (Fri, 11 Jan 2008)
New Revision: 20845

Log:
enable use of ^V prefix to allow forced insertion of any character.  in
particular, without this it's impossible to enter a TAB on the commandline
(whether tab completion is enabled or not).


Modified:
   trunk/busybox/libbb/lineedit.c


Changeset:
Modified: trunk/busybox/libbb/lineedit.c
===================================================================
--- trunk/busybox/libbb/lineedit.c	2008-01-11 16:12:57 UTC (rev 20844)
+++ trunk/busybox/libbb/lineedit.c	2008-01-11 16:50:08 UTC (rev 20845)
@@ -1752,8 +1752,8 @@
 			break;
 
 		default:        /* If it's regular input, do the normal thing */
-#if ENABLE_FEATURE_NONPRINTABLE_INVERSE_PUT
-			/* Control-V -- Add non-printable symbol */
+
+			/* Control-V -- force insert of next char */
 			if (c == CTRL('V')) {
 				if (safe_read(STDIN_FILENO, &c, 1) < 1)
 					goto prepare_to_die;
@@ -1761,8 +1761,7 @@
 					beep();
 					break;
 				}
-			} else
-#endif
+			}
 
 #if ENABLE_FEATURE_EDITING_VI
 			if (vi_cmdmode)  /* Don't self-insert */




More information about the busybox-cvs mailing list