Subversion Repositories SvarDOS

Rev

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

Rev 956 Rev 989
Line 33... Line 33...
33
  char *buff = p->BUFFER;
33
  char *buff = p->BUFFER;
34
  unsigned char maj = 0, min = 0;
34
  unsigned char maj = 0, min = 0;
35
 
35
 
36
  /* help screen */
36
  /* help screen */
37
  if (cmd_ishlp(p)) {
37
  if (cmd_ishlp(p)) {
38
    outputnl("Displays the DOS version.");
38
    nls_outputnl(20,0); /* "Displays the DOS version." */
39
    outputnl("");
39
    outputnl("");
40
    outputnl("ver [/about]");
40
    outputnl("ver [/about]");
41
#ifdef VERDBG
41
#ifdef VERDBG
42
    outputnl("ver /dbg");
42
    outputnl("ver /dbg");
43
#endif
43
#endif
Line 87... Line 87...
87
    return(CMD_OK);
87
    return(CMD_OK);
88
  }
88
  }
89
#endif
89
#endif
90
 
90
 
91
  if ((p->argc == 1) && (imatch(p->argv[0], "/about"))) {
91
  if ((p->argc == 1) && (imatch(p->argv[0], "/about"))) {
92
    outputnl("SvarCOM is a shell interpreter for DOS kernels compatible with MS-DOS 5+.");
92
    nls_outputnl(20,3); /* "SvarCOM is a shell interpreter for DOS kernels compatible with MS-DOS 5+." */
93
    outputnl("");
93
    outputnl("");
94
    outputnl("This software is distributed under the terms of the MIT license.");
94
    nls_outputnl(20,4); /* "This software is distributed under the terms of the MIT license." */
95
    outputnl("Copyright (C) " COPYRDATE " Mateusz Viste");
95
    outputnl("Copyright (C) " COPYRDATE " Mateusz Viste");
96
    outputnl("");
96
    outputnl("");
97
    outputnl("Program ten dedykuje Milenie i Mojmirowi. Zycze wam, byscie w swoim zyciu");
97
    outputnl("Program ten dedykuje Milenie i Mojmirowi. Zycze wam, byscie w swoim zyciu");
98
    outputnl("potrafili docenic wartosci minionych pokolen, jednoczesnie czerpiac radosc");
98
    outputnl("potrafili docenic wartosci minionych pokolen, jednoczesnie czerpiac radosc");
99
    outputnl("z prostych przyjemnosci dnia codziennego.  Lair, jesien 2021.");
99
    outputnl("z prostych przyjemnosci dnia codziennego.  Lair, jesien 2021.");
100
    return(CMD_OK);
100
    return(CMD_OK);
101
  }
101
  }
102
 
102
 
103
  if (p->argc != 0) {
103
  if (p->argc != 0) {
104
    outputnl("Invalid parameter");
104
    nls_outputnl(0,6); /* "Invalid parameter" */
105
    return(CMD_FAIL);
105
    return(CMD_FAIL);
106
  }
106
  }
107
 
107
 
108
  _asm {
108
  _asm {
109
    push ax
109
    push ax
Line 116... Line 116...
116
    pop cx
116
    pop cx
117
    pop bx
117
    pop bx
118
    pop ax
118
    pop ax
119
  }
119
  }
120
 
120
 
121
  sprintf(buff, "DOS kernel version %u.%u", maj, min);
121
  sprintf(buff, svarlang_str(20,1), maj, min); /* "DOS kernel version %u.%u" */
122
 
122
 
123
  outputnl(buff);
123
  outputnl(buff);
124
  outputnl("SvarCOM shell ver " PVER);
124
  nls_output(20,2); /* "SvarCOM shell ver" */
-
 
125
  outputnl(" " PVER);
125
  return(CMD_OK);
126
  return(CMD_OK);
126
}
127
}