/sved/trunk/deflang.c |
---|
1,10 → 1,12 |
/* THIS FILE HAS BEEN GENERATED BY TLUMACZ (PART OF THE SVARLANG LIBRARY) */ |
const unsigned short svarlang_memsz = 132u; |
const unsigned short svarlang_string_count = 8u; |
const unsigned short svarlang_memsz = 153u; |
const unsigned short svarlang_string_count = 10u; |
char svarlang_mem[132] = { |
char svarlang_mem[153] = { |
0x48,0x45,0x4c,0x50,0x00, |
0x2a,0x4e,0x45,0x57,0x20,0x46,0x49,0x4c,0x45,0x2a,0x00, |
0x4e,0x45,0x57,0x20,0x46,0x49,0x4c,0x45,0x00, |
0x53,0x41,0x56,0x45,0x44,0x00, |
0x53,0x41,0x56,0x49,0x4e,0x47,0x20,0x46,0x41,0x49,0x4c,0x45,0x44,0x00, |
0x75,0x73,0x61,0x67,0x65,0x3a,0x20,0x73,0x76,0x65,0x64,0x20,0x66,0x69,0x6c,0x65, |
0x2e,0x74,0x78,0x74,0x00, |
0x46,0x35,0x20,0x20,0x3d,0x20,0x73,0x61,0x76,0x65,0x20,0x66,0x69,0x6c,0x65,0x00, |
16,13 → 18,15 |
0x50,0x72,0x65,0x73,0x73,0x20,0x61,0x6e,0x79,0x20,0x6b,0x65,0x79,0x00 |
}; |
unsigned short svarlang_dict[16] = { |
unsigned short svarlang_dict[20] = { |
0x0000,0x0000, |
0x0001,0x0005, |
0x0100,0x0010, |
0x0800,0x0025, |
0x0801,0x0035, |
0x0802,0x0046, |
0x080a,0x0060, |
0x080b,0x006b |
0x0002,0x000e, |
0x0003,0x0014, |
0x0100,0x0022, |
0x0800,0x0037, |
0x0801,0x0047, |
0x0802,0x0058, |
0x080a,0x0072, |
0x080b,0x007d |
}; |
/sved/trunk/nls/en_utf8.txt |
---|
5,7 → 5,9 |
############### |
0.0:HELP |
0.1:*NEW FILE* |
0.1:NEW FILE |
0.2:SAVED |
0.3:SAVING FAILED |
################ |
# USAGE SCREEN # |
/sved/trunk/sved.c |
---|
40,8 → 40,10 |
#define COL_STATUSBAR1 1 |
#define COL_STATUSBAR2 2 |
#define COL_SCROLLBAR 3 |
#define COL_MSG 4 |
#define COL_ERR 5 |
/* preload the mono scheme (to be overloaded at runtime if color adapter present) */ |
static unsigned char scheme[] = {0x07, 0x70, 0x70, 0x70}; |
static unsigned char scheme[] = {0x07, 0x70, 0x70, 0x70, 0x70, 0x70}; |
#define SCROLL_CURSOR 0xB1 |
107,6 → 109,8 |
scheme[COL_STATUSBAR1] = 0x70; |
scheme[COL_STATUSBAR2] = 0x78; |
scheme[COL_SCROLLBAR] = 0x70; |
scheme[COL_MSG] = 0x2f; |
scheme[COL_ERR] = 0x4f; |
} |
142,13 → 146,13 |
} |
static void ui_msg(const char *msg, unsigned char screenw, unsigned char screenh, unsigned char *uidirtyfrom, unsigned char *uidirtyto) { |
static void ui_msg(const char *msg, unsigned char screenw, unsigned char screenh, unsigned char *uidirtyfrom, unsigned char *uidirtyto, unsigned char attr) { |
unsigned short x, y, msglen, i; |
msglen = strlen(msg); |
y = (screenh - 4) >> 1; |
x = (screenw - msglen - 4) >> 1; |
for (i = y+2; i >= y; i--) mdr_cout_char_rep(i, x, ' ', scheme[COL_STATUSBAR1], msglen + 2); |
mdr_cout_str(y+1, x+1, msg, scheme[COL_STATUSBAR1], msglen); |
for (i = y+2; i >= y; i--) mdr_cout_char_rep(i, x, ' ', attr, msglen + 2); |
mdr_cout_str(y+1, x+1, msg, attr, msglen); |
if (*uidirtyfrom > y) *uidirtyfrom = y; |
if (*uidirtyto < y+2) *uidirtyto = y+2; |
619,11 → 623,13 |
uidirtyto = 0xff; |
} else if (k == 0x13f) { /* F5 */ |
const char *m[] = {"SAVED", "SAVING FILE FAILED"}; |
int i; |
i = !!savefile(db); |
ui_msg(m[i], screenw, screenh, &uidirtyfrom, &uidirtyto); |
mdr_bios_tickswait(11); /* 11 ticks is about 600 ms */ |
if (savefile(db) == 0) { |
ui_msg(svarlang_str(0, 2), screenw, screenh, &uidirtyfrom, &uidirtyto, scheme[COL_MSG]); |
mdr_bios_tickswait(11); /* 11 ticks is about 600 ms */ |
} else { |
ui_msg(svarlang_str(0, 3), screenw, screenh, &uidirtyfrom, &uidirtyto, scheme[COL_ERR]); |
mdr_bios_tickswait(36); /* 2s */ |
} |
} else if (k == 0x144) { /* F10 */ |
db->lfonly ^= 1; |
/sved/trunk/sved.lng |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |