This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Allow long lines in "help" output to wrap.
- From: Michael Snyder <msnyder at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 12 Apr 2002 15:33:28 -0700
- Subject: [PATCH] Allow long lines in "help" output to wrap.
There are a couple of lines in the output of the
help command that can become arbitrarily long.
Allow them to be wrapped onto the next line.
2002-04-12 Michael Snyder <msnyder@redhat.com>
* cli/cli-decode.c (help_list): Allow long lines to wrap.
Index: cli-decode.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/cli/cli-decode.c,v
retrieving revision 1.12
diff -c -3 -p -r1.12 cli-decode.c
*** cli-decode.c 2002/04/05 23:31:57 1.12
--- cli-decode.c 2002/04/12 22:40:08
*************** help_list (struct cmd_list_element *list
*** 673,686 ****
help_cmd_list (list, class, cmdtype, (int) class >= 0, stream);
if (class == all_classes)
! fprintf_filtered (stream, "\n\
! Type \"help%s\" followed by a class name for a list of commands in that class.",
! cmdtype1);
! fprintf_filtered (stream, "\n\
! Type \"help%s\" followed by %scommand name for full documentation.\n\
! Command name abbreviations are allowed if unambiguous.\n",
cmdtype1, cmdtype2);
}
static void
--- 673,696 ----
help_cmd_list (list, class, cmdtype, (int) class >= 0, stream);
if (class == all_classes)
! {
! fprintf_filtered (stream, "\n\
! Type \"help%s\" followed by a class name for a list of commands in ",
! cmdtype1);
! wrap_here ("");
! fprintf_filtered (stream, "that class.");
! }
! fprintf_filtered (stream, "\nType \"help%s\" followed by %scommand name ",
cmdtype1, cmdtype2);
+ wrap_here ("");
+ fputs_filtered ("for ", stream);
+ wrap_here ("");
+ fputs_filtered ("full ", stream);
+ wrap_here ("");
+ fputs_filtered ("documentation.\n", stream);
+ fputs_filtered ("Command name abbreviations are allowed if unambiguous.\n",
+ stream);
}
static void