summaryrefslogtreecommitdiff
path: root/loginutils/getty.c
diff options
context:
space:
mode:
authorDenys Vlasenko2011-01-26 03:31:23 +0100
committerDenys Vlasenko2011-01-26 03:31:23 +0100
commitd7c25e98bfd5dd62c19d6d672410ce61efa16801 (patch)
tree5fba7894b4eb60df00531c416b6167463abcc995 /loginutils/getty.c
parentd8494934a7b7cb8063282b03a6b996c9b7cec42a (diff)
downloadbusybox-d7c25e98bfd5dd62c19d6d672410ce61efa16801.zip
busybox-d7c25e98bfd5dd62c19d6d672410ce61efa16801.tar.gz
getty: add ECHOE explanation
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/getty.c')
-rw-r--r--loginutils/getty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 29d889f..4e194c4 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -286,7 +286,9 @@ static void termios_final(void)
if (G.eol == '\r') {
G.termios.c_iflag |= ICRNL; /* map CR on input to NL */
}
- /* non-raw input; enable SIGINT/QUIT/ec sigs; echo; echo NL on kill char;
+ /* non-raw input; enable SIGINT/QUIT/etc sigs; echo;
+ * echo erase character as BS-space-BS;
+ * echo NL on kill char;
* erase entire line via BS-space-BS on kill char */
G.termios.c_lflag |= ICANON | ISIG | ECHO | ECHOE | ECHOK | ECHOKE;
/* echo ctrl chars as ^c; (what is ECHOPRT?) */