Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 1 | /* |
| 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'o | 2740156 | 1999-09-14 20:11:19 +0000 | [diff] [blame] | 9 | * This file may be copied under the terms of the GNU Public License. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 12 | #include <stdio.h> |
| 13 | #include "ss_internal.h" |
| 14 | |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 15 | #ifdef __STDC__ |
| 16 | void ss_set_prompt(int sci_idx, char *new_prompt) |
| 17 | #else |
| 18 | void ss_set_prompt(sci_idx, new_prompt) |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 19 | int sci_idx; |
| 20 | char *new_prompt; |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 21 | #endif |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 22 | { |
| 23 | ss_info(sci_idx)->prompt = new_prompt; |
| 24 | } |
| 25 | |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 26 | #ifdef __STDC__ |
| 27 | char *ss_get_prompt(int sci_idx) |
| 28 | #else |
| 29 | char *ss_get_prompt(sci_idx) |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 30 | int sci_idx; |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 31 | #endif |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 32 | { |
| 33 | return(ss_info(sci_idx)->prompt); |
| 34 | } |