
Real Simple Ed 

Rsed is a real simple editor program designed for people who are calling
into a machine to be able to edit files on a variaty of differen't 
terminals and/or computers WITHOUT haveing to learn an editor.  Rsed
is very easy to use and tries to be as "user friendly" as possable.

Defines:
WSEDHELP          Where the help file resieds.
MAXREPLACE        malloc size for the replacement string
BEGINDOTS         size of file to warrent nifty-userfriendly dots to show
                  that we are doing something.

Options:
    -a ##	load file and append after line ##
    -w 		write the file out when you quit the editor (silent)
    -D		debug (used for fiddling with the linked list)


Porting:
    rsed usese curses just for turning off echo and setting crmod, 
    if you don't want to fool with that, or don't have curses you will
    have to fix up your own terminal handler. The following are the
    function calls to worry about.
    	savetty() save the current modes of the terminal for later recall
    	initscr() sets up curses.
    	crmode()  puts the terminal into One Charicter At A Time mode.
    	resetty() restores the previously saved tty information.
	
    rsed also uses getopt() most later version unix's have this, if
    yours does not, a public domain version of it is available thru
    comp.sources.unix.
    
    Othewise rsed has been known to compile without changes on 4.1 BSD (vax),
    4.2 BSD (vax) 4.3 BSD (vax), Ultrix (vax) sco (%d86) micro, Tandy 6000,
    Masscomp, NCR tower, ATT 3b2 and a logic processes Mpulse. So it ought
    to compile on yours.  If your compiler can't handle macros you will
    need to work on the RANGE marco in multi.c.  Otherwise
    please let me know of any problems and may the source be with you %s.


Author:
    Douglas L. Davis
    (Lawnet, Texas R&D office)
    1030 Pleasent Valley Lane
    Arlington Texas  76015
    (817)-467-3740
    { sys1 || texbell || lawnet }!letni!doug
    

Function call        Description
main            Main routine, parses args, calls edit.
add             adds a char array below line number specified.
append          asks user for lines to add().
boom            debug sigint routine.
change          asks user for a replacement line.
clear_stuff     frees the entire linked list.
command         does the command prompting
edit            if nessasary creates the file, then loads it.
find            returns a line with a pre-specified string
getline         returns a LINE pointer for the specified line number.
getlineno       gets a line number from the tty.
getstring       gets a string from the tty.
global_replace  replaces a specified string with another full file.
go_fish         asks user for a search string then calls find with it.
go_global       asks user for a search string and a replacement string.
help            concatinate the rsedhelp file.
insert          asks user for a line.
loadem          reads a file into the editor buffer.
makenum         convert a string to a numeric entry.
printline       prints a line out of the editor.
replace         replace the text of a specified line with a user buf
reset_find      clears the global search stuff.
saveem          saves the editor buf to a file.
setfind         sets up the global search stuff.
setline         set the current line to a specified line number.
srch_n_replace  do a search / replace within a (LINE *) struct
srchrep         user interface for srch_n_replace.
strappend       like strcat() but returns then end of it's string.
strindex        returns a pointer to a string found in another string.
subtract        removes a spacified line from the buffer.
yesno           asks for a yes or no answer from the user.
multi_print     ask for starting line / ending line then for()'s printline()
multi_delete    ask for starting line / ending line then for()'s subtract()
multi_change    ask for starting line / ending line then for()'s change()
