[hackers] [tabbed] update manpage || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Sat, 18 Jun 2011 15:37:49 +0200 (CEST)

changeset: 144:af9499282ed5
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Sat Jun 18 14:37:43 2011 +0100
files: tabbed.1 tabbed.c
description:
update manpage

diff -r 1f090280fc82 -r af9499282ed5 tabbed.1
--- a/tabbed.1 Fri May 06 21:40:53 2011 +0100
+++ b/tabbed.1 Sat Jun 18 14:37:43 2011 +0100
@@ -1,29 +1,25 @@
 .TH TABBED 1 tabbed\-VERSION
 .SH NAME
-tabbed \- simple generic tabbed interface
+tabbed \- generic tabbed interface
 .SH SYNOPSIS
 .B tabbed
 .RB [ \-d ]
-.RB [ \-h ]
 .RB [ \-v ]
+.IR command ...
 .SH DESCRIPTION
-tabbed is a simple container for applications which support XEmbed, such as
-xterm or surf.
+.B tabbed
+is a simple container for applications which support XEmbed.
 .SH OPTIONS
 .TP
 .B \-d
-detaches tabbed from the terminal and prints xid to standard output. Useful for
-scripting.
-.TP
-.B \-h
-prints usage information to standard error, then exits.
+detaches tabbed from the terminal and prints its XID to stdout.
 .TP
 .B \-v
-prints version information to standard error, then exits.
+prints version information to stderr, then exits.
 .SH USAGE
 .TP
 .B Ctrl\-Shift\-Return
-new surf window
+open new tab
 .TP
 .B Ctrl\-Shift\-h
 previous tab
@@ -32,15 +28,16 @@
 next tab
 .TP
 .B Ctrl\-Tab
-toggles between tabs
+toggle between tabs
 .TP
 .B Ctrl\-q
-closes the tab
+close tab
 .TP
 .B Ctrl\-[0..9]
 jumps to nth tab
-.SH SEE ALSO
-.BR xterm (1),
-.BR surf (1).
-.SH BUGS
-Please report them!
+.SH EXAMPLES
+$ tabbed surf -e
+.TP
+$ tabbed urxvt -embed
+.TP
+$ tabbed xterm -into
diff -r 1f090280fc82 -r af9499282ed5 tabbed.c
--- a/tabbed.c Fri May 06 21:40:53 2011 +0100
+++ b/tabbed.c Sat Jun 18 14:37:43 2011 +0100
@@ -869,13 +869,13 @@
                         setcmd(argc-i, argv+i);
         }
         if(!cmd)
- die("usage: tabbed [-d] [-v] command\n");
+ die("usage: tabbed [-d] [-v] command...\n");
         if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
                 fprintf(stderr, "tabbed: no locale support\n");
         if(!(dpy = XOpenDisplay(NULL)))
                 die("tabbed: cannot open display\n");
         setup();
- printf("%lu\n", win);
+ printf("0x%lx\n", win);
         fflush(NULL);
         if(detach) {
                 if(fork() == 0)
Received on Sat Jun 18 2011 - 15:37:49 CEST

This archive was generated by hypermail 2.2.0 : Sat Jun 18 2011 - 15:48:05 CEST