From cb872ac99d66247496af14bf30605536d279a759 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 22 Nov 2012 11:14:02 +0100 Subject: agetty: add --{erase,kill}-chars options We need way to disable the default kill and erase agetty chars to make the getty usable for Active Directory users with '@' in username. It seems that the most extendible solution is to add options that allow to complete control additional erase/kill chars. If you specify empty strings then the chars are disabled at all. Note that this patch is backwardly compatible. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=870854 Signed-off-by: Karel Zak --- term-utils/agetty.8 | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'term-utils/agetty.8') diff --git a/term-utils/agetty.8 b/term-utils/agetty.8 index e51017d0d..2110cae5c 100644 --- a/term-utils/agetty.8 +++ b/term-utils/agetty.8 @@ -29,6 +29,7 @@ The program can handle 7-bit characters with even, odd, none or space parity, and 8-bit characters with no parity. The following special characters are recognized: @ and Control-U (kill); #, DEL and back space (erase); carriage return and line feed (end of line). +See also \fB\-\-erase-chars\fP and \fB\-\-kill-chars\fP options. .IP o Optionally deduces the baud rate from the CONNECT messages produced by Hayes(tm)-compatible modems. @@ -217,6 +218,16 @@ By default the hostname is only printed until the first dot. With this option enabled, the full qualified hostname by gethostname() or if not found by getaddrinfo() is shown. .TP +\-\-erase\-chars \fIstring\fP +This option specifies additional chars that should be interpreted as a +backspace (ignore previous char) when user specifies login name. The default is +\'#\', specify empty string to disable the default. +.TP +\-\-kill\-chars \fIstring\fP +This option specifies additional chars that should be interpreted as a +kill (ignore all previous chars) when user specifies login name. +The default is \'@\', specify empty string to disable the default. +.TP \-\-version Output version information and exit. .TP -- cgit v1.2.3-55-g7522