blob: c56c2a093c783e4b1e283e598b71cb7149465055 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
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 *
9 * 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.
17 */
18
19#include "config.h"
20#include <stdio.h>
21#include "ss_internal.h"
22
23void ss_set_prompt(int sci_idx, char *new_prompt)
24{
25 ss_info(sci_idx)->prompt = new_prompt;
26}
27
28char *ss_get_prompt(int sci_idx)
29{
30 return(ss_info(sci_idx)->prompt);
31}