blob: 6fe42637d9f97e6885b55659810cb81944dc0be2 [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'o06cefee1999-10-23 01:16:22 +00009 * Permission to use, copy, modify, and distribute this software and
10 * its documentation for any purpose is hereby granted, provided that
11 * the names of M.I.T. and the M.I.T. S.I.P.B. not be used in
12 * advertising or publicity pertaining to distribution of the software
13 * without specific, written prior permission. M.I.T. and the
14 * M.I.T. S.I.P.B. make no representations about the suitability of
15 * this software for any purpose. It is provided "as is" without
16 * express or implied warranty.
Theodore Ts'o3839e651997-04-26 13:21:57 +000017 */
18
Theodore Ts'o3839e651997-04-26 13:21:57 +000019#include <stdio.h>
20#include "ss_internal.h"
21
Theodore Ts'of3db3561997-04-26 13:34:30 +000022void ss_set_prompt(int sci_idx, char *new_prompt)
Theodore Ts'o3839e651997-04-26 13:21:57 +000023{
24 ss_info(sci_idx)->prompt = new_prompt;
25}
26
Theodore Ts'of3db3561997-04-26 13:34:30 +000027char *ss_get_prompt(int sci_idx)
Theodore Ts'o3839e651997-04-26 13:21:57 +000028{
29 return(ss_info(sci_idx)->prompt);
30}