1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using a percent sign in the PROMPT

Discussion in 'Support' started by Phileosophos, Mar 11, 2009.

  1. Phileosophos

    Joined:
    Aug 28, 2008
    Messages:
    86
    Likes Received:
    2
    Today seems to be my day for questions. I would like to display the current memory load as a percent in my PROMPT. I can show the memory load easily enough, but I can find no way to force the display of a literal percent sign. Using any number of percent signs produces nothing visible, and I can find no way to escape one or show it otherwise. Help?
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,022
    Likes Received:
    84
    Phileosophos wrote:

    Use ^%^% (assuming that you're using the default escape character ^).

    Rex Conn
    JP Software
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    8,058
    Likes Received:
    30
    On Wed, 11 Mar 2009 18:06:32 -0500, Phileosophos <> wrote:

    |Today seems to be my day for questions. I would like to display the current memory load as a percent in my PROMPT. I can show the memory load easily enough, but I can find no way to force the display of a literal percent sign. Using any number of percent signs produces nothing visible, and I can find no way to escape one or show it otherwise. Help?
    |

    Try this:

    prompt `%%`
    --
    - Vince
     
  4. Phileosophos

    Joined:
    Aug 28, 2008
    Messages:
    86
    Likes Received:
    2
    Excellent! Thanks! FYI, I find that using %%%% also seems to work.
     

Share This Page