diff options
author | James Booth <boothj5@gmail.com> | 2015-02-26 00:50:49 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-02-26 00:50:49 +0000 |
commit | 2112ddea65b076dafc08fb0b5a58ca57f65a6066 (patch) | |
tree | 7fd2b8a45ee9a7a47df251daa6efec3af4bffe00 /src | |
parent | a809dc91311c89bfb1d0729ab7f498d0ff75c6fa (diff) | |
parent | cbdfc09a84ba80dce2199447b2b59f0d5866e3a4 (diff) | |
download | profani-tty-2112ddea65b076dafc08fb0b5a58ca57f65a6066.tar.gz |
Merge branch 'master' into readline
Diffstat (limited to 'src')
-rw-r--r-- | src/command/command.c | 20 | ||||
-rw-r--r-- | src/command/commands.c | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/command/command.c b/src/command/command.c index 13b60b33..ac783303 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1025,17 +1025,17 @@ static struct cmd_t command_defs[] = { "/theme", cmd_theme, parse_args, 1, 2, &cons_theme_setting, - { "/theme list|set|colours [theme-name]", "Change colour theme.", - { "/theme list|set|colours [theme-name]", - "------------------------------------", + { "/theme list|load|colours [theme-name]", "Change colour theme.", + { "/theme list|load|colours [theme-name]", + "-------------------------------------", "Load a theme, includes colours and UI options.", "", - "list : List all available themes.", - "set theme-name : Load the named theme. 'default' will reset to the default theme.", - "colours : Show the colour values as rendered by the terminal.", + "list : List all available themes.", + "load theme-name : Load the named theme. 'default' will reset to the default theme.", + "colours : Show the colour values as rendered by the terminal.", "", "Example: /theme list", - "Example: /theme set mycooltheme", + "Example: /theme load mycooltheme", NULL } } }, @@ -1293,8 +1293,8 @@ cmd_init(void) autocomplete_add(autoconnect_ac, "off"); theme_ac = autocomplete_new(); + autocomplete_add(theme_ac, "load"); autocomplete_add(theme_ac, "list"); - autocomplete_add(theme_ac, "set"); autocomplete_add(theme_ac, "colours"); disco_ac = autocomplete_new(); @@ -2512,7 +2512,7 @@ static char * _theme_autocomplete(const char * const input) { char *result = NULL; - if ((strncmp(input, "/theme set ", 11) == 0) && (strlen(input) > 11)) { + if ((strncmp(input, "/theme load ", 12) == 0) && (strlen(input) > 12)) { if (theme_load_ac == NULL) { theme_load_ac = autocomplete_new(); GSList *themes = theme_list(); @@ -2524,7 +2524,7 @@ _theme_autocomplete(const char * const input) g_slist_free_full(themes, g_free); autocomplete_add(theme_load_ac, "default"); } - result = autocomplete_param_with_ac(input, "/theme set", theme_load_ac, TRUE); + result = autocomplete_param_with_ac(input, "/theme load", theme_load_ac, TRUE); if (result != NULL) { return result; } diff --git a/src/command/commands.c b/src/command/commands.c index 63cdedf7..18f8bf69 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -822,7 +822,7 @@ cmd_theme(gchar **args, struct cmd_help_t help) g_slist_free_full(themes, g_free); // load a theme - } else if (g_strcmp0(args[0], "set") == 0) { + } else if (g_strcmp0(args[0], "load") == 0) { if (args[1] == NULL) { cons_show("Usage: %s", help.usage); } else if (theme_load(args[1])) { |