Subversion Repositories SvarDOS

Rev

Rev 1335 | Rev 1337 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1335 Rev 1336
Line 221... Line 221...
221
}
221
}
222
 
222
 
223
 
223
 
224
static void ui_help(void) {
224
static void ui_help(void) {
225
#define MAXLINLEN 35
225
#define MAXLINLEN 35
226
  unsigned short i, offset;
226
  unsigned char i, offset;
227
  offset = (screenw - MAXLINLEN + 2) >> 1;
227
  offset = (screenw - MAXLINLEN + 2) >> 1;
228
 
228
 
229
  mdr_cout_cursor_hide();
-
 
230
  for (i = 2; i < 18; i++) {
229
  for (i = 2; i < 18; i++) {
231
    mdr_cout_char_rep(i, offset - 2, ' ', SCHEME_STBAR1, MAXLINLEN + 2);
230
    mdr_cout_char_rep(i, offset - 2, ' ', SCHEME_STBAR1, MAXLINLEN + 2);
232
  }
231
  }
233
 
232
 
234
  for (i = 0; i < 20; i++) {
233
  for (i = 0; i < 20; i++) {
235
    const char *s = svarlang_str(8, i);
234
    const char *s = svarlang_strid(i);
236
    if (s[0] == 0) break;
235
    if (s[0] == 0) break;
237
    if (s[0] == '.') continue;
236
    if (s[0] == '.') continue;
238
    mdr_cout_str(3 + i, offset, s, SCHEME_STBAR1, MAXLINLEN);
237
    mdr_cout_locate(3 + i, offset + mdr_cout_str(3 + i, offset, s, SCHEME_STBAR1, MAXLINLEN));
239
  }
238
  }
240
 
239
 
241
  keyb_getkey();
240
  keyb_getkey();
242
  mdr_cout_cursor_show();
-
 
243
#undef MAXLINLEN
241
#undef MAXLINLEN
244
}
242
}
245
 
243
 
246
 
244
 
247
static void ui_refresh(const struct file *db) {
245
static void ui_refresh(const struct file *db) {