nc - Client program for NEdit text editor


SUBMITTED BY: Guest

DATE: June 6, 2014, 9:01 a.m.

FORMAT: Text only

SIZE: 5.1 kB

HITS: 3279

  1. NAME
  2. nc - Client program for NEdit text editor
  3. SYNOPSYS
  4. nc [-read] [-create] [-line n | +n] [-do command]
  5. [-ask] [-noask] [-svrname name] [-svrcmd command]
  6. [-lm languagemode]
  7. [-geometry geometry | -g geometry] [-icon | -iconic]
  8. [-display [host]:server[.screen]]
  9. [-timeout seconds] [-wait]
  10. [-xrm resourcestring] [-V | -version]
  11. [--] [file...]
  12. DESCRIPTION
  13. nc is the client interface to the NEdit text editor. A server can be started explicitly by running NEdit in server mode:
  14. nedit -server
  15. If no server is running, nc will start one unless configured otherwise. 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.
  16. OPTIONS
  17. -read
  18. Open the file read-only regardless of the actual file protection.
  19. -create
  20. Don't warn about file creation when a file doesn't exist.
  21. -line n, +n
  22. Go to line number n.
  23. -do command
  24. Execute an NEdit macro or action on the file following the -do argument on the command line. Note that other files mentioned in the command line are not affected.
  25. If you use this command without a filename, nc would randomly choose one window to focus and execute the macro in.
  26. -ask, -noask
  27. Instructs nc whether to automatically start a server if one is not available. This overrides the X resource `nc.autoStart'.
  28. -svrname name
  29. Explicitly instructs nc which server to connect to, an instance of nedit(1) with a corresponding -svrname argument. By naming servers, you can run several simultaneously, and direct files and commands specifically to any one.
  30. -svrcmd command
  31. The command which nc uses to start an NEdit server. It is also settable via the X resource `nc.serverCommand', by default, ``nedit -server''.
  32. -lm languagemode
  33. Initial language mode used for editing succeeding files.
  34. -geometry geometry, -g geometry
  35. The initial size and/or location of editor windows. The argument geometry has the form:
  36. [<width>x<height>][+|-][<xoffset>[+|-]<yoffset>]
  37. where `<width>' and `<height>' are the desired width and height of the window, and `<xoffset>' and `<yoffset>' are the distance from the edge of the screen to the window, + for top or left, - for bottom or right. -geometry can be specified for individual files on the command line.
  38. -icon, -iconic
  39. Initial window state for succeeding files.
  40. -display [host]:server[.screen]
  41. The name of the X server to use. host specifies the machine, server specifies the display server number, and screen specifies the screen number. host or screen can be omitted and default to the local machine, and screen 0.
  42. -timeout seconds
  43. Basic time-out period (in seconds) used in communication with an NEdit server. Default: 10 seconds. Also settable via the X resource `nc.timeOut'.
  44. Under rare conditions (such as a slow connection), it may be necessary to increase the time-out period. In most cases, the default is fine.
  45. -wait
  46. Instructs nc not to return to the shell until all files given are closed.
  47. Normally, nc returns once the files given in its command line are opened by the server. When this option is given, nc returns only after the last file given in this call is closed. Note that this option affects all files, not only the ones following this option in the command line.
  48. -xrm resourcestring
  49. Set the value of an X resource to override a default value.
  50. -V, -version
  51. Prints version and build information, to be mentioned when reporting bugs and problems.
  52. --
  53. Treats all subsequent arguments as file names, even if they start with a dash. This is so NEdit can access files that begin with the dash character.
  54. ENVIRONMENT
  55. DISPLAY
  56. NEdit requires an X-based workstation or X-Terminal. If you have used telnet or rlogin to access the host Unix system, set the Unix environment variable for your display:
  57. % setenv DISPLAY devicename:0
  58. NOTES
  59. Communication between nc(1) and nedit(1) is through the X display. So as long as X windows is set up and working properly, nc will work properly as well. 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.
  60. In typical Unix style, arguments affect the files which follow them on the command line, for example:
  61. incorrect:
  62. nc file.c -line 25
  63. correct:
  64. nc -line 25 file.c
  65. For more information see NEdit's online help, or nedit.doc in the NEdit distribution kit.

comments powered by Disqus