fn: prompt.char
[contents]

Contents

Syntax

The syntax for prompt.char calls is:

f++:  
prompt.char(char)

n++:  
@prompt.char(char)

Description

The prompt.char function is for changing the trailing character for the prompt for REPL's in both interp and sh modes, it takes a single char parameter specifying the character to use. For example the lightning emoji ⚡ can be a fun choice for FLASHELL

If you want you can set up a global "run commands" script to change the prompt when starting a shell or intepreter mode REPL session.

f++ example

Example of prompt.char being used with f++:

prompt.char('⚡')

n++ example

Example of prompt.char being used with n++:

@prompt.char('⚡')