DragonFly BSD
DragonFly users List (threaded) for 2005-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Emergency Editors (was Stabble Tag move)

From: Bill Hacker <wbh@xxxxxxxxxxxxx>
Date: Tue, 15 Mar 2005 00:46:52 +0800

B1389@xxxxxxxxxxxxxxxxx> <42359a84$0$719$415eb37d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <200503141554.j2EFs0wI047484@xxxxxxxxxxxxxxxxxxxx>
In-Reply-To: <200503141554.j2EFs0wI047484@xxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 64
Message-ID: <4235bffc$0$717$415eb37d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
X-Trace: 1110818813 crater_reader.dragonflybsd.org 717
Xref: crater_reader.dragonflybsd.org dragonfly.users:2111

Matthew Dillon wrote:

>     I think having an emergency editor is reasonable, but it would only make
>     sense if it were a full screen editor (since 'ed' handles non-full-screen
>     editing).
>     This is what I would recommend:
> 	* editor hard-codes simple ANSI escape sequences for cursor positioning
> 	  and scrolling.

ACK.  ANSI now more universal than not...

>  No curses.

For damn sure...

> 	* editor uses tty rows/columns information to determine rows and columns

ACK.  Agree rows.  Columns perhaps problematic. Display 'streamed' as-is,
terminal device wraps to fit the available screen - i.e. no inserting of any
'soft' newlines for 'pretty'.

(I use HP-200-LX in 130 column VT-100 mode - and magnifying eyeglasses!)

> 	* simple insert, delete, split line, join line, bi-mode (insert mode,
> 	  overwrite mode), load, and save.

And block moves.  Dirt simple if a reasonable limit on buffer size.  At 
two full lines at a time, 16 probably max, 8 optimal on a limited screen 
else one is at the mercy of scolling.  Dodgy on a high-latency link HKG-ZRH.

>     Now, in my old commodore pet days I could write such an editor, in 6502
>     machine code, directly from the machine code monitor, in about 4 hours.  So
>     it should be a snap for one of you guys to do it, right ?

You had a *ROM monitor*?  I had a box full of favorite paper tapes - 
mylar, even
for the most-often used ones...!

>     In anycase, if someone wants to write such a beast... simple stupid emergency
>     editor, I believe it would be a worthy addition to /bin.
> 					-Matt
> 					Matthew Dillon 
> 					<dillon@xxxxxxxxxxxxx>

'ssee' it is, then ....... (or 'dee' - DragonFly Emergency Editor)  and 
using a
C 'lib' is cheatin'

- but cheating is pre-approved if it JF gets the job done ..  ;-)

IOW - really ought to just alter a few things on one or more
of the several existing small footprint BSDL'ed editors
and get on with more important work...


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]