blob: d56d2ff2790ec805ecac1cab0890af81b7c884ce [file] [log] [blame]
Theodore Ts'o3839e651997-04-26 13:21:57 +00001/*
2 * prompt.c: Routines for retrieving and setting a prompt.
3 *
4 * $Header$
5 * $Locker$
6 *
7 * Copyright 1987, 1988 by MIT Student Information Processing Board
8 *
Theodore Ts'o27401561999-09-14 20:11:19 +00009 * This file may be copied under the terms of the GNU Public License.
Theodore Ts'o3839e651997-04-26 13:21:57 +000010 */
11
Theodore Ts'o3839e651997-04-26 13:21:57 +000012#include <stdio.h>
13#include "ss_internal.h"
14
Theodore Ts'of3db3561997-04-26 13:34:30 +000015#ifdef __STDC__
16void ss_set_prompt(int sci_idx, char *new_prompt)
17#else
18void ss_set_prompt(sci_idx, new_prompt)
Theodore Ts'o3839e651997-04-26 13:21:57 +000019 int sci_idx;
20 char *new_prompt;
Theodore Ts'of3db3561997-04-26 13:34:30 +000021#endif
Theodore Ts'o3839e651997-04-26 13:21:57 +000022{
23 ss_info(sci_idx)->prompt = new_prompt;
24}
25
Theodore Ts'of3db3561997-04-26 13:34:30 +000026#ifdef __STDC__
27char *ss_get_prompt(int sci_idx)
28#else
29char *ss_get_prompt(sci_idx)
Theodore Ts'o3839e651997-04-26 13:21:57 +000030 int sci_idx;
Theodore Ts'of3db3561997-04-26 13:34:30 +000031#endif
Theodore Ts'o3839e651997-04-26 13:21:57 +000032{
33 return(ss_info(sci_idx)->prompt);
34}