The nedit
nc uses the ` DISPLAY' environment variable, the machine name and your user name to find the appropriate server, meaning, if you have several machines sharing a common file system, nc will not be able to find a server that is running on a machine with a different host name, even though it may be perfectly appropriate for editing a given file.
THE NEDIT WINDOWS
So as long as X windows is set up and working properly, nc will work properly as well. NOTES Communication between nc(1) and nedit(1) is through the X display. If you have used telnet or rlogin to access the host Unix system, set the Unix environment variable for your display: ENVIRONMENT DISPLAY NEdit requires an X-based workstation or X-Terminal. This is so NEdit can access files that begin with the dash character. Treats all subsequent arguments as file names, even if they start with a dash. V, -version Prints version and build information, to be mentioned when reporting bugs and problems. group Open all subsequent files as tabs in a new window. untabbed Open all subsequent files in new windows. tabbed Open all subsequent files in new tabs. xrm resourcestring Set the value of an X resource to override a default value. Note that this option affects all files, not only the ones following this option in the command line.
When this option is given, nc returns only after the last file given in this call is closed.
Normally, nc returns once the files given in its command line are opened by the server. wait Instructs nc not to return to the shell until all files given are closed. Under rare conditions (such as a slow connection), it may be necessary to increase the time-out period. Also settable via the X resource `nc.timeOut'. timeout seconds Basic time-out period (in seconds) used in communication with an NEdit server. host or screen can be omitted and default to the local machine, and screen 0. host specifies the machine, server specifies the display server number, and screen specifies the screen number. display :server The name of the X server to use. icon, -iconic Initial window state for succeeding files. geometry can be specified for individual files on the command line. Where `' and `' are the desired width and height of the window, and `' and `' are the distance from the edge of the screen to the window, + for top or left, - for bottom or right. geometry geometry, -g geometry The initial size and/or location of editor windows. lm languagemode Initial language mode used for editing succeeding files. It is also settable via the X resource `nc.serverCommand', by default, ``nedit -server''. svrcmd command The command which nc uses to start an NEdit server. By naming servers, you can run several simultaneously, and direct files and commands specifically to any one. svrname name Explicitly instructs nc which server to connect to, an instance of nedit(1) with a corresponding -svrname argument. This overrides the X resource `nc.autoStart'. ask, -noask Instructs nc whether to automatically start a server if one is not available. If you use this command without a filename, nc would randomly choose one window to focus and execute the macro in. do command Execute an NEdit macro or action on the file following the -do argument on the command line. create Don't warn about file creation when a file doesn't exist. OPTIONS -read Open the file read-only regardless of the actual file protection.
THE NEDIT SOFTWARE
Client/server mode is useful for integrating NEdit with software development environments, mailers, and other programs or just as a quick way to open files from the shell command line without starting a new NEdit session. If no server is running, nc will start one unless configured otherwise. A server can be started explicitly by running NEdit in server mode: DESCRIPTION nc is the client interface to the NEdit text editor. NAME nc - Client program for NEdit text editor SYNOPSYS nc