‼
To give you the best experience, this site uses cookies. Continuing to use
9bis.net
means you agree to our use of cookies.
prompt
(
en )
Last modification : 2013/01/26 19:16
Index
/
Recent changes
/
News
/
Forum
/
Download
/
Contact
Edit (
Help
) /
Rename
/
History
The '''prompt''' command is used to redefine the first level command prompt when '''msh''' is used in interactive mode. The default prompt is simply '''msh> '''. Without any parameter this command restore the prompt to this default value. Here is an example of useful prompt:{msh> prompt "\n^[%d^]\n%u@%f2%h%fF> %n" ^[C:\TEMP^] Cyd^@CONCORDE> }A good idea is to add this command to the '''[.mshrc|?page=Init_Files]''' file. Some variables are used to make the prompt more dynamic: '|| ||%bxx||change de background color to xx|| ||%d||the current directory|| ||%fxx||change de foreground color to xx|| ||%h||hostname of the machine|| ||%i||change the current font to blink mode|| ||%j||date of the current day|| ||%n||change the current font to normal mode|| ||%o||change the current font to bold mode|| ||%p||PID of the current process|| ||%r||change the current font to underline mode|| ||%s||date and time using the format defined into the MSH_DATE_FORMAT variable|| ||%t||current time (format %H:%M:%S)|| ||%u||username|| ||\n||carriage return|| ||%_||the character %|| ||' --- The second level command prompt is '''2> ''' and can't be redefined. And it is the same with all the next levels.
Password :
Wiki utilisant
PumaWiki 1.0
2025/05/09 15:10 -- en -- 3.136.22.241