You could start from the RHIDE interface, that's still maintained as part of the FreeDOS extras. That's basically a variety of the old DOS text-mode programming environments.
It used to peg my cpu to 100% though back in the day when I used it. Hope they fixed that.
But I'd love something more modern.