📄 nc.pod
字号:
# $Id: nc.pod,v 1.1.2.1 2003/10/14 10:54:24 edg Exp $=pod=head1 NAMEnc - Client program for NEdit text editor=head1 SYNOPSYSnc [B<-read>] [B<-create>] [B<-line> I<n> | B<+>I<n>] [B<-do> I<command>] [B<-ask>] [B<-noask>] [B<-svrname> I<name>] [B<-svrcmd> I<command>] [B<-lm> I<languagemode>] [B<-geometry> I<geometry> | B<-g> I<geometry>] [B<-icon> | B<-iconic>] [B<-display> I<[host]:server[.screen]>] [B<-timeout> I<seconds>] [B<-wait>] [B<-xrm> I<resourcestring>] [B<-V> | B<-version>] [B<-->] [file...]=head1 DESCRIPTIONB<nc> is the client interface to the NEdit text editor. A server can be startedexplicitly by running NEdit in server mode: nedit -serverIf no server is running, B<nc> will start one unless configured otherwise.Client/server mode is useful for integrating NEdit with software developmentenvironments, mailers, and other programs; or just as a quick way to open filesfrom the shell command line without starting a new NEdit session.=head1 OPTIONS=over=item B<-read>Open the file read-only regardless of the actual file protection.=item B<-create>Don't warn about file creation when a file doesn't exist.=item B<-line> I<n>, B<+>I<n>Go to line number I<n>.=item B<-do> I<command>Execute an NEdit macro or action on the file following the -do argument on thecommand line. Note that other files mentioned in the command line are notaffected. If you use this command without a filename, B<nc> would randomly choose onewindow to focus and execute the macro in.=item B<-ask>, B<-noask>Instructs B<nc> whether to automatically start a server if one is notavailable. This overrides the X resource `nc.autoStart'.=item B<-svrname> I<name>Explicitly instructs B<nc> which server to connect to, an instance ofL<nedit(1)> with a corresponding B<-svrname> argument. By naming servers, youcan run several simultaneously, and direct files and commands specifically toany one.=item B<-svrcmd> I<command>The command which B<nc> uses to start an NEdit server. It is also settable viathe X resource `nc.serverCommand', by default, I<"nedit -server">.=item B<-lm> I<languagemode>Initial language mode used for editing succeeding files.=item B<-geometry> I<geometry>, B<-g> I<geometry>The initial size and/or location of editor windows. The argument geometry hasthe form: [<width>x<height>][+|-][<xoffset>[+|-]<yoffset>]where `<width>' and `<height>' are the desired width andheight of the window, and `<xoffset>' and `<yoffset>' are thedistance from the edge of the screen to the window, + for top or left, - forbottom or right. B<-geometry> can be specified for individual files on thecommand line.=item B<-icon>, B<-iconic>Initial window state for succeeding files.=item B<-display> I<[host]:server[.screen]>The name of the X server to use. host specifies the machine, server specifiesthe display server number, and screen specifies the screen number. host orscreen can be omitted and default to the local machine, and screen 0.=item B<-timeout> I<seconds>Basic time-out period (in seconds) used in communication with an NEdit server.Default: 10 seconds. Also settable via the X resource `nc.timeOut'.Under rare conditions (such as a slow connection), it may be necessary toincrease the time-out period. In most cases, the default is fine. =item B<-wait>Instructs B<nc> not to return to the shell until all files givenare closed.Normally, B<nc> returns once the files given in its command lineare opened by the server. When this option is given, nc returnsonly after the last file given in this call is closed.Note that this option affects all files, not only the onesfollowing this option in the command line.=item B<-xrm> I<resourcestring> Set the value of an X resource to override a default value.=item B<-V>, B<-version> Prints version and build information, to be mentioned when reporting bugs andproblems. =item B<-->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. =back=head1 ENVIRONMENT=over=item DISPLAYNEdit requires an X-based workstation or X-Terminal. If you have used B<telnet>or B<rlogin> to access the host Unix system, set the Unix environment variablefor your display: % setenv DISPLAY devicename:0=back=head1 NOTESCommunication between L<nc(1)> and L<nedit(1)> is through the X display. So aslong as X windows is set up and working properly, B<nc> will work properlyas well. B<nc> uses the `DISPLAY' environment variable, the machine name andyour user name to find the appropriate server, meaning, if you have severalmachines sharing a common file system, B<nc> will not be able to find a serverthat is running on a machine with a different host name, even though it may beperfectly appropriate for editing a given file.In typical Unix style, arguments affect the files which follow them on thecommand line, for example:=over=item incorrect: nc file.c -line 25=item correct: nc -line 25 file.c=backFor more information see NEdit's online help, or I<nedit.doc> in the NEditdistribution kit.=head1 SEE ALSOnedit(1), X(1), mwm(1), ctags(1), etags(1)=head1 AUTHORSNEdit was written by Mark Edel, Joy Kyriakopulos, Christopher Conrad, JimClark, Arnulfo Zepeda-Navratil, Suresh Ravoor, Tony Balinski, Max Vohlken,Yunliang Yu, Donna Reid, Arne Forlie, Eddy De Greef, Steve LoBasso, AlexanderMai, Scott Tringali, Thorsten Haude, Steve Haehn, Andrew Hood, and Nathaniel Gray.=head1 COPYRIGHTThis program is free software; you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the Free SoftwareFoundation; either version 2 of the License, or (at your option) any laterversion.This program is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR APARTICULAR PURPOSE. See the GNU General Public License in the Help section"Distribution Policy" for more details. =cut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -