Subversion Repositories SvarDOS

Rev

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

Rev 421 Rev 533
Line 24... Line 24...
24
 
24
 
25
/*
25
/*
26
 * cls
26
 * cls
27
 */
27
 */
28
 
28
 
29
static int cmd_cls(struct cmd_funcparam *p) {
29
static enum cmd_result cmd_cls(struct cmd_funcparam *p) {
30
  unsigned char screenw, screenh;
30
  unsigned char screenw, screenh;
31
  const char *ansiesc = "\x1B[2J$";
31
  const char *ansiesc = "\x1B[2J$";
32
 
32
 
33
  if (cmd_ishlp(p)) {
33
  if (cmd_ishlp(p)) {
34
    outputnl("Clears the screen");
34
    outputnl("Clears the screen");
35
    outputnl("");
35
    outputnl("");
36
    outputnl("CLS");
36
    outputnl("CLS");
37
    return(-1);
37
    return(CMD_OK);
38
  }
38
  }
39
 
39
 
40
  screenw = screen_getwidth();
40
  screenw = screen_getwidth();
41
  screenh = screen_getheight();
41
  screenh = screen_getheight();
42
 
42
 
Line 81... Line 81...
81
    xor dx, dx       /* location in DH,DL */
81
    xor dx, dx       /* location in DH,DL */
82
    int 0x10
82
    int 0x10
83
    DONE:
83
    DONE:
84
  }
84
  }
85
 
85
 
86
  return(-1);
86
  return(CMD_OK);
87
}
87
}