Updated echo
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@934
This commit is contained in:
parent
1ba388b35c
commit
948d4a65af
3 changed files with 19 additions and 0 deletions
|
@ -31,6 +31,7 @@ static SHELL_Cmd cmd_list[]={
|
|||
{ "DEL", 1, &DOS_Shell::CMD_DELETE, "SHELL_CMD_DELETE_HELP"},
|
||||
{ "DELETE", 0, &DOS_Shell::CMD_DELETE, "SHELL_CMD_DELETE_HELP"},
|
||||
{ "ECHO", 0, &DOS_Shell::CMD_ECHO, "SHELL_CMD_ECHO_HELP"},
|
||||
{ "ECHO.", 1, &DOS_Shell::CMD_EHCODOT, "SHELL_CMD_ECHO_HELP"},
|
||||
{ "EXIT", 0, &DOS_Shell::CMD_EXIT, "SHELL_CMD_EXIT_HELP"},
|
||||
{ "HELP", 0, &DOS_Shell::CMD_HELP, "SHELL_CMD_HELP_HELP"},
|
||||
{ "MD", 0, &DOS_Shell::CMD_MKDIR, "SHELL_CMD_MKDIR_HELP"},
|
||||
|
@ -151,6 +152,10 @@ void DOS_Shell::CMD_ECHO(char * args) {
|
|||
WriteOut("%s\n",args);
|
||||
};
|
||||
|
||||
void DOS_Shell::CMD_EHCODOT(char* args) {
|
||||
WriteOut("\n");
|
||||
}
|
||||
|
||||
void DOS_Shell::CMD_EXIT(char * args) {
|
||||
exit=true;
|
||||
};
|
||||
|
|
|
@ -81,6 +81,7 @@ public:
|
|||
void CMD_RENAME(char * args);
|
||||
void SyntaxError(void);
|
||||
void CMD_PAUSE(char * args);
|
||||
void CMD_EHCODOT(char* args);
|
||||
/* The shell's variables */
|
||||
Bit16u input_handle;
|
||||
BatchFile * bf;
|
||||
|
|
|
@ -102,6 +102,19 @@ void DOS_Shell::InputCommand(char * line) {
|
|||
outc('\n');
|
||||
size=0; //Kill the while loop
|
||||
break;
|
||||
case'\t':
|
||||
{
|
||||
Bit8u c=' ';Bit16u n=1;
|
||||
for(Bitu i=0; i !=4 ;i++)
|
||||
{
|
||||
line[str_index]=c;
|
||||
str_len++;//This should depend on insert being active
|
||||
str_index++;
|
||||
size--;
|
||||
DOS_WriteFile(STDOUT,&c,&n);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
line[str_index]=c;
|
||||
str_len++;//This should depend on insert being active
|
||||
|
|
Loading…
Add table
Reference in a new issue