version 1.53, 2009/07/23 20:24:27 |
version 1.54, 2009/07/24 14:52:47 |
|
|
#define BELL_CURRENT 2 |
#define BELL_CURRENT 2 |
|
|
/* Key codes. ncurses defines KEY_*. Grrr. */ |
/* Key codes. ncurses defines KEY_*. Grrr. */ |
#define KEYC_NONE 0x0fff |
#define KEYC_NONE 0xfff |
#define KEYC_ESCAPE 0x2000 |
/* 0x1000 is base for special keys */ |
#define KEYC_CTRL 0x4000 |
#define KEYC_ESCAPE 0x2000 |
#define KEYC_SHIFT 0x8000 |
#define KEYC_CTRL 0x4000 |
|
#define KEYC_SHIFT 0x8000 |
|
#define KEYC_PREFIX 0x10000 |
|
|
enum key_code { |
enum key_code { |
/* Mouse key. */ |
/* Mouse key. */ |
|
|
|
|
/* Key/command line command. */ |
/* Key/command line command. */ |
struct cmd_ctx { |
struct cmd_ctx { |
struct client *cmdclient; |
|
|
|
/* |
/* |
* curclient is the client where this command was executed if inside |
* curclient is the client where this command was executed if inside |
* tmux. This is NULL if the command came from the command-line. |
* tmux. This is NULL if the command came from the command-line. |
|
|
* configuration file. |
* configuration file. |
*/ |
*/ |
struct client *curclient; |
struct client *curclient; |
|
struct client *cmdclient; |
|
|
struct session *cursession; |
struct session *cursession; |
|
|
struct msg_command_data *msgdata; |
struct msg_command_data *msgdata; |