nr_shell.c 292 B

1234567891011121314151617181920
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <curses.h>
  4. #include <unistd.h>
  5. #include <stdint.h>
  6. #include "nr_micro_shell.h"
  7. int main(int argc, char *argv[])
  8. {
  9. int c;
  10. system("stty -echo");
  11. system("stty -icanon");
  12. shell_init();
  13. while (1) {
  14. c = getchar();
  15. shell(c);
  16. }
  17. return 0;
  18. }