##
echo "Enter type of printer: "
echo "***NOTE: if you are using a basic LP-11 printer, simply strike return"
set type = ($<)
if ($#type == 0) then 
	echo "lp|local line printer:\" > /etc/printcap
	echo "	:lp=/dev/lp:sd=/usr/spool/lpd:lf=/usr/adm/lpd-errs:" >> /etc/printcap
	exit(0)
endif

echo $type":\" > /etc/printcap
echo -n "	" >> /etc/printcap

echo -n "enter full path name of accounting file: "
set af = ($<)
if ($#af != 0) then
	echo -n "af="$af":" >> /etc/printcap 
endif

echo -n "enter full path name of error logging file: "
set lf = ($<)
if ($#lf != 0) then
	echo -n "lf="$lf":" >> /etc/printcap 
endif

echo -n "enter full path name of lock file: "
set lo = ($<)
if ($#lo != 0) then
	echo -n "lo="$lo":" >> /etc/printcap 
endif

echo -n "enter full path name of device to open for output: "
set lp = ($<)
if ($#lp != 0) then
	echo -n "lp="$lp":" >> /etc/printcap 
endif

echo -n "enter full path name of spool directory: "
set sd = ($<)
if ($#sd != 0) then
	echo -n "sd="$sd":" >> /etc/printcap 
endif

echo -n "enter full path name of status file: "
set st = ($<)
if ($#st != 0) then
	echo -n "st="$st":" >> /etc/printcap 
endif

echo -n "enter full path name of next directory for list of queues (unimplemented): "
set nd = ($<)
if ($#nd != 0) then
	echo -n "nd="$nd":" >> /etc/printcap 
endif

echo -n "enter string to send for a form feed: "
set ff = ($<)
if ($#ff != 0) then
	echo -n "ff="$ff":" >> /etc/printcap 
endif

echo -n "enter machine name for remote printer: "
set rm = ($<)
if ($#rm != 0) then
	echo -n "rm="$rm":" >> /etc/printcap 
endif

echo -n "enter remote printer name argument: "
set rp = ($<)
if ($#rp != 0) then
	echo -n "rp="$rp":" >> /etc/printcap 
endif

echo -n "enter baud rate: "
set br = ($<)
if ($#br != 0) then
	echo -n "br#"$br":" >> /etc/printcap 
endif

echo -n "enter maximumfile size (in BUFSIZE blocks), zero = unlimited: "
set mx = ($<)
if ($#mx != 0) then
	echo -n "mx#"$mx":" >> /etc/printcap 
endif

echo -n "enter page length in lines: "
set pl = ($<)
if ($#pl != 0) then
	echo -n "pl#"$pl":" >> /etc/printcap 
endif

echo -n "enter page length in pixels (vertical): "
set py = ($<)
if ($#py != 0) then
	echo -n "py#"$py":" >> /etc/printcap 
endif

echo -n "enter page width in characters: "
set pw = ($<)
if ($#pw != 0) then
	echo -n "pw#"$pw":" >> /etc/printcap 
endif

echo -n "enter page width in pixels (horizontal): "
set px = ($<)
if ($#px != 0) then
	echo -n "px#"$px":" >> /etc/printcap 
endif

echo -n "enter machine name for remote printer: "
set rm = ($<)
if ($#rm != 0) then
	echo -n "rm="$rm":" >> /etc/printcap 
endif

echo -n "enter remote printer name argument: "
set rp = ($<)
if ($#rp != 0) then
	echo -n "rp="$rp":" >> /etc/printcap 
endif

echo -n "device supports (non standard)ioctl to indent printout, (true or false): "
set ic = ($<)
if ($ic == 'true') then
	echo -n "ic:" >> /etc/printcap 
endif

echo -n "print a form feed when device is opened, (true or false): "
set fo = ($<)
if ($fo == 'true') then
	echo -n "fo" >> /etc/printcap 
endif

echo -n "restrict remote users to those with local accounts, (true or false): "
set rs = ($<)
if ($rs == 'true') then
	echo -n "rs" >> /etc/printcap 
endif

echo -n "open the printer for reading and writing, (true or false): "
set rw = ($<)
if ($rw == 'true') then
	echo -n "rw" >> /etc/printcap 
endif

echo -n "short banner, one line only, (true or false): "
set sb = ($<)
if ($sb == 'true') then
	echo -n "sb" >> /etc/printcap 
endif

echo -n "suppress multiple copies, (true or false): "
set sc = ($<)
if ($sc == 'true') then
	echo -n "sc" >> /etc/printcap 
endif

echo -n "suppress form feeds, (true or false): "
set sf = ($<)
if ($sf == 'true') then
	echo -n "sf" >> /etc/printcap 
endif

echo -n "suppress printing of burst page header, (true or false): "
set sh = ($<)
if ($sh == 'true') then
	echo -n "sh" >> /etc/printcap 
endif

echo -n "enter trailer string to print when queue empties: "
set tr = ($<)
if ($#tr != 0) then
	echo -n "tr="$tr":" >> /etc/printcap 
endif

echo -n "enter local mode bits to be cleared: "
set xc = ($<)
if ($#xc != 0) then
	echo -n "xc#"$xc":" >> /etc/printcap 
endif

echo -n "enter local mode bits to be set: "
set xs = ($<)
if ($#xs != 0) then
	echo -n "xs#"$xs":" >> /etc/printcap 
endif

echo -n "enter flag bits to be cleared: "
set fc = ($<)
if ($#fc != 0) then
	echo -n "fc#"$fc":" >> /etc/printcap 
endif

echo -n "enter flag bits to be set: "
set fs = ($<)
if ($#fs != 0) then
	echo -n "fs#"$fs":" >> /etc/printcap 
endif

echo -n "enter full path name of text filter which does accounting: "
set if = ($<)
if ($#if != 0) then
	echo -n "if="$if":" >> /etc/printcap 
endif

echo -n "enter full path name of cifplot data filter: "
set cf = ($<)
if ($#cf != 0) then
	echo -n "cf="$cf":" >> /etc/printcap 
endif

echo -n "enter full path name of tex data filter (DVI format): "
set df = ($<)
if ($#df != 0) then
	echo -n "df="$df":" >> /etc/printcap 
endif

echo -n "enter full path name of graph data filter (plot (3X) format): "
set gf = ($<)
if ($#gf != 0) then
	echo -n "gf="$gf":" >> /etc/printcap 
endif

echo -n "enter full path name of device independent troff data filter: "
set nf = ($<)
if ($#nf != 0) then
	echo -n "nf="$nf":" >> /etc/printcap 
endif

echo -n "enter full path name of output filter: "
set of = ($<)
if ($#of != 0) then
	echo -n "of="$of":" >> /etc/printcap 
endif

echo -n "enter full path name of filter for printing FORTRAN style tast files: "
set rf = ($<)
if ($#rf != 0) then
	echo -n "rf="$rf":" >> /etc/printcap 
endif

echo -n "enter full path name of troff data filter (cat phototypesetter): "
set tf = ($<)
if ($#tf != 0) then
	echo -n "tf="$tf":" >> /etc/printcap 
endif

echo -n "enter full path name of raster image filter (cat phototypesetter): "
set vf = ($<)
if ($#vf != 0) then
	echo -n "vf="$vf":" >> /etc/printcap 
endif
