⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ditroff

📁 早期freebsd实现
💻
字号:
#! /bin/csh -fset troff = /usr/local/troff_pset dterm = (/usr/local/dterm -m -c)#! /bin/csh -f			These three lines come from Makefile# set troff = /usr/local/troff_p# set dterm = (/usr/local/dterm -m -c)set typesetter = -Pipset lineprinter = -Pvxset type = -Tipif ($?PRINTER) then	set typesetter = -P$PRINTER	set lineprinter = -P$PRINTER	set type = -T$PRINTERendifif ($?TYPESETTER) then	set typesetter = -P$TYPESETTER	set type = -T$TYPESETTERendifset lpr = /usr/ucb/lprumask 0set flags=() noglob files=() rv1=-rv1unset ttop:	if ($#argv > 0) then		switch ($argv[1])		case -z:		case -a:			set flags = ($flags $argv[1])		case -t:			set t			shift argv			goto top		case -Pversatec:		case -Pvp:		case -W:			set typesetter = -Pvp			set type = -Tvp			shift argv			goto top		case -Pxerox:		case -Ppress:		case -Pdp:			set typesetter = -Pdp			set type = -Tdp			shift argv			goto top		case -Pipress2:		case -Pop:			set typesetter = -Pop			set type = -Tdp			shift argv			goto top		case -Pimagen:		case -Pip:		case -I:			set typesetter = -Pip			set type = -Tip			shift argv			goto top		case -Pimagen-cx:		case -P300:		case -Pcx:			set typesetter = -Pcx			set type = -Tcx			shift argv			goto top		case -Papple-lz:		case -Plazy:		case -Plz:			set typesetter = -Plz			set type = -Tpsc			shift argv			goto top		case -Paps:			set typesetter = -Paps			set type = -Taps			shift argv			goto top		case -Pter:			set typesetter = -Pter			set type = -Tter			shift argv			goto top		case -P*: 			set typesetter = $argv[1]			if ($?gottype) set type = $argv[1]			shift argv			goto top		case -T*: 			set type = $argv[1]			set gottype			shift argv			goto top		case -F*:			set flags = ($flags $argv[1])			shift argv			goto top		case -:			set files = ($files -)			shift argv			goto top		case -*:			set flags = ($flags $argv[1])			shift argv			goto top		default:			set files = ($files $argv[1])			shift argv			goto top		endsw	endifswitch ($type)case -Tvp:	set rv1=""	breakswcase -Tlz:	set type = -Tpsc	breakswcase -Taps:	set troff=/usr/old/ditroff	set rv1="-rv2"	# incomplete, need to replace lpr	set t	breakswendswif ($#files > 0) then	set name = $files[1]else	set name = ditroffendifif ($?t) then    if ($typesetter == ter) then	$troff -Tter $rv1 $flags $files | $dterm    else	$troff $type $rv1 $flags $files    endifelse if ($typesetter == ter) then    $troff -Tter $rv1 $flags $files | $dterm -L | $lpr $lineprinter -J$nameelse    $troff $type $rv1 $flags $files | $lpr $typesetter -n -J$nameendif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -