Merge branch 'vendor/MPFR' into gcc441
[dragonfly.git] / bin / mined / mined.1
1 .\" Copyright (c) 2005 The DragonFly Project.  All rights reserved.
2 .\"
3 .\" This manual page is derived from software contributed to The
4 .\" DragonFly Project by Matthew Dillon <dillon@backplane.com>
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
8 .\" are met:
9 .\"
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\"    notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\"    notice, this list of conditions and the following disclaimer in
14 .\"    the documentation and/or other materials provided with the
15 .\"    distribution.
16 .\" 3. Neither the name of The DragonFly Project nor the names of its
17 .\"    contributors may be used to endorse or promote products derived
18 .\"    from this software without specific, prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23 .\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
24 .\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25 .\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
30 .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 .\" SUCH DAMAGE.
32 .\"
33 .\" $DragonFly: src/bin/mined/mined.1,v 1.8 2007/07/30 02:09:22 swildner Exp $
34 .\"
35 .Dd March 15, 2005
36 .Dt MINED 1
37 .Os
38 .Sh NAME
39 .Nm mined
40 .Nd emergency text editor
41 .Sh SYNOPSIS
42 .Nm
43 .Op Ar file
44 .Sh DESCRIPTION
45 The
46 .Nm
47 utility is a simple text editor primarily designed for use when a
48 system is booted single-user and has no
49 .Pa /usr
50 (and thus no access to
51 .Xr vi 1 ) .
52 Simple help can be obtained by hitting the F1 key while in the editor.
53 CTRL+W writes out the file and CTRL+X exits the editor.
54 .Sh KEY BINDINGS
55 .Bl -tag -width "Right arrow" -compact -offset indent
56 .It F1
57 HELP
58 .It F2
59 File status
60 .It F3
61 Forward search
62 .It F4
63 Global replace
64 .It Shift+F3
65 Backwards search
66 .It Shift+F4
67 Line replace
68 .It Up arrow
69 Move up one line
70 .It Down arrow
71 Move down one line
72 .It Left arrow
73 Move left one character
74 .It Right arrow
75 Move right one character
76 .It Home
77 File top
78 .It End
79 File bottom
80 .It Page Up
81 Scroll one page up
82 .It Page Down
83 Scroll one page down
84 .It Esc
85 Repeat last cmd # times
86 .It CTRL+A
87 Start of line
88 .It CTRL+B
89 Word backward
90 .It CTRL+C
91 Save from marked location to current cursor location
92 .It CTRL+D
93 Reverse scroll
94 .It CTRL+E
95 End of line
96 .It CTRL+F
97 Word forward
98 .It CTRL+G
99 Insert a file at cursor
100 .It CTRL+K
101 Delete from marked location to current cursor location
102 .It CTRL+L
103 Erase and redraw screen
104 .It CTRL+N
105 Delete next word
106 .It CTRL+P
107 Delete previous word
108 .It CTRL+Q
109 Insert the contents of the save file into new file
110 .It CTRL+S
111 Run shell
112 .It CTRL+T
113 Delete to end of line
114 .It CTRL+U
115 Forward scroll
116 .It CTRL+V
117 Visit another file
118 .It CTRL+W
119 Write current file
120 .It CTRL+X
121 Exit
122 .It CTRL+Y
123 Insert the contents of the save file at cursor
124 .It CTRL+\e\\&
125 Abort current operation
126 .It CTRL+@
127 Set mark
128 .It CTRL+^
129 Screen top
130 .It CTRL+_
131 Screen bottom
132 .It CTRL+]
133 Goto line #
134 .El
135 .Sh SEE ALSO
136 .Xr ed 1 ,
137 .Xr ee 1 ,
138 .Xr vi 1
139 .Sh CAVEATS
140 The terminal type is hardwired to either an xterm or cons25 (video console).
141 The editor understands stty
142 rows and columns but is otherwise meant to be fairly minimal in scope.
143 .Sh HISTORY
144 The
145 .Nm
146 utility first appeared in Minix.
147 It was brought into PicoBSD for a
148 time, and some work was done on it, then later brought into
149 .Dx
150 where some additional usability work was done on it.