Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1439 → Rev 1440

/sved/trunk/sved.c
219,7 → 219,7
static void ui_statusbar(const struct file *db, unsigned char slotnum) {
const char *s = svarlang_strid(0); /* ESC=MENU */
unsigned short helpcol = screenw - strlen(s);
unsigned short maxfnlen = helpcol - 14;
unsigned short col;
 
/* slot number (guaranteed to be 0-9) */
{
236,27 → 236,11
/* fill rest of status bar with background */
mdr_cout_char_rep(screenlastrow, 3, ' ', SCHEME_STBAR1, helpcol - 3);
 
/* filename and modflag */
{
const char *fn;
unsigned short x;
if (db->fname[0] == 0) {
fn = svarlang_str(0, 1); /* "UNTITLED" */
} else {
/* display filename up to maxfnlen chars */
fn = db->fname;
x = strlen(fn);
if (x > maxfnlen) fn += x - maxfnlen;
}
x = mdr_cout_str(screenlastrow, 4, fn, SCHEME_STBAR1, maxfnlen);
if (db->modflag) mdr_cout_char(screenlastrow, 5 + x, '!', SCHEME_STBAR2);
}
 
/* eol type */
{
const char *eoltype = "CRLF";
if (db->lfonly) eoltype += 2;
mdr_cout_str(screenlastrow, helpcol - 6, eoltype, SCHEME_STBAR1, 5);
mdr_cout_str(screenlastrow, helpcol - 5, eoltype, SCHEME_STBAR1, 5);
}
 
/* line numbers */
263,7 → 247,7
{
unsigned short x;
unsigned char count = 0;
unsigned short col = helpcol - 9;
col = helpcol - 7;
 
x = db->totlines;
AGAIN:
278,7 → 262,23
x = 1 + db->curline;
goto AGAIN;
}
}
 
/* filename and modflag */
{
const char *fn;
unsigned short x;
unsigned short maxfnlen = col - 6;
if (db->fname[0] == 0) {
fn = svarlang_str(0, 1); /* "UNTITLED" */
} else {
/* display filename up to maxfnlen chars */
fn = db->fname;
x = strlen(fn);
if (x > maxfnlen) fn += x - maxfnlen;
}
x = mdr_cout_str(screenlastrow, 4, fn, SCHEME_STBAR1, maxfnlen);
if (db->modflag) mdr_cout_char(screenlastrow, 5 + x, '!', SCHEME_STBAR2);
}
 
mdr_cout_str(screenlastrow, helpcol, s, SCHEME_STBAR2, 40);
/sved/trunk/sved.txt
12,7 → 12,7
 
- runs comfortably on a 8086-class PC with 256 KiB of RAM
- autodetects color and monochrome video modes
- supports extended text modes like 80x43, 80x50...
- supports unusual text modes like 80x43, 80x50, 40x25...
- multilingual UI
- only 7 KiB of disk footprint
- loads files larger than 64 KiB