update manpage

This commit is contained in:
Connor Lane Smith 2011-06-18 14:37:43 +01:00
parent 214992a9ba
commit 62f0800d2f
2 changed files with 17 additions and 20 deletions

View file

@ -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 @@ previous tab
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

View file

@ -869,13 +869,13 @@ main(int argc, char *argv[]) {
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)