home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
MATH
/
RPN30SRC.ZIP
/
MAKEDISP.C
< prev
next >
Wrap
Text File
|
1990-05-25
|
1KB
|
50 lines
/**
** MAKEDISP
**
** Build the calculator-display window
**
** The function is used by mkscreen.c to build the includable frame[]
** array.
**
** 90.05.20, for v3.0
** 89.01.02ram
**/
#include <conio.h>
#include "rpnio.h"
#include "helps.h" /* prototype for make_display() */
char const frame[] = "\
╔╡ RPN ╞══════════════╦═════════╦════╗\
║ ║ Base ║ ║\
║ ╠═════════╩════╣\
║ ║ ║\
║ ─────────────────── ║ ──────────── ║\
║ ║ ║\
╠═════════════════════╩═══════╦══════╣\
║ Last X ║ ║\
╚╡ Help? F1 ╞═════════════════╩══════╝";
void make_display(
int left, int top, int right, int bottom)
{
window(left, top, right, bottom+1);
textattr( (DBKGND << 4) | DBORD );
cputs(frame);
gotoxy(10, 9);
textattr( (DBKGND << 4) | (DBORD | 0x08) );
cputs("F1");
gotoxy(2,2);
textattr( (DBKGND << 4) | (DNUM) );
cputs(" ");
gotoxy(2,3);
textattr( (DBKGND << 4) | (DFTN) );
cputs(" ");
gotoxy(2,4);
textattr( (DBKGND << 4) | (DOOPS) );
cputs(" ");
}