home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best Objectech Shareware Selections
/
UNTITLED.iso
/
boss
/
word
/
text
/
019
/
man.sl
< prev
next >
Wrap
Text File
|
1993-01-19
|
900b
|
37 lines
;;
;; execute man then remove backspaces
;;
( [clean buf cmd subj ctrl_h] "*manual-entry*" =buf
"Cleaning man page..." =clean
"man:" "" read_mini =subj
subj strlen {return} !if
"man " subj strcat " 2> /dev/null" strcat =cmd
buf pop2buf
erase_buffer
"Getting man page..." message flush
cmd shell_cmd
clean message flush
8 char =ctrl_h
bob "_" ctrl_h strcat "" 0 replace ;; remove _^H combinations
bob {ctrl_h fsearch} {del del} while ;; remove remaining overstrikes
;;
;; remove multiple blank lines--- should make this standalone
;;
bob {"\n" looking_at}{del} while
{1 down} {
eol bolp
{ 1 down {break} !if
{{eol bolp}{eobp 0 ==} andelse} {del} while
} if
} while
bob
;;
;; set buffer no modified
;;
getbuf_info pop 0 setbuf_info
clean "done" strcat message flush
) unix_man