User Tools

Site Tools


cdc:nos2.source:nam5871:nvfttch

NVFTTCH

Table Of Contents

  • [00005] PROC NVFTTCH
  • [00006] NVFTTCH - RECORD TERMINAL CHARACTERISTIC CHANGE (TCH/TCHAR SM)
  • [00010] RECORD TERMINAL CHARACTERISTIC CHANGE (TCH/TCHAR SM).

Source Code

NVFTTCH.txt
  1. *DECK NVFTTCH
  2. USETEXT TEXTNVF
  3. USETEXT TXTAPSS
  4.  
  5. PROC NVFTTCH;
  6. # TITLE NVFTTCH - RECORD TERMINAL CHARACTERISTIC CHANGE (TCH/TCHAR SM) #
  7.  
  8. BEGIN # NVFTTCH #
  9. #
  10. ** NVFTTCH - RECORD TERMINAL CHARACTERISTIC CHANGE (TCH/TCHAR SM).
  11. *
  12. * E. THAVIKULWAT 81/09/25
  13. *
  14. * THIS PROCEDURE UPDATES TERMINAL CLASS, PAGE WIDTH, AND PAGE
  15. * LENGTH FOR A TERMINAL IN RESPONSE TO A TCH/TCHAR REQUEST. IT IS
  16. * CALLED INTO EXECUTION BY PROCEDURE *NVFTDQE*.
  17. *
  18. * PROC NVFTTCH
  19. *
  20. * ENTRY:
  21. * TCH/TCHAR IN *MSGBUF*
  22. *
  23. * EXIT:
  24. * TERMINAL CLASS, PAGE WIDTH, AND PAGE LENGTH UPDATED
  25. *
  26. * METHOD:
  27. * SEARCH PTAC TABLE FOR ENTRY THAT MATCHES THIS TERMINAL'S ACN.
  28. * IF ENTRY FOUND, UPDATE TERMINAL CLASS, PAGE WIDTH, AND PAGE
  29. * LENGTH IN THE PTAC ENTRY. OTHERWISE, IGNORE THE SM.
  30. #
  31.  
  32. ITEM MATCH B; # EXIT LOOP VARIABLE #
  33. ITEM NENTRY I; # NUMBER OF ENTRIES IN TABLE #
  34. ITEM PT I; # SUBSCRIPT FOR ARRAY PTAC #
  35.  
  36. #
  37. * SEARCH PTAC TABLE FOR ENTRY THAT MATCHES THIS TERMINAL'S ACN.
  38. * IF NO MATCH, IGNORE SM.
  39. #
  40. MATCH = FALSE;
  41. NENTRY = PTALNGTH / PTACSIZ$; # CALCULATE NUMBER OF ENTRIES #
  42. FOR PT = 0 STEP 1 WHILE (NOT MATCH AND PT LS NENTRY)
  43. DO
  44. BEGIN
  45. IF PTA$ACN[PT] EQ TCHACN[0]
  46. THEN
  47. BEGIN # PTAC ENTRY FOUND #
  48. #
  49. * UPDATE TERMINAL CLASS, PAGE WIDTH, AND PAGE LENGTH.
  50. #
  51. PTA$TC[PT] = TCHTCL[0];
  52. PTA$PW[PT] = TCHPW[0];
  53. PTA$PL[PT] = TCHPL[0];
  54. MATCH = TRUE;
  55. END
  56. END
  57.  
  58. END # END NVFTTCH #
  59.  
  60. TERM
cdc/nos2.source/nam5871/nvfttch.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator