chaosforgeorg / fpcvalkyrie

FPC Valkyrie library
MIT License
26 stars 18 forks source link

SDL Console for FPC Valkyrie #5

Closed tung closed 1 week ago

tung commented 2 weeks ago

From the commit message:

This adds a fake console rendered and handled by SDL 2, featuring:

  • cross-platform high ASCII support
  • zoomed-in pixel-perfect font rendering with no extra config needed
  • batched rendering with SDL 2's rendering subsystem
  • better key handling: single-press Esc, Shift/Ctrl/Alt, numpad+numlock
  • accurate ASCII console with FreePascal's video/keyboard driver systems
  • blinking cursor and text support

Other notes:

  • needs font_console.png (code page 437) in the current directory
  • colors are hard-coded
  • screen size detection doesn't consider title/task bars, other screens
  • no screen reader support since it's not a real console

This was made with DRL in mind; I'll link the upcoming PR with more details there to this one once I've submitted it.

I'm aware that there's lots of work being done in the development branch; feel free to merge this if/when/how you want.