turbocat 504bda29b5 kolibri-libc:
- Added shell_printf
- Added shell functions to export table.
- Fixed  libc.obj build(use mingw)
- Removed generated libc.obj-loader files

git-svn-id: svn://kolibrios.org@8632 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-03-03 20:00:50 +00:00

24 lines
628 B
C

#include <shell_api.h>
#include <ksys.h>
#include <stdio.h>
int main(int argc, char**argv)
{
char string[256];
shell_cls();
shell_printf("Number of arguments %d\n",argc);
for(int i=0; i<argc; i++){
shell_printf("argv[%d]=%s\n", i, argv[i]);
}
shell_puts("This is a test console application for Shell\n\r");
shell_puts("Type a string (255 symbols max): ");
shell_gets(string);
shell_puts("You typed:\n\r");
shell_puts(string);
shell_puts("Press any key: ");
string[0] = shell_getc();
shell_puts("\n\rYou pressed: ");
shell_putc(string[0]);
shell_exit();
}