Commits

Evan Gates  committed 2c33954

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

  • Participants
  • Parent commits 002918d

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;