/sved/trunk/deflang.c |
---|
1,8 → 1,8 |
/* THIS FILE HAS BEEN GENERATED BY TLUMACZ (PART OF THE SVARLANG LIBRARY) */ |
const unsigned short svarlang_memsz = 399u; |
const unsigned short svarlang_string_count = 26u; |
const unsigned short svarlang_memsz = 370u; |
const unsigned short svarlang_string_count = 27u; |
char svarlang_mem[399] = { |
char svarlang_mem[370] = { |
0x46,0x31,0x3d,0x48,0x45,0x4c,0x50,0x00, |
0x4e,0x45,0x57,0x20,0x46,0x49,0x4c,0x45,0x00, |
0x53,0x41,0x56,0x45,0x44,0x00, |
19,6 → 19,7 |
0x46,0x49,0x4c,0x45,0x20,0x4e,0x4f,0x54,0x20,0x46,0x4f,0x55,0x4e,0x44,0x00, |
0x75,0x73,0x61,0x67,0x65,0x3a,0x20,0x73,0x76,0x65,0x64,0x20,0x5b,0x66,0x69,0x6c, |
0x65,0x2e,0x74,0x78,0x74,0x5d,0x00, |
0x2e,0x00, |
0x46,0x32,0x20,0x20,0x4e,0x65,0x77,0x20,0x66,0x69,0x6c,0x65,0x00, |
0x46,0x33,0x20,0x20,0x4f,0x70,0x65,0x6e,0x20,0x66,0x69,0x6c,0x65,0x00, |
0x46,0x35,0x20,0x20,0x53,0x61,0x76,0x65,0x00, |
29,17 → 30,16 |
0x2e,0x00, |
0x4e,0x61,0x76,0x69,0x67,0x61,0x74,0x69,0x6f,0x6e,0x3a,0x00, |
0x2e,0x00, |
0x55,0x70,0x2f,0x44,0x6f,0x77,0x6e,0x2f,0x4c,0x65,0x66,0x74,0x2f,0x52,0x69,0x67, |
0x68,0x74,0x2f,0x50,0x67,0x55,0x70,0x2f,0x50,0x67,0x44,0x6f,0x77,0x6e,0x00, |
0x43,0x54,0x52,0x4c,0x2b,0x52,0x69,0x67,0x68,0x74,0x20,0x20,0x4a,0x75,0x6d,0x70, |
0x20,0x74,0x6f,0x20,0x6e,0x65,0x78,0x74,0x20,0x77,0x6f,0x72,0x64,0x00, |
0x43,0x54,0x52,0x4c,0x2b,0x4c,0x65,0x66,0x74,0x20,0x20,0x20,0x4a,0x75,0x6d,0x70, |
0x20,0x74,0x6f,0x20,0x70,0x72,0x65,0x76,0x20,0x77,0x6f,0x72,0x64,0x00, |
0x2e,0x00, |
0x50,0x72,0x65,0x73,0x73,0x20,0x61,0x6e,0x79,0x20,0x6b,0x65,0x79,0x00 |
0x50,0x72,0x65,0x73,0x73,0x20,0x61,0x6e,0x79,0x20,0x6b,0x65,0x79,0x00, |
0x2e,0x00 |
}; |
unsigned short svarlang_dict[52] = { |
unsigned short svarlang_dict[54] = { |
0x0000,0x0000, |
0x0001,0x0008, |
0x0002,0x0011, |
52,18 → 52,19 |
0x000a,0x007f, |
0x000b,0x0085, |
0x0100,0x0094, |
0x0800,0x00ab, |
0x0801,0x00b8, |
0x0802,0x00c6, |
0x0803,0x00cf, |
0x0804,0x00de, |
0x0805,0x00f6, |
0x0806,0x00ff, |
0x0807,0x0101, |
0x0808,0x010d, |
0x0809,0x010f, |
0x080a,0x012e, |
0x080b,0x014c, |
0x080c,0x016a, |
0x080d,0x016c |
0x0803,0x00ab, |
0x0804,0x00ad, |
0x0805,0x00ba, |
0x0806,0x00c8, |
0x0807,0x00d1, |
0x0808,0x00e0, |
0x0809,0x00f8, |
0x080a,0x0101, |
0x080b,0x0103, |
0x080c,0x010f, |
0x080d,0x0111, |
0x080e,0x012f, |
0x080f,0x014d, |
0x0810,0x014f, |
0x0811,0x015d |
}; |
/sved/trunk/nls/en_utf8.txt |
---|
28,17 → 28,18 |
# HELP SCREEN # |
############### |
8.0:F2 New file |
8.1:F3 Open file |
8.2:F5 Save |
8.3:F6 Save as... |
8.4:F10 Change line endings |
8.5:ESC Quit |
8.6:. |
8.7:Navigation: |
8.8:. |
8.9:Up/Down/Left/Right/PgUp/PgDown |
8.10:CTRL+Right Jump to next word |
8.11:CTRL+Left Jump to prev word |
8.3:. |
8.4:F2 New file |
8.5:F3 Open file |
8.6:F5 Save |
8.7:F6 Save as... |
8.8:F10 Change line endings |
8.9:ESC Quit |
8.10:. |
8.11:Navigation: |
8.12:. |
8.13:Press any key |
8.13:CTRL+Right Jump to next word |
8.14:CTRL+Left Jump to prev word |
8.15:. |
8.16:Press any key |
8.17:. |
/sved/trunk/sved.c |
---|
265,20 → 265,17 |
} |
static void ui_help(void) { |
#define MAXLINLEN 35 |
unsigned char i, offset; |
offset = (screenw - MAXLINLEN + 2) >> 1; |
static void ui_help(void) { /* 8706 -> 6277 */ |
#define MAXLINLEN 39 |
unsigned short i, offset; |
offset = (screenw - MAXLINLEN) >> 1; |
for (i = 2; i < 18; i++) { |
mdr_cout_char_rep(i, offset - 2, ' ', SCHEME_STBAR1, MAXLINLEN + 2); |
} |
for (i = 0; i < 20; i++) { |
for (i = 3; i < 25; i++) { |
const char *s = svarlang_str(8, i); |
if (s[0] == 0) break; |
mdr_cout_char_rep(i, offset, ' ', SCHEME_STBAR1, MAXLINLEN); |
if (s[0] == '.') continue; |
mdr_cout_locate(3 + i, offset + mdr_cout_str(3 + i, offset, s, SCHEME_STBAR1, MAXLINLEN)); |
mdr_cout_locate(i, offset + 2 + mdr_cout_str(i, offset + 2, s, SCHEME_STBAR1, MAXLINLEN - 2)); |
} |
keyb_getkey(); |
719,7 → 716,9 |
} |
int main(void) { |
/* main returns nothing, ie. sved always exits with a zero exit code |
* (this saves 20 bytes of executable footprint) */ |
void main(void) { |
static struct file dbarr[1]; |
const char *fname; |
struct file *db = dbarr; |
733,7 → 732,7 |
if (fname == NULL) { |
mdr_coutraw_puts(svarlang_str(1,0)); /* usage: sved file.txt */ |
return(0); |
return; |
} |
/* load file */ |
741,10 → 740,10 |
unsigned char err = loadfile(db, fname); |
if (err == 1) { |
mdr_coutraw_puts(svarlang_str(0,11)); /* file not found */ |
return(1); |
return; |
} else if (err != 0) { |
mdr_coutraw_puts(svarlang_str(0,10)); /* ERROR */ |
return(1); |
return; |
} |
} |
998,5 → 997,5 |
/* no need to free memory, DOS will do it for me */ |
return(0); |
return; |
} |
/sved/trunk/sved.lng |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |