Subversion Repositories SvarDOS

Rev

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

Rev 1427 Rev 1428
Line 262... Line 262...
262
}
262
}
263
 
263
 
264
 
264
 
265
static void ui_msg(const char *msg1, const char *msg2, unsigned char attr) {
265
static void ui_msg(const char *msg1, const char *msg2, unsigned char attr) {
266
  unsigned short x, y, msglen, i;
266
  unsigned short x, y, msglen, i;
267
  unsigned char msg2flag = 0;
267
  unsigned short msg2flag = 0;
268
 
268
 
269
  msglen = strlen(msg1);
269
  msglen = strlen(msg1);
270
  if (msg2) {
270
  if (msg2) {
271
    msg2flag = 1;
271
    msg2flag = 1;
272
    i = strlen(msg2);
272
    i = strlen(msg2);
Line 391... Line 391...
391
  }
391
  }
392
}
392
}
393
 
393
 
394
 
394
 
395
static void cursor_up(struct file *db) {
395
static void cursor_up(struct file *db) {
396
 
-
 
397
  if (db->cursor->prev == NULL) return;
396
  if (db->cursor->prev == NULL) return;
398
 
397
 
399
  db->curline -= 1;
398
  db->curline -= 1;
400
  db->cursor = db->cursor->prev;
399
  db->cursor = db->cursor->prev;
401
  if (db->cursorposy == 0) {
400
  if (db->cursorposy == 0) {
Line 423... Line 422...
423
  db->cursorposx = db->cursor->len - db->xoffset;
422
  db->cursorposx = db->cursor->len - db->xoffset;
424
}
423
}
425
 
424
 
426
 
425
 
427
static void cursor_down(struct file *db) {
426
static void cursor_down(struct file *db) {
428
 
-
 
429
  if (db->cursor->next == NULL) return;
427
  if (db->cursor->next == NULL) return;
430
 
428
 
431
  db->curline += 1;
429
  db->curline += 1;
432
  db->cursor = db->cursor->next;
430
  db->cursor = db->cursor->next;
433
  if (db->cursorposy < screenh - 2) {
431
  if (db->cursorposy < screenh - 2) {