Anonymous avatar Anonymous committed 73d1ecd

not a fan of the sigwinch stuff, keep it simple, use ^L if you need to

Comments (0)

Files changed (2)

 .SY srw
 .OP \-p prompt
 .OP \-v
-.OP \-w
 .I cmd
 .RI [ args... ]
 .YS
 .TP
 .B \-v
 print version information and exit
-.TP
-.B \-w
-for each SIGWINCH received (window resize), clear screen and send SIGWINCH to the child process group
 
 .SH USAGE
 srw supports the usual arrow keys, Home, End, Delete, as well as the following shortcuts
 
 void usage(void)
 {
-	printf("Usage: srw [-p prompt] [-w] cmd [args]...\n");
+	printf("Usage: srw [-p prompt] cmd [args]...\n");
 	exit(1);
 }
 
-void sigwinch(int unused)
-{
-	cursor_org();
-	cursor_clr();
-	fflush(stdout);
-	kill(-child, SIGWINCH);
-}
-
 void sigchld(int unused)
 {
 	pid_t pid;
 		switch (argv[i][1]) {
 			case 'p' : nrml_prompt = argv[++i]; break;
 			case 'v' : printf("srw-"VERSION" © Evan Gates\n"); exit(1);
-			case 'w' : if (signal(SIGWINCH, sigwinch) == SIG_ERR)
-						   err(1, "failed to install SIGWINCH handler");
-					   break;
 			default  : usage();
 		}
 	}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.