SYNOPSIS

#include <sys/driver_hooks.h>
set_driver_hook( H_DEFAULT_PROMPT, value)

DESCRIPTION

Arguments:
  • value (string) – <prompt>
  • value (closure) – string <closure>()

Optional hook for the command prompt. If this hook is not used, the driver will use “> ” as the command prompt.

The hook can be given as string or as closure. If it is a closure, it is called with the commandgiver being the calling object. If the result is a string it will be printed, otherwise it will be ignored.

HISTORY

  • introduced (3.3.163)