forked from KolibriOS/kolibrios
781f3f0fab
- Added shell apis(shell_api.h) - Added functions for working with a named shared memory area(ksys.h). - Fixed itoa git-svn-id: svn://kolibrios.org@8629 a494cfbc-eb01-0410-851d-a64ba20cac60
20 lines
469 B
C
20 lines
469 B
C
#include <shell_api.h>
|
|
#include <ksys.h>
|
|
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
char string[256];
|
|
shell_cls();
|
|
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();
|
|
}
|