News for hackers. Stuff that matters.
Re:EMU2: A simple text-mode x86 and DOS emulator by AshamedCaptain on Tuesday April 13, 2021 @09:17PM (#26801856)
dosemu does exactly that. It even has a dumb terminal mode for this exact purpose (-t).
Re:EMU2: A simple text-mode x86 and DOS emulator by jhallenworld on Wednesday April 14, 2021 @10:05AM (#26807234)
I've been trying dosemu2, it's pretty good. Dosemu2 very badly needs better documentation, at least if the dosemu2 github is the starting point. Very basic things are not mentioned in the first documents you look at, like "exitemu" to exit the emulator and Ctrl-Alt-Home to grab/ungrab the mouse. The man page is incorrect for executing single commands, you need to type this to capture the output from a single command:

    dosemu -dumb -exec dir >foo
Or this if you want to see the output on the screen:

    dosemu -dumb -E dir