/sved/trunk/deflang.c |
---|
1,14 → 1,26 |
/* THIS FILE HAS BEEN GENERATED BY TLUMACZ (PART OF THE SVARLANG LIBRARY) */ |
const unsigned short svarlang_memsz = 31u; |
const unsigned short svarlang_string_count = 2u; |
const unsigned short svarlang_memsz = 119u; |
const unsigned short svarlang_string_count = 7u; |
char svarlang_mem[31] = { |
char svarlang_mem[119] = { |
0x48,0x45,0x4c,0x50,0x00, |
0x75,0x73,0x61,0x67,0x65,0x3a,0x20,0x73,0x76,0x65,0x64,0x20,0x66,0x69,0x6c,0x65, |
0x2e,0x74,0x78,0x74,0x00 |
0x2e,0x74,0x78,0x74,0x00, |
0x46,0x35,0x20,0x20,0x3d,0x20,0x73,0x61,0x76,0x65,0x20,0x66,0x69,0x6c,0x65,0x00, |
0x46,0x36,0x20,0x20,0x3d,0x20,0x73,0x61,0x76,0x65,0x20,0x61,0x73,0x2e,0x2e,0x2e, |
0x00, |
0x46,0x31,0x30,0x20,0x3d,0x20,0x63,0x68,0x61,0x6e,0x67,0x65,0x20,0x6c,0x69,0x6e, |
0x65,0x20,0x65,0x6e,0x64,0x69,0x6e,0x67,0x73,0x00, |
0x45,0x53,0x43,0x20,0x3d,0x20,0x71,0x75,0x69,0x74,0x00, |
0x50,0x72,0x65,0x73,0x73,0x20,0x61,0x6e,0x79,0x20,0x6b,0x65,0x79,0x00 |
}; |
unsigned short svarlang_dict[4] = { |
unsigned short svarlang_dict[14] = { |
0x0000,0x0000, |
0x0100,0x0005 |
0x0100,0x0005, |
0x0800,0x001a, |
0x0801,0x002a, |
0x0802,0x003b, |
0x080a,0x0055, |
0x080b,0x0060 |
}; |
/sved/trunk/nls/en_utf8.txt |
---|
7,8 → 7,19 |
0.0:HELP |
################ |
# USAGE SCREEN # |
################ |
1.0:usage: sved file.txt |
############### |
# HELP SCREEN # |
############### |
1.0:usage: sved file.txt |
8.0:F5 = save file |
8.1:F6 = save as... |
8.2:F10 = change line endings |
8.10:ESC = quit |
8.11:Press any key |
/sved/trunk/sved.c |
---|
129,6 → 129,28 |
} |
static void ui_help(unsigned char screenw) { |
#define MAXLINLEN 35 |
unsigned short i, x, offset; |
offset = (screenw - MAXLINLEN + 1) >> 1; |
mdr_cout_cursor_hide(); |
for (i = 2; i <= 12; i++) { |
for (x = offset - 2; x < offset + MAXLINLEN; x++) mdr_cout_char(i, x, ' ', scheme[COL_STATUSBAR1]); |
} |
mdr_cout_str(3, offset, svarlang_str(0, 0), scheme[COL_STATUSBAR1], MAXLINLEN); |
for (i = 0; i <= 2; i++) { |
mdr_cout_str(5 + i, offset, svarlang_str(8, i), scheme[COL_STATUSBAR1], MAXLINLEN); |
} |
mdr_cout_str(9, offset, svarlang_str(8, 10), scheme[COL_STATUSBAR1], MAXLINLEN); |
mdr_cout_str(11, offset, svarlang_str(8, 11), scheme[COL_STATUSBAR1], MAXLINLEN); |
keyb_getkey(); |
mdr_cout_cursor_show(); |
#undef MAXLINLEN |
} |
static void ui_refresh(const struct linedb *db, unsigned char screenw, unsigned char screenh, unsigned char uidirtyfrom, unsigned char uidirtyto) { |
unsigned char y = 0; |
unsigned char len; |
488,6 → 510,11 |
cursor_right(&db, &cursorposx, &cursorposy, screenw, screenh, &uidirtyfrom, &uidirtyto); |
} |
} else if (k == 0x13b) { /* F1 */ |
ui_help(screenw); |
uidirtyfrom = 0; |
uidirtyto = 0xff; |
} else { /* UNHANDLED KEY - TODO IGNORE THIS IN PRODUCTION RELEASE */ |
char buff[4]; |
const char *HEX = "0123456789ABCDEF"; |
/sved/trunk/sved.lng |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |