File:  [MW Coherent from dump] / coherent / g / usr / bin / vsh / winlib / cmdbox.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 *      Use window without a box and enter a command line
 *
 *      Copyright (c) 1990-93 by Udo Munk
 */

#ifdef AIX
#define NLS
#endif

#include <curses.h>

extern WINDOW *open_window();
extern int edit_field(), close_window();

cmd_box(s, fn)
char *s;
int (*fn) ();
{
	register WINDOW *w;
	register int ret;

	if ((w = open_window(1, COLS, LINES-1, 0)) == (WINDOW *) 0)
		nomem();
	touchwin(w);
	ret = edit_field(w, 0, 0, s, COLS-1, 1, fn);
	close_window(w);
	return(ret);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.