aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-07-19 22:48:12 +0100
committerJames Booth <boothj5@gmail.com>2015-07-19 22:48:12 +0100
commit46e2f11b93bb3dfed7b9f5c780961d18cb327b12 (patch)
tree844fb293a8f766336f0c6fe9f4651999d1094cf1 /src/command
parentf3326bf105e9acc21aa6e1ee159d5bf02dbe6b16 (diff)
downloadprofani-tty-46e2f11b93bb3dfed7b9f5c780961d18cb327b12.tar.gz
Removed /mouse command
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c12
-rw-r--r--src/command/commands.c13
-rw-r--r--src/command/commands.h1
3 files changed, 5 insertions, 21 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 999cab23..9d33f61b 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -817,14 +817,6 @@ static struct cmd_t command_defs[] =
"goodbye : Show a message in the title when exiting profanity.",
NULL } } },
- { "/mouse",
- cmd_mouse, parse_args, 1, 1, &cons_mouse_setting,
- { "/mouse on|off", "Use profanity mouse handling.",
- { "/mouse on|off",
- "-------------",
- "This feature is experimental, default is 'off'.",
- NULL } } },
-
{ "/alias",
cmd_alias, parse_args_with_freetext, 1, 3, NULL,
{ "/alias add|remove|list [name value]", "Add your own command aliases.",
@@ -1987,8 +1979,8 @@ _cmd_complete_parameters(ProfWin *window, const char * const input)
// autocomplete boolean settings
gchar *boolean_choices[] = { "/beep", "/intype", "/states", "/outtype",
- "/flash", "/splash", "/chlog", "/grlog", "/mouse", "/history",
- "/vercheck", "/privileges", "/presence", "/wrap", "/winstidy", "/carbons", "/encwarn" };
+ "/flash", "/splash", "/chlog", "/grlog", "/history", "/vercheck",
+ "/privileges", "/presence", "/wrap", "/winstidy", "/carbons", "/encwarn" };
for (i = 0; i < ARRAY_SIZE(boolean_choices); i++) {
result = autocomplete_param_with_func(input, boolean_choices[i], prefs_autocomplete_boolean_choice);
diff --git a/src/command/commands.c b/src/command/commands.c
index 396aa880..810772d5 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -840,9 +840,9 @@ cmd_help(ProfWin *window, gchar **args, struct cmd_help_t help)
} else if (strcmp(args[0], "settings") == 0) {
gchar *filter[] = { "/account", "/autoaway", "/autoping", "/autoconnect", "/beep",
"/carbons", "/chlog", "/flash", "/gone", "/grlog", "/history", "/intype",
- "/log", "/mouse", "/notify", "/outtype", "/prefs", "/priority",
- "/reconnect", "/roster", "/splash", "/states", "/statuses", "/theme",
- "/titlebar", "/vercheck", "/privileges", "/occupants", "/presence", "/wrap", "/winstidy" };
+ "/log", "/notify", "/outtype", "/prefs", "/priority", "/reconnect", "/roster",
+ "/splash", "/states", "/statuses", "/theme", "/titlebar", "/vercheck",
+ "/privileges", "/occupants", "/presence", "/wrap", "/winstidy" };
_cmd_show_filtered_help("Settings commands", filter, ARRAY_SIZE(filter));
} else if (strcmp(args[0], "navigation") == 0) {
@@ -4080,13 +4080,6 @@ cmd_grlog(ProfWin *window, gchar **args, struct cmd_help_t help)
}
gboolean
-cmd_mouse(ProfWin *window, gchar **args, struct cmd_help_t help)
-{
- return _cmd_set_boolean_preference(args[0], help,
- "Mouse handling", PREF_MOUSE);
-}
-
-gboolean
cmd_history(ProfWin *window, gchar **args, struct cmd_help_t help)
{
gboolean result = _cmd_set_boolean_preference(args[0], help,
diff --git a/src/command/commands.h b/src/command/commands.h
index 6f2bada2..0b135d71 100644
--- a/src/command/commands.h
+++ b/src/command/commands.h
@@ -99,7 +99,6 @@ gboolean cmd_invites(ProfWin *window, gchar **args, struct cmd_help_t help);
gboolean cmd_join(ProfWin *window, gchar **args, struct cmd_help_t help);
gboolean cmd_leave(ProfWin *window, gchar **args, struct cmd_help_t help);
gboolean cmd_log(ProfWin *window, gchar **args, struct cmd_help_t help);
-gboolean cmd_mouse(ProfWin *window, gchar **args, struct cmd_help_t help);
gboolean cmd_msg(ProfWin *window, gchar **args, struct cmd_help_t help);
gboolean cmd_nick(ProfWin *window, gchar **args, struct cmd_help_t help);
gboolean cmd_notify(ProfWin *window, gchar **args, struct cmd_help_t help);