about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 0ec1281e..dd1dc065 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -162,49 +162,6 @@ cons_show_help(const char *const cmd, CommandHelp *help)
     }
 }
 
-//void
-//cons_show_help(Command *command)
-//{
-//    ProfWin *console = wins_get_console();
-//
-//    cons_show("");
-//    win_vprint(console, '-', 0, NULL, 0, THEME_WHITE_BOLD, "", "%s", &command->cmd[1]);
-//    win_print(console, '-', 0, NULL, NO_EOL, THEME_WHITE_BOLD, "", "");
-//    int i;
-//    for (i = 0; i < strlen(command->cmd) - 1 ; i++) {
-//        win_print(console, '-', 0, NULL, NO_EOL | NO_DATE, THEME_WHITE_BOLD, "", "-");
-//    }
-//    win_print(console, '-', 0, NULL, NO_DATE, THEME_WHITE_BOLD, "", "");
-//    cons_show("");
-//
-//    win_print(console, '-', 0, NULL, 0, THEME_WHITE_BOLD, "", "Synopsis");
-//    ui_show_lines(console, command->help.synopsis);
-//    cons_show("");
-//
-//    win_print(console, '-', 0, NULL, 0, THEME_WHITE_BOLD, "", "Description");
-//    win_println(console, 0, command->help.desc);
-//
-//    int maxlen = 0;
-//    for (i = 0; command->help.args[i][0] != NULL; i++) {
-//        if (strlen(command->help.args[i][0]) > maxlen)
-//            maxlen = strlen(command->help.args[i][0]);
-//    }
-//
-//    if (i > 0) {
-//        cons_show("");
-//        win_print(console, '-', 0, NULL, 0, THEME_WHITE_BOLD, "", "Arguments");
-//        for (i = 0; command->help.args[i][0] != NULL; i++) {
-//            win_vprint(console, '-', maxlen + 3, NULL, 0, 0, "", "%-*s: %s", maxlen + 1, command->help.args[i][0], command->help.args[i][1]);
-//        }
-//    }
-//
-//    if (g_strv_length((gchar**)command->help.examples) > 0) {
-//        cons_show("");
-//        win_print(console, '-', 0, NULL, 0, THEME_WHITE_BOLD, "", "Examples");
-//        ui_show_lines(console, command->help.examples);
-//    }
-//}
-
 void
 cons_bad_cmd_usage(const char *const cmd)
 {