mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
vt: keyboard, replace numbers with \r, \n where appropriate
Instead of 10, 13 use \n, \r respectively. Acked-by: Jiri Slaby <jirislaby@kernel.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20201109105601.47159-2-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c050a97d05
commit
6d2c52a83b
@ -462,9 +462,9 @@ static void fn_enter(struct vc_data *vc)
|
||||
diacr = 0;
|
||||
}
|
||||
|
||||
put_queue(vc, 13);
|
||||
put_queue(vc, '\r');
|
||||
if (vc_kbd_mode(kbd, VC_CRLF))
|
||||
put_queue(vc, 10);
|
||||
put_queue(vc, '\n');
|
||||
}
|
||||
|
||||
static void fn_caps_toggle(struct vc_data *vc)
|
||||
@ -827,7 +827,7 @@ static void k_pad(struct vc_data *vc, unsigned char value, char up_flag)
|
||||
|
||||
put_queue(vc, pad_chars[value]);
|
||||
if (value == KVAL(K_PENTER) && vc_kbd_mode(kbd, VC_CRLF))
|
||||
put_queue(vc, 10);
|
||||
put_queue(vc, '\n');
|
||||
}
|
||||
|
||||
static void k_shift(struct vc_data *vc, unsigned char value, char up_flag)
|
||||
|
Loading…
Reference in New Issue
Block a user