File: pw.h

package info (click to toggle)
jupp 3.1.38-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,420 kB
  • sloc: ansic: 31,382; sh: 4,199; makefile: 431
file content (37 lines) | stat: -rw-r--r-- 991 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 *	Prompt windows
 *	Copyright
 *		(C) 1992 Joseph H. Allen
 *
 *	This file is part of JOE (Joe's Own Editor)
 */
#ifndef _JOE_PW_H
#define _JOE_PW_H 1

#ifdef EXTERN_CMD_C
__IDSTRING(rcsid_pw_h, "$MirOS: contrib/code/jupp/pw.h,v 1.10 2017/12/08 02:17:22 tg Exp $");
#endif

/* BW *wmkpw(BW *bw,char *prompt,int (*func)(),char *huh,int (*abrt)(),
	     int (*tab)(),void *object,int *notify);
 * Create a prompt window for the given window
 */
BW *wmkpw(W *w, const unsigned char *prompt, B **history, jpoly_int *func, const unsigned char *huh, jpoly_int *abrt, jpoly_int *tab, void *object, int *notify, struct charmap *map);

int ucmplt(BW *bw, int k);

/* Function for TAB completion */

unsigned char **regsub(unsigned char **z, int len, unsigned char *s);

void cmplt_ins(BW *bw,unsigned char *line);

int cmplt_abrt(BW *bw,int x, unsigned char *line);

int cmplt_rtn(MENU *m,int x,unsigned char *line);

int simple_cmplt(BW *bw,unsigned char **list);

extern WATOM watompw;

#endif