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 45The 46.Nm 47utility is a simple text editor primarily designed for use when a 48system is booted single-user and has no 49.Pa /usr 50(and thus no access to 51.Xr vi 1 ) . 52Simple help can be obtained by hitting the F1 key while in the editor. 53CTRL+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 57HELP 58.It F2 59File status 60.It F3 61Forward search 62.It F4 63Global replace 64.It Shift+F3 65Backwards search 66.It Shift+F4 67Line replace 68.It Up arrow 69Move up one line 70.It Down arrow 71Move down one line 72.It Left arrow 73Move left one character 74.It Right arrow 75Move right one character 76.It Home 77File top 78.It End 79File bottom 80.It Page Up 81Scroll one page up 82.It Page Down 83Scroll one page down 84.It Esc 85Repeat last cmd # times 86.It CTRL+A 87Start of line 88.It CTRL+B 89Word backward 90.It CTRL+C 91Save from marked location to current cursor location 92.It CTRL+D 93Reverse scroll 94.It CTRL+E 95End of line 96.It CTRL+F 97Word forward 98.It CTRL+G 99Insert a file at cursor 100.It CTRL+K 101Delete from marked location to current cursor location 102.It CTRL+L 103Erase and redraw screen 104.It CTRL+N 105Delete next word 106.It CTRL+P 107Delete previous word 108.It CTRL+Q 109Insert the contents of the save file into new file 110.It CTRL+S 111Run shell 112.It CTRL+T 113Delete to end of line 114.It CTRL+U 115Forward scroll 116.It CTRL+V 117Visit another file 118.It CTRL+W 119Write current file 120.It CTRL+X 121Exit 122.It CTRL+Y 123Insert the contents of the save file at cursor 124.It CTRL+\e\\& 125Abort current operation 126.It CTRL+@ 127Set mark 128.It CTRL+^ 129Screen top 130.It CTRL+_ 131Screen bottom 132.It CTRL+] 133Goto line # 134.El 135.Sh SEE ALSO 136.Xr ed 1 , 137.Xr ee 1 , 138.Xr vi 1 139.Sh CAVEATS 140The terminal type is hardwired to either an xterm or cons25 (video console). 141The editor understands stty 142rows and columns but is otherwise meant to be fairly minimal in scope. 143.Sh HISTORY 144The 145.Nm 146utility first appeared in Minix. 147It was brought into PicoBSD for a 148time, and some work was done on it, then later brought into 149.Dx 150where some additional usability work was done on it. 151