/** * ctrlchar_handle - check for special chars at start of input * * @buf: console input buffer * @len: length of valid data in buffer * @tty: the tty struct for this console * * Return: CTRLCHAR_NONE, if nothing matched, * CTRLCHAR_SYSRQ, if sysrq was encountered * otherwise char to be inserted logically or'ed * with CTRLCHAR_CTRL
*/ unsignedint
ctrlchar_handle(constunsignedchar *buf, int len, struct tty_struct *tty)
{ if ((len < 2) || (len > 3)) return CTRLCHAR_NONE;
/* hat is 0xb1 in codepage 037 (US etc.) and thus */ /* converted to 0x5e in ascii ('^') */ if ((buf[0] != '^') && (buf[0] != '\252')) return CTRLCHAR_NONE;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.