add "nop" and "delete" commands
This commit is contained in:
parent
92a7dbe922
commit
ced2d2856b
@ -6,10 +6,12 @@ static const struct
|
|||||||
const char * name;
|
const char * name;
|
||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
} Commands[] = {
|
} Commands[] = {
|
||||||
|
{"nop", 0u},
|
||||||
{"forward-up-to-char", Command::FOLLOWING_CHAR},
|
{"forward-up-to-char", Command::FOLLOWING_CHAR},
|
||||||
{"forward-on-to-char", Command::FOLLOWING_CHAR},
|
{"forward-on-to-char", Command::FOLLOWING_CHAR},
|
||||||
{"back-up-to-char", Command::FOLLOWING_CHAR},
|
{"back-up-to-char", Command::FOLLOWING_CHAR},
|
||||||
{"back-on-to-char", Command::FOLLOWING_CHAR},
|
{"back-on-to-char", Command::FOLLOWING_CHAR},
|
||||||
|
{"delete", Command::RANGE},
|
||||||
{"delete-line", 0u},
|
{"delete-line", 0u},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8,15 +8,18 @@ class Command
|
|||||||
public:
|
public:
|
||||||
enum : uint32_t
|
enum : uint32_t
|
||||||
{
|
{
|
||||||
FOLLOWING_CHAR = 0x1u,
|
FOLLOWING_CHAR = 0x1u,
|
||||||
|
RANGE = 0x2u,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum : uint32_t
|
enum : uint32_t
|
||||||
{
|
{
|
||||||
|
NOP,
|
||||||
FORWARD_UP_TO_CHAR,
|
FORWARD_UP_TO_CHAR,
|
||||||
FORWARD_ON_TO_CHAR,
|
FORWARD_ON_TO_CHAR,
|
||||||
BACK_UP_TO_CHAR,
|
BACK_UP_TO_CHAR,
|
||||||
BACK_ON_TO_CHAR,
|
BACK_ON_TO_CHAR,
|
||||||
|
DELETE,
|
||||||
DELETE_LINE,
|
DELETE_LINE,
|
||||||
COMMAND_COUNT,
|
COMMAND_COUNT,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user