From owner-freebsd-current@FreeBSD.ORG Mon Jun 20 05:43:12 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2970D16A41C for ; Mon, 20 Jun 2005 05:43:12 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E571F43D1D for ; Mon, 20 Jun 2005 05:43:11 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.9p2/8.12.9) with ESMTP id j5K5hBYk063786 for ; Sun, 19 Jun 2005 22:43:11 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id j5K5hBcO063785; Sun, 19 Jun 2005 22:43:11 -0700 (PDT) (envelope-from dillon) Date: Sun, 19 Jun 2005 22:43:11 -0700 (PDT) From: Matthew Dillon Message-Id: <200506200543.j5K5hBcO063785@apollo.backplane.com> To: freebsd-current@freebsd.org References: <20050617214658.GA41804@troutmask.apl.washington.edu> <58826.1119044951@critter.freebsd.dk> <20050617220222.GA42080@troutmask.apl.washington.edu> <20050617220653.GA114@saltmine.radix.net> <20050617221353.GA48584@troutmask.apl.washington.edu> <20050618061603.GM50157@cirb503493.alcatel.com.au> <20050619033904.GB3061@dragon.NUXI.org> <20050619070640.GQ50157@cirb503493.alcatel.com.au> <42B5C0BC.40904@freebsd.org> <20050619193939.GR50157@cirb503493.alcatel.com.au> <20050619214417.GB18943@dragon.NUXI.org> Subject: Re: Replace /rescue/vi with mined(1) from DragonFlyBSD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 05:43:12 -0000 Kinda silly to have a war over a 37 KB static binary. We brought in mined in order to have a static binary based editor that did not require /usr or /tmp to work properly, for system recovery and single-user operation. That's all. The main thing was to have an editor that worked without a mounted /usr. That means no termcap, no curses, no auxillary configuration files, no citrus/ctype, no nothing. It's meant to be an editor for emergency situations when the person can't boot the live CD to get a full environment. I did verify with the author that it had been placed under the BSD license. As far as cons25 vs vt100 ... both accept basic ANSI escape sequences and that is what the editor outputs. The escape sequences generated when you hit, e.g. function keys, are sufficiently different that I simply modified the editor to recognizes BOTH sets (which it almost did already). I did some other minor work on it, e.g. adding support for ^Z, doing an ioctl to query the stty rows and columns, and cleaning up the ANSI output sequences and input parsing code to handle both cons25 and vt100/ansi. I rearranged a few keys to make the editor conform better to modern UNIX expectations. That's it. I think it makes an excellent emergency editor when all you have is a root partition and I have used it in that capacity on numerous occassions. I would like to thank the PicoBSD folks for doing the initial legwork, we pulled their changes out of the trash bin and then reworked and enhanced them from the base sources in the minix distribution. -Matt