home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12690 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.2 KB

  1. Xref: sparky comp.os.vms:12690 comp.lang.pascal:4519 comp.lang.c:11499 comp.terminals:965
  2. Path: sparky!uunet!portal!cup.portal.com!Aurelius
  3. From: Aurelius@cup.portal.com (Mark Christian Barnes)
  4. Newsgroups: comp.os.vms,comp.lang.pascal,comp.lang.c,comp.terminals
  5. Subject: Re: How to read device attributes response ?
  6. Message-ID: <62648@cup.portal.com>
  7. Date: Wed, 22 Jul 92 23:31:55 PDT
  8. Organization: The Portal System (TM)
  9. Distribution: usa
  10. References:  <12996.2a671aaf@ohstpy.mps.ohio-state.edu>
  11. Lines: 20
  12.  
  13. S.V. writes:
  14.  
  15. | **I need to read the VT330 terminal's attributes
  16. | (mode, etc) from within running program, and I send
  17. | for this purpose the sequence <CSI c> to terminal.
  18. | It should respond with service code, which
  19. | looks like <CSI ? 63;1;2;...;c> . But the
  20. | problem is I cannot read this response !!!!!
  21. | Does anybody know how to handle device attribute
  22. | response ?
  23. | Many thanks for any suggestions...
  24. | S.V.
  25.  
  26.  Yes, you could issue a $QIO( extended read ) call. You need to include
  27. a terminator list that has the character(s) you are expecting from the
  28. VT330 response sequence. I don't exactly remember the details, but I
  29. do have some VAX C code that does all this. I could E-mail it to you
  30. soon ... if you like.
  31.  
  32.                 Aurelius@cup.portal.com
  33.