Note that there are some explanatory texts on larger screens.

plurals
  1. POC# + WPF : text mode equivalent of old DOS libraries or curses
    primarykey
    data
    text
    <p>The goal: For a personal project, I'd like to simulate an old-fashioned computer interface with full screen command line, hex editor, text editor, etc. All text, no graphics. (For a simulator/emulator of a hypothetical computer.)</p> <p>The starting point: I've figured out that console mode can't be full-screened anymore but that I can easily go fullscreen in WPF with WindowState=Maximized and WindowStyle=None. So I can make a full-screen TextBox.</p> <p>The problem: Is there an existing control, pattern, or library for basic writing to a screen of text and reading from the keyboard (not filling out and submitting a field on a form, like a TextBox is geared toward)? </p> <p>I assume that I'll need to make my own custom control instead of a textbox, and build a large class of low-level methods to position the cursor, output characters, react to input, etc. But if there's a tried-and-true method or standard approach, I'd rather use that than burn time reinventing a commonly-used wheel.</p> <p>In the olden DOS days, I would've used a library based off of direct BIOS video calls, PEEKs and POKEs to video RAM, and keyboard and mouse polling. Of course that doesn't apply anymore, but neither do the standard console routines. Is there something already out there that fills that niche?</p> <p>[edit]</p> <p>To clarify. In DOS days, we had libraries for things like: </p> <pre><code>Scroll(3); Write(24,1, "Your command has been queued for execution"); input = Prompt(25, 1, "Enter a command&gt;"); </code></pre> <p>and in document edit mode we would do things like </p> <pre><code>key = WaitKey(); switch (key) { case PGUP: Scroll(-24); case PGDN: Scroll(24); case LEFT: MoveCursor(-1,0); case DOWN: MoveCursor(0,1); // ... } </code></pre> <p>etc... That's the sort of thing that I'm looking for. Something with functions like Write, Scroll, Prompt, etc.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload