Example #1
0
File: com.c Project: stqism/DEMOS
drawcmd ()
{
	int c;
	CURSOR cursor;

	if (H==LINES-7 && strlen (cur->shortcwd) + 3 + esclen (command) > 79) {
		fullscreen ();
		draw ();
	}
	for (c=H+5; c<LINES-1; ++c) {
		VMove (c, 0);
		VClearLine ();
	}
	VSetDim ();
	VMPutString (H+5, 0, cur->shortcwd);
	VSetBold ();
	VPutString (" > ");
	VSetNormal ();
	cursor = VGetCursor ();
	putescstr (command);
	if (c = command [cpos]) {
		VSetCursor (cursor);
		command [cpos] = 0;
		putescstr (command);
		command [cpos] = c;
	}
}
Example #2
0
/* cmd, com */
void quitdeco(void) {
	VMove (LINES-1, 0);
	VClearLine ();
	VSync ();
	v.VClose ();
	exit (0);
}
Example #3
0
void doquit() {

	if (! saved_batch && loaded_batch)
		save_batch ();

	VMove (LINES - 1, 0);
	VClearLine ();
	VMove (LINES - 2, 0);
	VSetPalette (2, 0, 7, 1, 15, 0, 15, 7, 14, 0, 15, 1);
	VSetBold ();
	VSync ();
	VClose ();
# ifdef MSDOS
	_dos_setvect (0x1C, old_timer);
# endif
	exit (0);

}
Example #4
0
ctrl7 ()
{
	register char *p;
	static char name [40+1];

	p = getstring (40, name, " Загрузка ", "Введите имя файла");
	if (! p)
		goto ret;
	strncpy (name, p, 40);
	name [40] = 0;
	Jmove (12, 10);
	VClearLine ();
	Jbold ();
	if (loadfile (name, Jprintf) < 0)
		error ("Не могу открыть '%s'", name);
	Jnorm ();
ret:
	curwin = 0;
	prmenu ();
}