1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * Copyright (c) 2000 by Sun Microsystems, Inc. 3*7c478bd9Sstevel@tonic-gate * All rights reserved. 4*7c478bd9Sstevel@tonic-gate */ 5*7c478bd9Sstevel@tonic-gate 6*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 7*7c478bd9Sstevel@tonic-gate 8*7c478bd9Sstevel@tonic-gate /* 9*7c478bd9Sstevel@tonic-gate * prompt.c: Routines for retrieving and setting a prompt. 10*7c478bd9Sstevel@tonic-gate * 11*7c478bd9Sstevel@tonic-gate * util/ss/prompt.c 12*7c478bd9Sstevel@tonic-gate * 13*7c478bd9Sstevel@tonic-gate * Copyright 1987, 1988 by MIT Student Information Processing Board 14*7c478bd9Sstevel@tonic-gate * 15*7c478bd9Sstevel@tonic-gate * For copyright information, see copyright.h. 16*7c478bd9Sstevel@tonic-gate */ 17*7c478bd9Sstevel@tonic-gate 18*7c478bd9Sstevel@tonic-gate #include "copyright.h" 19*7c478bd9Sstevel@tonic-gate #include <stdio.h> 20*7c478bd9Sstevel@tonic-gate #include "ss_internal.h" 21*7c478bd9Sstevel@tonic-gate 22*7c478bd9Sstevel@tonic-gate void ss_set_prompt(sci_idx,new_prompt)23*7c478bd9Sstevel@tonic-gatess_set_prompt(sci_idx, new_prompt) 24*7c478bd9Sstevel@tonic-gate int sci_idx; 25*7c478bd9Sstevel@tonic-gate char *new_prompt; 26*7c478bd9Sstevel@tonic-gate { 27*7c478bd9Sstevel@tonic-gate ss_info(sci_idx)->prompt = new_prompt; 28*7c478bd9Sstevel@tonic-gate } 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gate char * ss_get_prompt(sci_idx)31*7c478bd9Sstevel@tonic-gatess_get_prompt(sci_idx) 32*7c478bd9Sstevel@tonic-gate int sci_idx; 33*7c478bd9Sstevel@tonic-gate { 34*7c478bd9Sstevel@tonic-gate return(ss_info(sci_idx)->prompt); 35*7c478bd9Sstevel@tonic-gate } 36