/sved/trunk/deflang.c |
---|
1,12 → 1,16 |
/* THIS FILE HAS BEEN GENERATED BY TLUMACZ (PART OF THE SVARLANG LIBRARY) */ |
const unsigned short svarlang_memsz = 218u; |
const unsigned short svarlang_string_count = 12u; |
const unsigned short svarlang_memsz = 275u; |
const unsigned short svarlang_string_count = 14u; |
char svarlang_mem[218] = { |
char svarlang_mem[275] = { |
0x48,0x45,0x4c,0x50,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, |
0x55,0x6e,0x73,0x61,0x76,0x65,0x64,0x20,0x63,0x68,0x61,0x6e,0x67,0x65,0x73,0x20, |
0x77,0x69,0x6c,0x6c,0x20,0x62,0x65,0x20,0x6c,0x6f,0x73,0x74,0x2e,0x00, |
0x50,0x72,0x65,0x73,0x73,0x20,0x45,0x4e,0x54,0x45,0x52,0x20,0x74,0x6f,0x20,0x63, |
0x6f,0x6e,0x66,0x69,0x72,0x6d,0x2e,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, |
22,17 → 26,19 |
0x50,0x72,0x65,0x73,0x73,0x20,0x61,0x6e,0x79,0x20,0x6b,0x65,0x79,0x00 |
}; |
unsigned short svarlang_dict[24] = { |
unsigned short svarlang_dict[28] = { |
0x0000,0x0000, |
0x0001,0x0005, |
0x0002,0x000e, |
0x0003,0x0014, |
0x0100,0x0022, |
0x0800,0x0037, |
0x0801,0x0047, |
0x0802,0x0058, |
0x0803,0x0072, |
0x0804,0x0091, |
0x080a,0x00b0, |
0x080b,0x00bb |
0x0004,0x0022, |
0x0005,0x0040, |
0x0100,0x0058, |
0x0800,0x006d, |
0x0801,0x007d, |
0x0802,0x008e, |
0x0803,0x00a8, |
0x0804,0x00c7, |
0x080a,0x00e6, |
0x080b,0x00f1 |
}; |
/sved/trunk/nls/en_utf8.txt |
---|
8,6 → 8,8 |
0.1:NEW FILE |
0.2:SAVED |
0.3:SAVING FAILED |
0.4:Unsaved changes will be lost. |
0.5:Press ENTER to confirm. |
################ |
# USAGE SCREEN # |
/sved/trunk/sved.c |
---|
170,16 → 170,26 |
} |
static void ui_msg(const char *msg, unsigned char attr) { |
static void ui_msg(const char *msg1, const char *msg2, unsigned char attr) { |
unsigned short x, y, msglen, i; |
msglen = strlen(msg); |
y = (screenh - 4) >> 1; |
unsigned char msg2flag = 0; |
msglen = strlen(msg1); |
if (msg2) { |
msg2flag = 1; |
i = strlen(msg2); |
if (i > msglen) msglen = i; |
} |
y = (screenh - 6) >> 1; |
x = (screenw - msglen - 4) >> 1; |
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); |
for (i = y+2+msg2flag; i >= y; i--) mdr_cout_char_rep(i, x, ' ', attr, msglen + 2); |
x++; |
mdr_cout_str(y+1, x, msg1, attr, msglen); |
if (msg2) mdr_cout_str(y+2, x, msg2, attr, msglen); |
if (uidirty.from > y) uidirty.from = y; |
if (uidirty.to < y+3) uidirty.to = y+3; |
if (uidirty.to < y+4) uidirty.to = y+4; |
} |
697,7 → 707,10 |
cursor_eol(db); |
} else if (k == 0x1B) { /* ESC */ |
break; |
if (db->modflag == 0) break; |
/* if file has been modified then ask for confirmation */ |
ui_msg(svarlang_str(0,4), svarlang_str(0,5), scheme[COL_MSG]); |
if (keyb_getkey() == '\r') break; |
} else if (k == 0x0D) { /* ENTER */ |
unsigned short off = db->xoffset + db->cursorposx; |
739,10 → 752,10 |
} else if (k == 0x13f) { /* F5 */ |
if (savefile(db) == 0) { |
db->modflag = 0; |
ui_msg(svarlang_str(0, 2), scheme[COL_MSG]); |
ui_msg(svarlang_str(0, 2), NULL, scheme[COL_MSG]); |
mdr_bios_tickswait(11); /* 11 ticks is about 600 ms */ |
} else { |
ui_msg(svarlang_str(0, 3), scheme[COL_ERR]); |
ui_msg(svarlang_str(0, 3), NULL, scheme[COL_ERR]); |
mdr_bios_tickswait(36); /* 2s */ |
} |
/sved/trunk/sved.lng |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |