aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-14 03:31:21 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-14 03:31:21 +0300
commit9b3a91e493d6b708709f49f2324f83de1ae6aec6 (patch)
treea3a362edac45cd48c94b5c6f072086d087ed9dd4
parent4254346a03a06bb612895d43329651e36ad3b482 (diff)
downloadsciteco-9b3a91e493d6b708709f49f2324f83de1ae6aec6.tar.gz
sciteco(1): added EXAMPLES section
-rw-r--r--doc/sciteco.1.in49
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/sciteco.1.in b/doc/sciteco.1.in
index 0d2662e..f57415c 100644
--- a/doc/sciteco.1.in
+++ b/doc/sciteco.1.in
@@ -444,6 +444,55 @@ It may also be used as a template for
.BR $SCITECOCONFIG/.teco_css .
.
.
+.SH EXAMPLES
+.
+.LP
+Without any argument, \*(ST will open the last editor session
+(see \(lqsession.tes\(rq).
+To edit one or more files, just specify them on the command line:
+.RS
+.SCITECO_TT
+.EX
+@PACKAGE@ main.c
+.SCITECO_TT_END
+.EE
+.RE
+.
+.LP
+You can specify which line to open either before or after the file name:
+.RS
+.SCITECO_TT
+.EX
+@PACKAGE@ +70 main.c error.c:23
+.SCITECO_TT_END
+.EE
+.RE
+.
+.LP
+If the program fails to start up after editing
+.B $SCITECOCONFIG/.teco_ini
+or after upgrading \*(ST, you can prevent loading the profile macro:
+.RS
+.SCITECO_TT
+.EX
+@PACKAGE@ --no-profile
+.SCITECO_TT_END
+.EE
+.RE
+.
+.LP
+After startup of the interactive mode, use the \(lqEB~/.teco_ini\fB$\fP\(rq
+command to load and fix up the profile macro.
+In order to execute a stand-alone script or custom profile macro:
+.RS
+.SCITECO_TT
+.EX
+@PACKAGE@ -m script.tes
+.SCITECO_TT_END
+.EE
+.RE
+.
+.
.SH SEE ALSO
.
.TP