Is there a way to receive information from NEDIT in server mode?

Thorsten Haude yoo at vranx.de
Thu Dec 27 12:42:33 CET 2007


Hi,

* Thorsten Haude wrote (2007-12-27 11:31):
>* Thomas Soong wrote (2007-07-28 19:54):
>>I know that can send macro and routine to NEDIT server, but is there a way 
>>to receive information also?  For example, I want to write a program that 
>>interacts with NEDIT but it needs to track certain things, such as the 
>>current line number etc.  Is there a way for a client to find out and 
>>receive the current line number that NEDIT is on?
>
>If it can use the output of a command, yes.
>
>yooden at eumel % n source/file.c -do 't_print($line "\n")'
>572

Oops, sorry, that was less than clear. Because 'nc' is sickeningly
long to type, I use an alias mapping it to just 'n'. For general use,
the above line would be:
    nc source/file.c -do 't_print($line "\n")'


Thorsten
-- 
Next to the originator of a good sentence is the first quoter of it.
    - Ralph Waldo Emerson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.nedit.org/pipermail/discuss/attachments/20071227/1227a630/attachment.bin


More information about the Discuss mailing list