Rev 8632 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8629 | turbocat | 1 | #include |
2 | #include |
||
3 | #include |
||
4 | |||
8632 | turbocat | 5 | int main(int argc, char**argv) |
8629 | turbocat | 6 | { |
8635 | turbocat | 7 | debug_printf("%u\n", shell_get_pid()); |
8629 | turbocat | 8 | char string[256]; |
9 | shell_cls(); |
||
8632 | turbocat | 10 | shell_printf("Number of arguments %d\n",argc); |
11 | for(int i=0; i |
||
12 | shell_printf("argv[%d]=%s\n", i, argv[i]); |
||
13 | } |
||
8629 | turbocat | 14 | shell_puts("This is a test console application for Shell\n\r"); |
15 | shell_puts("Type a string (255 symbols max): "); |
||
16 | shell_gets(string); |
||
17 | shell_puts("You typed:\n\r"); |
||
18 | shell_puts(string); |
||
19 | shell_puts("Press any key: "); |
||
20 | string[0] = shell_getc(); |
||
21 | shell_puts("\n\rYou pressed: "); |
||
22 | shell_putc(string[0]); |
||
23 | shell_exit(); |
||
24 | } |