xref: /netbsd-src/bin/sh/myhistedit.h (revision c591669f0408d33ad7f9518b64d3c076e03a0b1e)
1*c591669fSkre /*	$NetBSD: myhistedit.h,v 1.16 2024/07/13 13:43:58 kre Exp $	*/
249f0ad86Scgd 
3488499c5Sjtc /*-
4488499c5Sjtc  * Copyright (c) 1993
5488499c5Sjtc  *	The Regents of the University of California.  All rights reserved.
6488499c5Sjtc  *
7488499c5Sjtc  * Redistribution and use in source and binary forms, with or without
8488499c5Sjtc  * modification, are permitted provided that the following conditions
9488499c5Sjtc  * are met:
10488499c5Sjtc  * 1. Redistributions of source code must retain the above copyright
11488499c5Sjtc  *    notice, this list of conditions and the following disclaimer.
12488499c5Sjtc  * 2. Redistributions in binary form must reproduce the above copyright
13488499c5Sjtc  *    notice, this list of conditions and the following disclaimer in the
14488499c5Sjtc  *    documentation and/or other materials provided with the distribution.
15b5b29542Sagc  * 3. Neither the name of the University nor the names of its contributors
16488499c5Sjtc  *    may be used to endorse or promote products derived from this software
17488499c5Sjtc  *    without specific prior written permission.
18488499c5Sjtc  *
19488499c5Sjtc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20488499c5Sjtc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21488499c5Sjtc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22488499c5Sjtc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23488499c5Sjtc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24488499c5Sjtc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25488499c5Sjtc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26488499c5Sjtc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27488499c5Sjtc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28488499c5Sjtc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29488499c5Sjtc  * SUCH DAMAGE.
30488499c5Sjtc  *
3107bae7edSchristos  *	@(#)myhistedit.h	8.2 (Berkeley) 5/4/95
32488499c5Sjtc  */
33488499c5Sjtc 
34488499c5Sjtc #include <histedit.h>
35488499c5Sjtc 
36488499c5Sjtc extern History *hist;
37488499c5Sjtc extern EditLine *el;
38488499c5Sjtc extern int displayhist;
3907bae7edSchristos 
4089b84588Schristos #include <filecomplete.h>
4189b84588Schristos 
42c02b3bbdSchristos void histedit(void);
43d73cf48cSkre void sethistsize(char *, int);
44*c591669fSkre void sethistfile(char *, int);
45*c591669fSkre void sethistappend(char *, int);
46*c591669fSkre void save_sh_history(void);
47d73cf48cSkre void setterm(char *, int);
48f8d2e9e1Sgmcgarry int inputrc(int, char **);
49d73cf48cSkre void set_editrc(char *, int);
50d73cf48cSkre void set_prompt_lit(char *, int);
51*c591669fSkre 
52*c591669fSkre #include <stdio.h>
53*c591669fSkre extern FILE *HistFP;
54