|
|
1.1.1.2 ! root 1: /* help.c - Show help screen */ ! 2: /* Created by Microsoft Corp. 1986 */ ! 3: 1.1 root 4: 5: #include "ds.h" 6: #include "vars.h" 7: 8: 9: char helpScreen[][63] = { 10: /* 123456789 123456789 123456789 123456789 123456789 123456789 1 */ 11: "����������������������������[ Help ]������������������������ͻ", /* 0 */ 12: "� 21 Aug 1986 � Display Subdirectories � Ver 0.030 �", /* 1 */ 13: "������������������������������������������������������������", /* 2 */ 14: "� Cursor Keys �", /* 3 */ 15: "� �", /* 4 */ 16: "� up - move to upper sibling left - move to parent �", /* 5 */ 17: "� down - move to lower sibling right - move to child �", /* 6 */ 18: "� �", /* 7 */ 19: "� Shift F1: Set Colors �", /* 8 */ 20: "� F9: Exit �", /* 9 */ 21: "� Enter: Spawn shell at current directory �", /* 10 */ 22: "� �", /* 11 */ 23: "������������������[ Press any key to return ]���������������ͼ" /* 12 */ 24: }; 25: 26: #define H_WIDTH 62 27: #define H_HEIGHT 13 28: 29: int H_ROW; /* (N_of_Rows - H_HEIGHT)/2 */ 30: int H_COL; /* (N_of_Cols - H_WIDTH)/2 */ 31: 32: 33: /*** helpInit - initialize stuff for the help screen 34: * 35: * 36: */ 37: helpInit () 38: { 39: H_ROW = (N_of_Rows - H_HEIGHT)/2; 40: H_COL = (N_of_Cols - H_WIDTH)/2; 41: } /* helpInit */ 42: 43: 44: /*** showHelp - display the help screen 45: * 46: * 47: */ 48: showHelp () 49: { 50: int row,col; 51: Attr a; 52: 53: a = color[popupC]; 54: 55: for (row=0; row<H_HEIGHT; row++) 1.1.1.2 ! root 56: VioWrtCharStrAtt (chfs(helpScreen[row]), H_WIDTH, row+H_ROW,H_COL, 1.1 root 57: afs(&a), VioHandle); 58: getch(); /* Pause */ 59: } /* showHelp */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.