forked from KolibriOS/kolibrios
Update skipped files in previous commit
git-svn-id: svn://kolibrios.org@9766 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
#include "../include/shell_api.h"
|
||||
#include "../include/shell_api.h"
|
||||
|
||||
char string[256];
|
||||
|
||||
int main(){
|
||||
int main()
|
||||
{
|
||||
shell_cls();
|
||||
shell_printf("SHELL PID=%d\n\r", shell_get_pid());
|
||||
|
||||
|
||||
shell_puts("This is a test console application for Shell\n\r");
|
||||
shell_puts("Type a string (255 symbols max): ");
|
||||
|
||||
shell_gets(string, 255);
|
||||
shell_printf("You typed: %s\n\r", string);
|
||||
|
||||
|
||||
shell_puts("Press any key: ");
|
||||
string[0] = shell_getc();
|
||||
shell_printf("\n\rYou pressed: %c", string[0]);
|
||||
|
Reference in New Issue
Block a user