ASPL User Guide v 1.00
© 2025 Bassem W. Jamaleddine


E

   ASPL Prompt Commands


The following are prompt commands that can be included when defining your ASPL1_00_PROMPT environment variable. To change your ASPL interpreter prompt, see the table below.

 -TB- Tab. E.1   [ASPL PROMPT COMMANDS][ASPL1_00_PROMPT COMMANDS]
{u}  user 
{h}  hostname 
{tm}  time 
{localtime}  localtime 
{isotime}  ISO date and time 
{v}  ASPL version number, eg. 1.00 
{cwd}  current working directory 
{no}  command number 
{namedgc}  currently loaded namedGClass 
{namedws}  currently loaded namedspace 
{reposws}  workspace repository 
;promptcolor:COLORNAME  prompt color, eg. bold_black 
;logocolor:COLORNAME  color of the ASPL logo, eg. bold_black 
;loadcolors:SECTIONNAME  color table section used for tabbed operations, these are defined in your colors.conf 
aspl commands options



If the environment variable ASPL1_00_PROMPT is not set, then the following is the default prompt:
prompt:aspl:{no} {tm} {u}@{h} {cwd}> ;promptcolor:bold_black;logocolor:bold_black;loadcolors:colors3
Any other characters, including spaces, will become part of the ASPL prompt. The standard ASPL prompt is ASPL followed by > character.

At the ASPL prompt, type the command ttycolors to print the possible colors that you can specify for the COLORNAME to use for the prompt (following ;promptcolor:) and the logo (following ;logocolor:). The list of colors can also be displayed with the command:

asplcmd ttycolors

At the ASPL prompt, type the command ~colorsfile to edit your colors.conf file, or at the shell prompt type:

asplcmd ~colorsfile

Each section name can be used following ;loadcolors: to specify the colors of the tabbed operations. You can also create your own section by simply replicating a section and giving it a new name. The colors should be known per the list of ttycolors.

To test setting your prompt, you can simply pass the setting in the environment variable ASPL1_00_PROMPT before the aspl program:

ASPL1_00_PROMPT='prompt:ASPL {no}>' aspl

ASPL1_00_PROMPT='prompt:ASPL {no}> ;promptcolor:publisher_cyan' aspl

ASPL1_00_PROMPT='prompt:ASPL {localtime}> {no} // ' aspl

ASPL1_00_PROMPT='prompt:ASPL {localtime} {namedws}@{namedgc} > ;promptcolor:bold_strikelightcyan' aspl

ASPL1_00_PROMPT='prompt:ASPL {localtime} {namedws}@{namedgc} > ;promptcolor:publisher' aspl

Once you are satisfied with the settings of the prompt, just export the ASPL1_00_PROMPT in your bash profile or your ASPL environment sourcing script, usually located in your ~shared/setaspl.