intro.c 1.9 KB

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