intro.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // File: intro.c
  3. // intro.c plays the introduction sequence
  4. // @author Josh Bicking <josh1147582>
  5. // // // // // // // // // // // // // // // // // // // // // // //
  6. #define _BSD_SOURCE /* for unistd.h */
  7. #ifdef _WIN32
  8. // Windows implements sleep in Windows.h with Sleep(milliseconds)
  9. # include <curses.h>
  10. # include <Windows.h>
  11. # define SLEEP(delay) Sleep(delay/1000)
  12. #else
  13. // Unix requires unistd.h for usleep(microseconds).
  14. // usleep/1000 = Sleep
  15. # include <ncurses.h>
  16. # include <unistd.h>
  17. # define SLEEP(delay) usleep(delay)
  18. #endif
  19. #include <string.h>
  20. #include "print.h"
  21. #include "intro.h"
  22. /// Plays the introduction sequence.
  23. ///
  24. void intro(){
  25. clear();
  26. SLEEP(250000);
  27. slowPrint("WELCOME TO ROBCO INDUSTRIES (TM) TERMLINK", 0);
  28. move(1, 0);
  29. refresh();
  30. SLEEP(30000);
  31. mvprintw(2,0,"%c", '>');
  32. move(2,1);
  33. refresh();
  34. SLEEP(1500000);
  35. slowType("SET TERMINAL/INQUIRE", 2);
  36. slowPrint("RIT-V300", 4);
  37. mvprintw(6,0,"%c", '>');
  38. refresh();
  39. SLEEP(1500000);
  40. slowType("SET FILE/PROTECTION=OWNER:RWED ACCOUNTS.F",6);
  41. mvprintw(7,0,"%c", '>');
  42. refresh();
  43. SLEEP(1500000);
  44. slowType("SET HALT RESTART/MAINT",7);
  45. slowPrint("Initializing Robco Industries(TM) Boot Agent v2.3.0",9);
  46. slowPrint("RBIOS-4.02.08.00 53EE5.E7.E8",10);
  47. slowPrint("Copyright 2201-22-3 Robco Ind.",11);
  48. slowPrint( "Uppermem: 64 KB",12);
  49. slowPrint("Root (5A8)",13);
  50. slowPrint("Maintenance Mode",14);
  51. mvprintw(16,0,"%c",'>');
  52. refresh();
  53. SLEEP(1500000);
  54. slowType("RUN DEBUG/ACCOUNTS.F",16);
  55. move(16,0);
  56. refresh();
  57. SLEEP(50000);
  58. }