|
View manfile
[Back]
Opens a new NEdit window for a manfile, if there's
currently a selection, the selection text is used as the name of the manfile,
otherwise you can type the name into a dialog box.
If anyone can work out how to get man (or troff) to format it's output
for a specfied number of columns, please let me know...
if ($selection_start == -1)
c = string_dialog("man page for:")
else
c = get_selection()
p = shell_command("man "c, "")
p = replace_in_string(p, ".\b", "", "regex")
p = replace_in_string(p, "\n\n\n.*$\n\n\n\n\n\n.*$\n\n", "", "regex")
p = substring(p, 2, length(p))
write_file(p, "/tmp/man "c)
open("/tmp/man "c)
[Back]
Released on Wed, 21 Nov 2001
by
C. Denat
|
|