surf \- simple webkit-based browser
.SH SYNOPSIS
.B surf
-.RB [ \-hvx ]
-.RB [ \-e xid ]
+.RB [-e\ xid]
+.RB [-i]
+.RB [-p]
+.RB [-s]
+.RB [-v]
+.RB [-x]
.RB "URI"
.SH DESCRIPTION
surf is a simple Web browser based on WebKit/GTK+. It is able
.SH OPTIONS
.TP
.B \-e xid
-reparents to window specified by xid.
+Reparents to window specified by xid.
.TP
-.B \-h
-Prints usage information to standard output, then exits.
+.B \-i
+Disable Images
+.TP
+.B \-p
+Disable Plugins
+.TP
+.B \-s
+Disable Javascript
.TP
.B \-v
Prints version information to standard output, then exits.
void
usage(void) {
fputs("surf - simple browser\n", stderr);
- die("usage: surf [-e Window] [-x] [-i] [-p] [-s] [uri]\n");
+ die("usage: surf [-e xid] [-i] [-p] [-s] [-v] [-x] [uri]\n");
}
void
break;
}
switch(argv[i][1]) {
- case 'x':
- showxid = TRUE;
- break;
case 'e':
if(++i < argc)
embed = atoi(argv[i]);
case 's':
script = 0;
break;
+ case 'x':
+ showxid = TRUE;
+ break;
case 'v':
die("surf-"VERSION", © 2009 surf engineers, see LICENSE for details\n");
default: