Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #include <shell_api.h>
  2. #include <ksys.h>
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {  
  7.     char string[256];
  8.     shell_cls();
  9.     shell_puts("This is a test console application for Shell\n\r");
  10.     shell_puts("Type a string (255 symbols max): ");
  11.     shell_gets(string);
  12.     shell_puts("You typed:\n\r");
  13.     shell_puts(string);
  14.     shell_puts("Press any key: ");
  15.     string[0] = shell_getc();
  16.     shell_puts("\n\rYou pressed: ");
  17.     shell_putc(string[0]);
  18.     shell_exit();
  19. }
  20.