ldmud-3.2.9/doc/
ldmud-3.2.9/doc/efun/
ldmud-3.2.9/mud/
ldmud-3.2.9/mud/heaven7/
ldmud-3.2.9/mud/heaven7/lib/
ldmud-3.2.9/mud/lp-245/
ldmud-3.2.9/mud/lp-245/banish/
ldmud-3.2.9/mud/lp-245/doc/
ldmud-3.2.9/mud/lp-245/doc/examples/
ldmud-3.2.9/mud/lp-245/doc/sefun/
ldmud-3.2.9/mud/lp-245/log/
ldmud-3.2.9/mud/lp-245/obj/Go/
ldmud-3.2.9/mud/lp-245/players/lars/
ldmud-3.2.9/mud/lp-245/room/death/
ldmud-3.2.9/mud/lp-245/room/maze1/
ldmud-3.2.9/mud/lp-245/room/sub/
ldmud-3.2.9/mud/lp-245/secure/
ldmud-3.2.9/mud/morgengrauen/
ldmud-3.2.9/mud/morgengrauen/lib/
ldmud-3.2.9/mud/sticklib/
ldmud-3.2.9/mud/sticklib/src/
ldmud-3.2.9/mudlib/uni-crasher/
ldmud-3.2.9/pkg/
ldmud-3.2.9/pkg/debugger/
ldmud-3.2.9/pkg/diff/
ldmud-3.2.9/pkg/misc/
ldmud-3.2.9/src/autoconf/
ldmud-3.2.9/src/bugs/
ldmud-3.2.9/src/bugs/MudCompress/
ldmud-3.2.9/src/bugs/b-020916-files/
ldmud-3.2.9/src/bugs/doomdark/
ldmud-3.2.9/src/bugs/ferrycode/ferry/
ldmud-3.2.9/src/bugs/ferrycode/obj/
ldmud-3.2.9/src/bugs/psql/
ldmud-3.2.9/src/done/
ldmud-3.2.9/src/done/order_alist/
ldmud-3.2.9/src/done/order_alist/obj/
ldmud-3.2.9/src/done/order_alist/room/
ldmud-3.2.9/src/gcc/
ldmud-3.2.9/src/gcc/2.7.0/
ldmud-3.2.9/src/gcc/2.7.1/
ldmud-3.2.9/src/hosts/
ldmud-3.2.9/src/hosts/GnuWin32/
ldmud-3.2.9/src/hosts/amiga/NetIncl/
ldmud-3.2.9/src/hosts/amiga/NetIncl/netinet/
ldmud-3.2.9/src/hosts/amiga/NetIncl/sys/
ldmud-3.2.9/src/hosts/i386/
ldmud-3.2.9/src/hosts/msdos/byacc/
ldmud-3.2.9/src/hosts/msdos/doc/
ldmud-3.2.9/src/hosts/os2/
ldmud-3.2.9/src/hosts/win32/
ldmud-3.2.9/src/util/
ldmud-3.2.9/src/util/erq/
ldmud-3.2.9/src/util/indent/hosts/next/
ldmud-3.2.9/src/util/xerq/
ldmud-3.2.9/src/util/xerq/lpc/
ldmud-3.2.9/src/util/xerq/lpc/www/
Short: ed ideas
From: Matthew Julius <julius.2@wright.edu>
Date: Fri, 08 Jan 1999 16:29:08 -0500
Type: Feature
State: Unclassified

Something else from the MudOS CHANGELOG,
	* added a new interface for ed(), which is used if OLD_ED is not
	  defined in options.h
	  . Three new efuns replace ed():
	    string ed_start(string | void, int | void) - start a new ed
	           session on file file.  ed_start(foo, 1) means use
		   restricted mode.  Only one ed session may be started
		   per object.
	    string ed_cmd(string) - send the command line to ed
	    int query_ed_mode() - returns:
	         0 - the current object is at a normal ed prompt (':')
		-1 - the current object isn't in ed
		-2 - the current object is at the more prompt in the
		     middle of help
		>0 - the object is at a prompt for a line.  The number
		     is the line number.
	  . The string result of ed_cmd() and ed_start() is the output
	    that would have been sent to the user
	  . The mudlib is responsible for setting the user's prompt
	    (see query_ed_mode())
This is the right idea, but I really dislike the MudOS interface efuns.  If
compatibility is desired, however, I can't really object much.  Particularly,
my problem is with query_ed_mode(), which I think should return 0 if the
object is not in the editor.  Also, problems exist if it's desired to have
the ed prompt print the current line number.  This looks to be impossible
using query_ed_mode().  The -2 value, being in the middle of ed help, should
be put into ed_cmd().  If ed_cmd() returned the help as a string the mudlib
could determine how to display it--which is nice for users that have more
than 20 lines on their screen.  Like I said, these additions to ed() are
the right idea, but the wrong implementation.