Skip to content
Snippets Groups Projects
  1. Oct 28, 2024
  2. Oct 27, 2024
  3. Oct 26, 2024
  4. Oct 25, 2024
    • Deucе's avatar
      Set the size of the CONSOLE_SCREEN_BUFFER_INFOEX first · 79962d0d
      Deucе authored
      This allows GetConsoleScreenBufferInfoEx() to work for palette
      changes, allowing Console to not suck.  However, we now prefer
      ANSI mode over Win32 Console, so make that so it can actually
      fail on Windows of stdout is a TTY and we can't set the
      ENABLE_VIRTUAL_TERMINAL_PROCESSING flag.
      
      With this, ANSI mode is used in Windows Terminal, and Win32 Console
      is used in Legacy Console, and all should be good with the world.
      79962d0d
    • Deucе's avatar
      Don't use ANSI.SYS extensions · e07cf256
      Deucе authored
      CSI s and CSI u are ANSI.SYS extensions, and aren't needed here.
      We're clearing the screen and moveing the cursor anyway.
      e07cf256
    • Deucе's avatar
      Disable the clear to end-of-line optimization · 7554868f
      Deucе authored
      Not only was it broken when window() is set, it's also broken when
      the width is not the full screen width.
      
      We've now disabled pretty much all the optimizations... but it works.
      7554868f
    • Deucе's avatar
      Clean up ANSI output a bit · 76a3a9f1
      Deucе authored
      Specifically, make Win32 Terminal output not suck.
      If stdout is a tty, set the palette appropriately, avoid using \n
      since Windows can't seem to be stopped from expanding it to \r\n
      nd brob the Console modes a bit harder.
      76a3a9f1
    • Deucе's avatar
      Deal with more windows console braindeadedness. · 714e0ec0
      Deucе authored
      The window and the screen buffer are two different things... the
      screen buffer must always be the same size as or larger than the
      window.  Further, there are times where it's not possible to resize
      the windown programatically (new terminal for example).
      
      There still appears to be a stupid bug in what I assume is the
      Windows Terminal LCF flag implementation which causes writes to
      the beginning of a line that occur after a write to the end of the
      previous line to be in the wrong position.  If it's not the LCF flag
      (which isn't turned on), it's in their wrapping thing which is extra
      irritating since I explocitly turn that off.
      714e0ec0
    • Deucе's avatar
      Some more Win32 Terminal fixes · 0bf419eb
      Deucе authored
      Almost there, the main issue remaining is when running from a
      command-line, it sometimes "unwraps" lines.
      0bf419eb
    • Deucе's avatar
      Fix ANSI_KEY_PGDN definition. · f0348c26
      Deucе authored
      Likely still not right though.
      f0348c26
    • Deucе's avatar
      Keep a local copy of the screen for windows · 0f87d4e2
      Deucе authored
      Because it screws up the display when you resize the window.
      0f87d4e2
  5. Oct 24, 2024
  6. Oct 23, 2024
Loading