Announcement

Collapse
No announcement yet.

Full Screen in text mode on Win 10

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

  • Full Screen in text mode on Win 10

    Hello everybody.

    On Win 7 I had the CONSOLE instruction to get a full screen text mode.
    My old programs, now on Win 10, always appear in a window.

    Is it still possible to have a full screen text mode on Win 10?
    How to use the CONSOLE instruction for this goal?

    Thanks

  • #2
    Does post #4 in this thread help?
    https://forum.powerbasic.com/forum/u...onsol-modanity
    Rod
    In some future era, dark matter and dark energy will only be found in Astronomy's Dark Ages.

    Comment


    • #3
      Originally posted by Rodney Hicks View Post
      Those info are not useful for PBCC 5 that I use, Thanks anyway Rodney

      Comment


      • #4
        What instruction did you use on Win 7?

        Comment


        • #5
          Originally posted by Stuart McLachlan View Post
          What instruction did you use on Win 7?
          console set screen 25,80
          cls
          locate row,col
          print "hello";

          An example:
          #COMPILE EXE
          #DIM ALL
          #CONSOLE ON
          #BREAK ON


          FUNCTION PBMAIN () AS LONG

          CONSOLE SET SCREEN 26,80
          CLS
          LOCATE 12, 30
          PRINT "Ciao";
          WAITKEY$


          END FUNCTION
          and I get a window console, not full screen

          Comment


          • #6
            Originally posted by Stuart McLachlan View Post
            What instruction did you use on Win 7?
            What instruction to get full screen on Windows 7? And, CONSOLE what under which PBCC version??

            Cheers,
            Dale

            Comment


            • #7
              Originally posted by salvatore renda View Post

              console set screen 25,80
              cls
              locate row,col
              print "hello";

              An example:


              and I get a window console, not full screen
              Did that give you a full screen in Windows 7? I don't see how!


              Comment


              • #8
                Microsoft dropped support for the true-fullscreen (Alt-Enter) console mode, and IIRC it happened in the update to Windows 7. (I know it's gone in Windows 10, not 100% sure about 7.)

                So no matter how you were doing it*, it simply won't work any more. To test it, try running a PBCC program and press Alt-Enter. If nothing happens, your version of Windows does not have that capability,

                * Perhaps you were using my old Console Tools add-in?
                "Not my circus, not my monkeys."

                Comment


                • #9
                  Originally posted by Eric Pearson View Post
                  Microsoft dropped support for the true-fullscreen (Alt-Enter) console mode, and IIRC it happened in the update to Windows 7. (I know it's gone in Windows 10, not 100% sure about 7.)

                  So no matter how you were doing it*, it simply won't work any more. To test it, try running a PBCC program and press Alt-Enter. If nothing happens, your version of Windows does not have that capability,

                  * Perhaps you were using my old Console Tools add-in?
                  Alt+Enter DOES maximise the console window on my WIndows 10 running the code in Post #5

                  (ALt+Enter hides the caption bar, Hitting the Maximium button on the caption bar, maximises but the caption bar remains visible.)

                  Comment


                  • #10
                    Wow, I would have bet $100 that it didn't work any more, but you're right! Did they remove it and put it back, or am I remembering something that didn't happen? (Again.)

                    Added: I found this thread (and others) that confirms my recollection about it not working in Windows 7, but apparently Microsoft re-implemented fullscreen at some point. https://forum.powerbasic.com/forum/u...57-big-console Then again, the OP says it used to work for them on Windows 7. Hmm.
                    "Not my circus, not my monkeys."

                    Comment


                    • #11
                      Originally posted by Stuart McLachlan View Post

                      Alt+Enter DOES maximise the console window on my WIndows 10 running the code in Post #5

                      (ALt+Enter hides the caption bar, Hitting the Maximium button on the caption bar, maximises but the caption bar remains visible.)
                      Originally posted by Eric Pearson View Post
                      Wow, I would have bet $100 that it didn't work any more, but you're right! Did they remove it and put it back, or am I remembering something that didn't happen? (Again.)

                      Added: I found this thread (and others) that confirms my recollection about it not working in Windows 7, but apparently Microsoft re-implemented fullscreen at some point. https://forum.powerbasic.com/forum/u...57-big-console Then again, the OP says it used to work for them on Windows 7. Hmm.
                      Well guys, I remember for a while it worked, but because I am not using it since 10 years ago, I can't say how long it lasted.

                      With Alt+Enter it widens, and the right vertical bar is still there on my Win 10.

                      Comment


                      • #12
                        This also seems to work:
                        Edited - added print code to show buffers are ok..
                        '
                        Code:
                        #COMPILE EXE
                        #DIM ALL
                        #INCLUDE "WIN32API.INC"
                        
                        FUNCTION PBMAIN () AS LONG
                          SendMessage(CONSHNDL, %WM_SYSCOMMAND, %SC_MAXIMIZE, 0)
                          PRINT REPEAT$(100000, "ABC 123 ");
                          WAITKEY$
                        END FUNCTION
                        '

                        Comment


                        • #13
                          Originally posted by salvatore renda View Post
                          Hello everybody.

                          On Win 7 I had the CONSOLE instruction to get a full screen text mode.
                          My old programs, now on Win 10, always appear in a window.

                          Is it still possible to have a full screen text mode on Win 10?
                          How to use the CONSOLE instruction for this goal?

                          Thanks
                          I can't on Windows 10 32-bit. Get all sorts of results that aren't even close.

                          Comment


                          • #14
                            Salvatore, using PBCC 6 on an up-to-date Windows 10 system...

                            CONSOLE SET SCREEN 25,80
                            CLS
                            PRINT "HELLO";
                            WAITKEY$


                            ...and pressing Alt-Enter during the WAITKEY$, I see a fullscreen display without a scroll bar. What is the value of ERR right after CONSOLE SET SCREEN?

                            Also, am I correct that the font is too small to fill the screen with 25x80 text?
                            "Not my circus, not my monkeys."

                            Comment


                            • #15
                              This system does not support full screen mode.
                              As expected with 32-bit Windows 10. Are you using VGA?


                              Code:
                              #COMPILE EXE
                              #DIM ALL
                              #BREAK ON
                              #CONSOLE ON
                              #INCLUDE  "WIN32API.INC"
                              
                              FUNCTION PBMAIN () AS LONG
                               LOCAL ecode AS LONG
                               CONSOLE SET SCREEN 25,80
                               ecode = ERR
                              
                               CLS
                               LOCATE 24,1
                               PRINT "ecode";ecode;
                               WAITKEY$
                              EXIT FUNCTION
                              
                                SendMessage(CONSHNDL, %WM_SYSCOMMAND, %SC_MAXIMIZE, 0)
                                CONSOLE SET SCREEN 25,80
                                CLS
                                PRINT "hello";
                                PRINT REPEAT$(100000, "ABC 123 ");
                                WAITKEY$
                              
                                LOCAL sTemp AS STRING
                                sTemp  = USING$("Open (default) Screen # x #", CON.SCREEN.COL, CON.SCREEN.ROW)
                                ShowWindow CON.HANDLE, %SW_SHOWMAXIMIZED
                                sTemp += $CRLF + USING$("Max Screen # x #", CON.SCREEN.COL, CON.SCREEN.ROW)
                                STDOUT sTemp
                                ? "Esc key to exit"
                                WAITKEY$($ESC)
                              
                              END FUNCTION

                              Comment


                              • #16
                                Originally posted by Mike Doty View Post
                                This system does not support full screen mode.
                                As expected with 32-bit Windows 10. Are you using VGA?
                                Excellent point. We know very little about the OP's environment and this functionality appears to be system specific.

                                Comment

                                Working...
                                X