home *** CD-ROM | disk | FTP | other *** search
- /**
- Get the value to display for the bsh interactive prompt.
- This command checks for the variable bsh.prompt and uses it if set.
- else returns "bsh % "
- <p/>
- Remember that you can override bsh commands simply by defining the method
- in your namespace. e.g. the following method displays the current working
- directory in your prompt:
- <p/>
- <pre>
- String getBshPrompt() {
- return bsh.cwd + " % ";
- }
- </pre>
- */
-
- String getBshPrompt()
- {
- if ( bsh != void && bsh.prompt != void )
- return bsh.prompt;
- else
- return "bsh % ";
- }
-
-