MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | #include <sys/driver_hooks.h> |
| 3 | |
| 4 | set_driver_hook(H_DEFAULT_PROMPT, value) |
| 5 | |
| 6 | <value> being: |
| 7 | |
| 8 | string <prompt> |
| 9 | string <closure>() |
| 10 | |
| 11 | DESCRIPTION |
| 12 | Optional hook for the command prompt. If this hook is not used, |
| 13 | the driver will use "> " as the command prompt. |
| 14 | |
| 15 | The hook can be given as string or as closure. If it is a |
| 16 | closure, it is called with the commandgiver being the calling |
| 17 | object. If the result is a string, it will be printed, |
| 18 | otherwise ignored. |
| 19 | |
| 20 | HISTORY |
| 21 | Introduced in LDMud 3.3.163. |
| 22 | |
| 23 | SEE ALSO |
| 24 | hooks(C), print_prompt(H) |