#include "AppHdr.h"
#include "macro.h"
#include "state.h"
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <map>
#include <deque>
#include <vector>
#include <cstdio>
#include <cctype>
#include <cstdlib>
#include "cio.h"
#include "externs.h"
#include "files.h"
#include "libutil.h"
#include "options.h"
#include "message.h"
#include "stuff.h"
#include "initfile.h"
#include "cmd-name.h"
#include "cmd-keys.h"
#define USERFUNCBASE -10000 |
#define VALID_BIND_COMMAND | ( | cmd | ) | (cmd > CMD_NO_CMD && cmd < CMD_MIN_SYNTHETIC) |
typedef std::map<int, int> cmd_to_key_map |
typedef std::map<int, std::string> cmd_to_name_map |
typedef std::map<int, int> key_to_cmd_map |
typedef std::deque<int> keybuf |
typedef std::map<std::string, int> name_to_cmd_map |
void add_key_recorder | ( | key_recorder * | recorder | ) |
void bind_command_to_key | ( | command_type | cmd, | |
int | key | |||
) |
int command_to_key | ( | command_type | cmd | ) |
std::string command_to_name | ( | command_type | cmd | ) |
std::string command_to_string | ( | command_type | cmd | ) |
KeymapContext context_for_command | ( | command_type | cmd | ) |
void flush_input_buffer | ( | int | reason | ) |
int get_macro_buf_size | ( | ) |
std::string get_userfunction | ( | int | key | ) |
int getch_with_command_macros | ( | void | ) |
int getchm | ( | KeymapContext | mc, | |
int(*)() | rgetch | |||
) |
int getchm | ( | int(*)() | rgetch | ) |
void init_keybindings | ( | ) |
void insert_commands | ( | std::string & | desc, | |
const int | first, | |||
... | ||||
) |
void insert_commands | ( | std::string & | desc, | |
std::vector< command_type > | cmds, | |||
bool | formatted | |||
) |
bool is_processing_macro | ( | ) |
bool is_synthetic_key | ( | int | key | ) |
bool is_userfunction | ( | int | key | ) |
command_type key_to_command | ( | int | key, | |
KeymapContext | context | |||
) |
void macro_add_query | ( | void | ) |
void macro_buf_add | ( | int | key, | |
bool | reverse, | |||
bool | expanded | |||
) |
void macro_buf_add | ( | const keyseq & | actions, | |
bool | reverse, | |||
bool | expanded | |||
) |
void macro_buf_add_cmd | ( | command_type | cmd, | |
bool | reverse | |||
) |
int macro_buf_get | ( | ) |
void macro_clear_buffers | ( | ) |
void macro_init | ( | ) |
void macro_save | ( | ) |
void macro_sendkeys_end_add_expanded | ( | int | key | ) |
void macro_sendkeys_start_add_expanded | ( | int | key | ) |
void macro_userfn | ( | const char * | keys, | |
const char * | regname | |||
) |
command_type name_to_command | ( | std::string | name | ) |
void remove_key_recorder | ( | key_recorder * | recorder | ) |