blob: 6231bb4e509f9d5a29f257368e39f0bada46ba4b [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
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
11DESCRIPTION
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
20HISTORY
21 Introduced in LDMud 3.3.163.
22
23SEE ALSO
24 hooks(C), print_prompt(H)