Anonymous avatar Anonymous committed 2c33954

change man page to reflect cw change, change call to cw in pcw to reflect change

Comments (0)

Files changed (3)

 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 #include <sys/select.h>
 #include <sys/inotify.h>
 
 int main(int argc, char **argv)
 {
-	int evq, in_wd, i;
+	int evq, in_wd;
 	FILE *in, *out;
 	char buf[4096];
 	fd_set rd;
 .IR dir
 
 .B cw
-.RB [ \-c|\-f ]
-.RB [ \-q ]
-.RB [ \-v ]
 .IR infile
 .IR outfile
 
 .BI \-t " terminal"
 the terminal program to use (defaults to urxvt) (assumes -title and -e flags)
 .TP
-.BI \-c
-if infile or outfile don't exist create them
-.TP
-.BI \-f
-if infile or outfile don't exist create them as fifos (pcw does this, when a user messages you ii creates the out file but doesn't create the in fifo until you explicitly '/j user msg' so we create the fifo and wait for ii to connect to it when you '/j user msg')
-.TP
-.BI \-q
-quiet, don't print the "opening file" and "new text starts here" messages on stderr
-.TP
 .BI \-v
 prints version information and exits
 
 void win(int wd)
 {
 	char out[PATH_MAX], in[PATH_MAX], path[PATH_MAX], prompt[32];
-	char *wincmd[] = {term, "-title", paths[wd], "-e", "srw", "-p", prompt, "cw", "-f", out, in, NULL};
+	char *wincmd[] = {term, "-title", paths[wd], "-e", "srw", "-p", prompt, "cw", out, in, NULL};
 
 	if (wins[wd])
 		return;
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.