Документ взят из кэша поисковой машины. Адрес оригинального документа : http://jet.sao.ru/hq/sts/linux/doc/nedit/macro/4/4-25.shtml
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 10:43:26 2012
Кодировка:

Поисковые слова: sunrise
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


.