~kris/suckless

tabbed

62f0800d2f40c8eae6a27d2d7438d08aa1b35790 — Connor Lane Smith 15 years ago 214992a
update manpage
2 files changed, 17 insertions(+), 20 deletions(-)

M tabbed.1
M tabbed.c
M tabbed.1 => tabbed.1 +15 -18
@@ 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

M tabbed.c => tabbed.c +2 -2
@@ 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)