2023-02-26 05:13:40 +01:00
|
|
|
static char modetext[16] = "Insert"; /* default mode text */
|
|
|
|
|
2023-03-06 14:15:01 +01:00
|
|
|
/* available modes */
|
|
|
|
typedef enum mode {
|
|
|
|
Normal,
|
|
|
|
Insert,
|
|
|
|
} image_mode;
|
|
|
|
|
2023-02-26 05:13:40 +01:00
|
|
|
/* mode settings */
|
2023-03-06 14:15:01 +01:00
|
|
|
static int curMode = 1; /* 0 is command mode */
|
2023-02-26 05:13:40 +01:00
|
|
|
static int allowkeys = 1; /* whether or not to interpret a keypress as an insertion */
|
|
|
|
|
|
|
|
/* mode functions */
|
|
|
|
static void switchmode(const Arg *arg);
|