MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | void ed() |
| 3 | void ed(string file) |
| 4 | void ed(string file, string func) |
| 5 | |
| 6 | DESCRIPTION |
| 7 | Calling without arguments will start the editor ed with the |
| 8 | name of the error file, that was returned by |
| 9 | master->valid_read(0, geteuid(this_player()), "ed_start", |
| 10 | this_player()), usually something like ~/.err. If that file is |
| 11 | empty, ed will immediatly exit again. |
| 12 | Calling ed() with argument file will start the editor on the |
| 13 | file. If the optional argument func is given, this function |
| 14 | will be called after exiting the editor. |
| 15 | |
| 16 | The editor ed is almost ed(1) compatible. |
| 17 | |
| 18 | SEE ALSO |
| 19 | enable_commands(E), query_editing(E), ed0(LPC) |