Announcement

Collapse
No announcement yet.

Console Size

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

  • Console Size

    Before moving to Win10 OS the CON.SCREEN instruction worked. With Win10 the only way I can set the console size is via the console properties. Is there a work-around for this behavior?
    Walt Decker

  • #2
    This is from the console compiler ver 5.07.0205
    To get the screen size
    CONSOLE GET SIZE TO nWidth&, nHeight&
    to set the screen size
    CONSOLE SET SCREEN ncRows&, ncColumns&
    From the console compiler ver 6.04.0108
    con.size
    HorizontalValue& = CON.SIZE.X
    VerticalValue& = CON.SIZE.Y

    To set the console size
    CON.SCREEN RowValue&, ColValue&

    KS

    Comment


    • #3
      I know that, Mr. Shelton.
      the only way I can set the console size is via the console properties
      I am using pbcc6x on Win10 OS. "CON.SCREEN" does not work on my system.
      Walt Decker

      Comment


      • #4
        Walt,

        You can recover that feature checking the option "Use legacy console" on the console properties.

        Comment


        • #5
          I tried that, Mr. Valdez; however, I'll try it again. Perhaps it requires a reboot to take.

          It worked this time. Thank you.
          Walt Decker

          Comment


          • #6
            I have used a procedure called ConsoleResizeEx by Yuzree Esmera. Found it using Google search at (see posting #21 at top of page there) https://forum.powerbasic.com/forum/u...ge2#post636331

            Comment

            Working...
            X