Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.sao.ru/hq/sts/linux/doc/nedit/macro/4/4-25.shtml
Дата изменения: Unknown
Дата индексирования: Sat Sep 11 22:18:24 2010
Кодировка:

Поисковые слова: comet
NEdit.org

.
.   
NEdit.org
   .

Home
 - News - Download - Documentation - Search - FTP     
.
.
  

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  

  
Visit our sponsor
Check Metrolink

© NEdit.org
1999-2001
All rights reserved


.