mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 13:38:45 +02:00
Use more descriptive format for control code #defines
The previous format was just the ascii value directly
in octal. I'm getting sick of typing 'man ascii' to look
it up though. The new format is just, e.g.,
('\100' ^ 'U')
which not only means I can add new entries without looking
them up, but also has the added advantage that it looks
sort of similiar to, e.g., ^U, which is a common notation
for respresenting control characters.
This commit is contained in:
parent
d469d3fd75
commit
17f552c8ac
1 changed files with 3 additions and 3 deletions
|
|
@ -43,9 +43,9 @@
|
|||
#include "ply-logger.h"
|
||||
#include "ply-utils.h"
|
||||
|
||||
#define KEY_CTRL_T '\024'
|
||||
#define KEY_CTRL_V '\026'
|
||||
#define KEY_ESCAPE '\033'
|
||||
#define KEY_CTRL_T ('\100' ^'T')
|
||||
#define KEY_CTRL_V ('\100' ^'V')
|
||||
#define KEY_ESCAPE ('\100' ^'[')
|
||||
#define KEY_RETURN '\r'
|
||||
#define KEY_BACKSPACE '\177'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue