home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
tass.lzh
/
screen.c
< prev
next >
Wrap
Text File
|
1993-01-24
|
850b
|
62 lines
#include <stdio.h>
#include "tass.h"
info_message(msg)
char *msg;
{
clear_message(); /* Clear any old messages hanging around */
center_line(LINES, msg); /* center the message at screen bottom */
MoveCursor(LINES, 0);
}
clear_message()
{
MoveCursor(LINES, 0);
CleartoEOLN();
}
center_line(line, str)
int line;
char *str;
{
int pos;
pos = (COLS - strlen(str)) / 2;
MoveCursor(line, pos);
printf("%s", str);
fflush(stdout);
}
draw_arrow(line)
int line;
{
MoveCursor(line, 0);
printf("->");
fflush(stdout);
MoveCursor(LINES, 0);
}
erase_arrow(line)
int line;
{
MoveCursor(line, 0);
printf(" ");
fflush(stdout);
}
#ifdef REGEXP
void
regerror (s)
char *s;
{
info_message (s);
}
#endif /* REGEXP */