Thread: Trying to emulate a terminal screen

  1. #1
    Registered User
    Join Date
    Sep 2023
    Posts
    2

    Trying to emulate a terminal screen

    I'm writing an emulator for a homebrew computer I've built. I would like to create a window that I can treat just as the real hardware screen.

    It almost needs to be a simple console app, except for some important differences.

    The real hardware is 640x480 pixels, with 8x12 characters. No graphics needed. Unlike a console app, I do need to be able to draw characters to arbitrary screen locations. And I need complete control of the cursor. The font doesn't need to be exactly like my home made ROM, but I need 40x80 characters to fill the screen properly.

    I don't want to redraw the entire screen every time a cursor blinks, so constantly dumping my video buffer to a simple console is out (unless that can be done with no flickering of the screen).

    I'm willing to lock my window size, but it WOULD be cool if the window was sizeable, and the font always scaled to maintain 40x80. Font manipulation seems poorly documented on the web to me.

    I've been pouring over the MS docs, and can really see how to do this. I don't need code, just what parts of the PI can help me.

  2. #2
    Registered User
    Join Date
    Oct 2019
    Posts
    82
    Quote Originally Posted by MoosTone View Post

    I've been pouring over the MS docs, and can really see how to do this. I don't need code, just what parts of the PI can help me.
    Have you looked at GDI or gdiplus(these I am not sure about but maybe dwrite and others) could be what you're looking. Gdiplus(and GDI) allow for font high level font manipulation and they offer low level(GDI) and higher level(Gdiplus) drawing text on a window.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 08-28-2011, 09:01 PM
  2. Getting screen size - unix/linux terminal
    By enok in forum C++ Programming
    Replies: 3
    Last Post: 11-21-2009, 04:56 AM
  3. Console, Terminal and Terminal Emulator
    By lehe in forum C Programming
    Replies: 4
    Last Post: 02-15-2009, 09:59 PM
  4. Emulate an '@' keypress or any other char
    By Kirdra in forum Windows Programming
    Replies: 6
    Last Post: 02-04-2009, 09:07 AM
  5. Program to emulate calculator
    By crucified in forum C Programming
    Replies: 24
    Last Post: 09-09-2008, 01:58 AM

Tags for this Thread