Announcement

Collapse
No announcement yet.

Simulating QPRINT from Scnrio.inc?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simulating QPRINT from Scnrio.inc?

    After upgrading to 3.00, I learned that Scrnio.inc was no longer supported.
    One of the features provided by Scrnio.inc was a function called QPRINT, which PRINTed
    to the screen reverse lines of text (independent of the normal cursor's location).

    How can I simulate QPRINT in PB/CC 3.00?

    Many thanks! The changes to 3.00 have been very impressive!

    Regards,

    Paul Panks
    [email protected]


    ------------------
    Few cats act their age, while
    most just cough up furballs.
    Few cats act their age, while
    most just cough up furballs.

  • #2
    One point of clarification:

    By "reverse lines" I mean reverse video, i.e. something akin to the text output of
    extended background mode on the old Commodore 64 (e.g. line of text PRINTed to screen has it's own
    background color with it's own foreground text color as well).

    An example might be a line of text at the top of the screen, with red as the line's background color and
    white as the line's text foreground color.

    Regards,

    Paul Panks
    [email protected]

    ------------------
    Few cats act their age, while
    most just cough up furballs.
    Few cats act their age, while
    most just cough up furballs.

    Comment


    • #3
      Seems like you could implement this easily enough using built-in
      PB/CC statements...? Save the cursor position, set the cursor where
      you want it, print what you want, and restore the cursor position.

      The functioning of ScrnIO.inc has nothing to do with the compiler
      version. We found that it just doesn't work reliably, particularly
      under NT, Win2k, and XP. The code is pretty straightforward, so I
      tend to wonder if the Windows calls involved are working according
      to spec. If you don't plan on distributing the results, you might
      see whether ScrnIO.inc works ok for you. If you find a way to make
      ScrnIO more reliable, of course, please feel free to share your
      results.

      Unexpected behavior of these routines include displaying the right
      information in the wrong places and (apparently randomly) displaying
      part of the text in arbitrary colors.

      ------------------
      Tom Hanlin
      PowerBASIC Staff

      Comment

      Working...
      X