1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 1997-9, 2000, 2010, 2011 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
23 #include "language/prompt.h"
25 #include "data/file-name.h"
26 #include "data/settings.h"
27 #include "data/variable.h"
28 #include "language/command.h"
29 #include "language/lexer/lexer.h"
30 #include "libpspp/assertion.h"
31 #include "libpspp/message.h"
32 #include "libpspp/str.h"
33 #include "libpspp/version.h"
34 #include "output/tab.h"
36 #include "gl/xalloc.h"
38 /* Current prompting style. */
39 static enum prompt_style current_style;
41 /* Gets the command prompt for the given STYLE. */
43 prompt_get (enum prompt_style style)
62 /* Sets STYLE as the current prompt style. */
64 prompt_set_style (enum prompt_style style)
66 assert (style < PROMPT_CNT);
67 current_style = style;
70 /* Returns the current prompt. */
72 prompt_get_style (void)