search for: in_escap

Displaying 2 results from an estimated 2 matches for "in_escap".

Did you mean: in_escape
2017 Mar 04
0
[PATCH] rescue: Implement escape sequences.
...function has internal state so that we can handle an escape + * sequence split over the end of the buffer. Escape sequences are + * removed from the buffer. + * + * Returns true iff virt-rescue should exit. + */ +static bool +process_escapes (char *buf, size_t *len) +{ + size_t i; + static bool in_escape = false; + + for (i = 0; i < *len; ++i) { + if (!in_escape) { + if (buf[i] == escape_key) { + /* Drop the escape key from the buffer and go to escape mode. */ + memmove (&buf[i], &buf[i+1], --(*len)); + in_escape = 1; + } + } + else /* in escape...
2017 Mar 04
7
[PATCH v3] Fix virt-rescue.
Version 3: - Tidies up the code further. - Implements correct handling of SIGTSTP and SIGCONT. - Adds: ^] s - sync filesystems - Adds: ^] z - suspend virt-rescue Rich.