summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-03-17 13:22:39 -0400
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-03-17 13:22:39 -0400
commit0e51882a24f8ceef85fc545dc83b45230bd43354 (patch)
tree0e0bc37fc257726a3d7112cfcad14ea3ef57abad
parent47590ac856029fa5a11c8830d58923aadc8aff78 (diff)
downloadscreen-0e51882a24f8ceef85fc545dc83b45230bd43354.tar.gz
Show the enabled capabilities in the 'license' page.
Showing the capabilities somewhere is useful for users, especially when diagnosing a bug. The 'license' page seems as good a place as any to stuff this info in.
-rw-r--r--src/help.c68
1 files changed, 67 insertions, 1 deletions
diff --git a/src/help.c b/src/help.c
index a624941..8726b1b 100644
--- a/src/help.c
+++ b/src/help.c
@@ -534,8 +534,74 @@ http://www.gnu.org/licenses/, or contact Free Software Foundation, Inc., \
51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA.\n\
\n\
Send bugreports, fixes, enhancements, t-shirts, money, beer & pizza to \
-screen@uni-erlangen.de\n";
+screen-devel@gnu.org\n\n\n"
+"Capabilities:\n"
+
+#ifdef COPY_PASTE
+"+copy "
+#else
+"-copy "
+#endif
+
+#ifdef REMOTE_DETACH
+"+remote-detach "
+#else
+"-remote-detach "
+#endif
+
+#ifdef POW_DETACH
+"+power-detach "
+#else
+"-power-detach "
+#endif
+
+#ifdef MULTI
+"+multi-attach "
+#else
+"-multi-attach "
+#endif
+
+#ifdef MULTIUSER
+"+multi-user "
+#else
+"-multi-user "
+#endif
+
+#ifdef FONT
+"+font "
+#else
+"-font "
+#endif
+
+#ifdef COLORS256
+"+color-256 "
+#elif defined(COLORS16)
+"+color-16 "
+#elif defined(COLOR)
+"+color "
+#else
+"-color "
+#endif
+
+#ifdef UTF8
+"+utf8 "
+#else
+"-utf8 "
+#endif
+
+#ifdef RXVT_OSC
+"+rxvt "
+#else
+"-rxvt "
+#endif
+
+#ifdef BUILTIN_TELNET
+"+builtin-telnet "
+#else
+"-builtin-telnet "
+#endif
+;
static void
CopyrightProcess(ppbuf, plen)