2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Prompt CLI command
9 /*****************************************************************************
25 Specify the prompt for the current shell.
29 PROMPT -- The prompt to set as a string. The following commands
30 may be used in a printf kind of style.
33 S -- name of the current directory
34 R -- return code of the last operation
36 If no prompt is specified "%N.%S> " is used as default.
40 Standard DOS return codes.
46 Prompt "Oepir Risti.%N> " gives:
48 Oepir Risti.10> (if the CLI number was 10)
54 dos.library/SetPrompt()
60 16-12-99 SDuvan Implemented
62 ******************************************************************************/
65 #include <dos/dosextens.h>
66 #include <proto/dos.h>
68 #include <aros/shcommands.h>
71 AROS_SHA(STRPTR
, ,PROMPT
, , "%N.%S> "))
76 if (SetPrompt(SHArg(PROMPT
)) == DOSFALSE
)
78 PrintFault(IoErr(), "Prompt");