Subversion Repositories SvarDOS

Rev

Rev 533 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 533 Rev 989
Line 1... Line 1...
1
/* This file is part of the SvarCOM project and is published under the terms
1
/* This file is part of the SvarCOM project and is published under the terms
2
 * of the MIT license.
2
 * of the MIT license.
3
 *
3
 *
4
 * Copyright (C) 2021 Mateusz Viste
4
 * Copyright (C) 2021-2022 Mateusz Viste
5
 *
5
 *
6
 * Permission is hereby granted, free of charge, to any person obtaining a
6
 * Permission is hereby granted, free of charge, to any person obtaining a
7
 * copy of this software and associated documentation files (the "Software"),
7
 * copy of this software and associated documentation files (the "Software"),
8
 * to deal in the Software without restriction, including without limitation
8
 * to deal in the Software without restriction, including without limitation
9
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Line 29... Line 29...
29
static enum cmd_result 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
    nls_outputnl(10,0); /* "Clears the screen" */
35
    outputnl("");
35
    outputnl("");
36
    outputnl("CLS");
36
    outputnl("CLS");
37
    return(CMD_OK);
37
    return(CMD_OK);
38
  }
38
  }
39
 
39