Exemplo n.º 1
0
/*------------------------------------------------------------------------*/
void setPreviousLevel(int pause)
{
    //debugger prompt first !
    if (isEnableDebug())
    {
        if (isDebugInterrupted())
        {
            Sci_Prompt = SCIPROMPTBREAK;
        }
        else
        {
            Sci_Prompt = SCIPROMPTDEBUG;
        }
    }
    else if (pause == 0)
    {
        if (temporaryPrompt.empty() == false)
        {
            Sci_Prompt = temporaryPrompt;
            ClearTemporaryPrompt();
        }
        else
        {
            Sci_Prompt = SCIPROMPT;
        }
    }
    else if (pause > 0)
    {
        if (dispWarningLevelPrompt)
        {
            if (getWarningMode())
            {
                sciprint(_("Type '%s' or '%s' to return to standard level prompt.\n\n"), "resume", "abort");
                dispWarningLevelPrompt = FALSE;
            }
        }
        char t[50];

        sprintf(t, SCIPROMPT_INTERRUPT, pause);
        Sci_Prompt = t;
        // bug 5513
        // when we change prompt to a pause level, we change also temp. prompt
        //SetTemporaryPrompt(Sci_Prompt);
    }
    else
    {
        Sci_Prompt = SCIPROMPT_PAUSE;
        // bug 5513
        // when we change prompt to halt level, we change also temp. prompt
        SetTemporaryPrompt(Sci_Prompt.data());
    }
}
Exemplo n.º 2
0
/*------------------------------------------------------------------------*/
void C2F(setprlev)( int *pause)
{
    //debugger prompt first !
    if (isEnableDebug())
    {
        if (isDebugInterrupted())
        {
            sprintf(Sci_Prompt, SCIPROMPTBREAK);
        }
        else
        {
            sprintf(Sci_Prompt, SCIPROMPTDEBUG);
        }
    }
    else if ( *pause == 0 )
    {
        if (temporaryPrompt != NULL)
        {
            strcpy(Sci_Prompt, temporaryPrompt);
            ClearTemporaryPrompt();
        }
        else
        {
            sprintf(Sci_Prompt, SCIPROMPT);
        }
    }
    else if ( *pause > 0 )
    {
        if (dispWarningLevelPrompt)
        {
            if (getWarningMode())
            {
                sciprint(_("Type '%s' or '%s' to return to standard level prompt.\n\n"), "resume", "abort");
                dispWarningLevelPrompt = FALSE;
            }
        }
        sprintf(Sci_Prompt, SCIPROMPT_INTERRUPT, *pause);
        // bug 5513
        // when we change prompt to a pause level, we change also temp. prompt
        //SetTemporaryPrompt(Sci_Prompt);
    }
    else
    {
        sprintf(Sci_Prompt, SCIPROMPT_PAUSE);
        // bug 5513
        // when we change prompt to halt level, we change also temp. prompt
        SetTemporaryPrompt(Sci_Prompt);
    }
}