summaryrefslogtreecommitdiffstats
path: root/scilab/modules/shell
diff options
context:
space:
mode:
authorAllan CORNET <allan.cornet@scilab.org>2010-01-11 12:00:20 +0100
committerAllan CORNET <allan.cornet@scilab.org>2010-01-11 12:00:20 +0100
commit7a0c4233b458747b27902fb0fad941aaf0b7387d (patch)
tree9baaac5b2037e4688d3b46e8181e19ba2b9d2ffe /scilab/modules/shell
parent5ab6f7d4c01d5df6baf6f65c805574e0254bb612 (diff)
parent3164c206c2b6c37c1c396c8acd502e8fa5210a8d (diff)
downloadscilab-7a0c4233b458747b27902fb0fad941aaf0b7387d.zip
scilab-7a0c4233b458747b27902fb0fad941aaf0b7387d.tar.gz
Merge remote branch 'refs/remotes/origin/5.2'
Diffstat (limited to 'scilab/modules/shell')
-rw-r--r--scilab/modules/shell/src/c/prompt.c29
1 files changed, 18 insertions, 11 deletions
diff --git a/scilab/modules/shell/src/c/prompt.c b/scilab/modules/shell/src/c/prompt.c
index 4b98093..0dad38f 100644
--- a/scilab/modules/shell/src/c/prompt.c
+++ b/scilab/modules/shell/src/c/prompt.c
@@ -1,14 +1,15 @@
1/* 1/*
2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 2* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) INRIA 3* Copyright (C) INRIA
4 * 4* Copyright (C) DIGITEO - 2010
5 * This file must be used under the terms of the CeCILL. 5*
6 * This source file is licensed as described in the file COPYING, which 6* This file must be used under the terms of the CeCILL.
7 * you should have received as part of this distribution. The terms 7* This source file is licensed as described in the file COPYING, which
8 * are also available at 8* you should have received as part of this distribution. The terms
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt 9* are also available at
10 * 10* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 */ 11*
12*/
12#include <stdio.h> 13#include <stdio.h>
13#include <string.h> 14#include <string.h>
14#include "prompt.h" 15#include "prompt.h"
@@ -44,10 +45,16 @@ void C2F(setprlev)( int *pause)
44 } 45 }
45 } 46 }
46 sprintf(Sci_Prompt,SCIPROMPT_INTERRUPT,*pause); 47 sprintf(Sci_Prompt,SCIPROMPT_INTERRUPT,*pause);
48 // bug 5513
49 // when we change prompt to a pause level, we change also temp. prompt
50 SetTemporaryPrompt(Sci_Prompt);
47 } 51 }
48 else 52 else
49 { 53 {
50 sprintf(Sci_Prompt,SCIPROMPT_PAUSE); 54 sprintf(Sci_Prompt,SCIPROMPT_PAUSE);
55 // bug 5513
56 // when we change prompt to halt level, we change also temp. prompt
57 SetTemporaryPrompt(Sci_Prompt);
51 } 58 }
52} 59}
53/*------------------------------------------------------------------------*/ 60/*------------------------------------------------------------------------*/
@@ -71,7 +78,7 @@ void SetTemporaryPrompt(char *tempPrompt)
71/*------------------------------------------------------------------------*/ 78/*------------------------------------------------------------------------*/
72char *GetTemporaryPrompt(void) 79char *GetTemporaryPrompt(void)
73{ 80{
74 return temporaryPrompt; 81 return temporaryPrompt;
75} 82}
76/*------------------------------------------------------------------------*/ 83/*------------------------------------------------------------------------*/
77void ClearTemporaryPrompt(void) 84void ClearTemporaryPrompt(void)