Ed start

来自MudWiki
Ivy讨论 | 贡献2021年9月20日 (一) 10:56的版本 (创建页面,内容为“=== NAME === ed_start() - start an ed session === SYNOPSIS === string ed_start(string file | void, int restricted | void) === DESCRIPTION === This e…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

NAME

   ed_start() - start an ed session

SYNOPSIS

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

DESCRIPTION

   This efun is available only if __OLD_ED__ is not defined.

   The 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.

   If restricted is 1, the commands that change which file is being edited will be disabled.

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