LPC Library Functions: ed_start

NAME

ed_start() - start an ed session

SYNOPSIS

string ed_start(string file | void, int restricted | void)

DESCRIPTION

The driver's internal editor is started, optionally loading 'file' for editing. The resulting output is returned. The editor session remains active, and further calls to ed_cmd() can be used to send commands to it.

Unlike the older ed() efun, ed_start() does not provide a user interface; this is strictly the mudlib's responsibility.

The optional 'restricted' flag limits the editor's capabilities, and prevents the following operations:

  • inserting another file into the current buffer (the 'e', 'E', and 'r' commands).
  • saving using an alternate file name (the 'f', 'w', and 'W' commands).

Only one ed session can be active per object at a time.

This efun is available only if the driver flag OLD_ED is not defined.

SEE ALSO

ed_cmd(), query_ed_mode(), ed()

Page design by Frank Jacquette & Tim Hollebeek
Copyright (C) 1998 Tim Hollebeek & Frank Jacquette
Back to MudOS