this post was submitted on 26 Nov 2021
1 points (100.0% liked)

Everything DOS

74 readers
1 users here now

"DOS is a platform-independent acronym for disk operating system which later became a common shorthand for disk-based operating systems on IBM PC compatibles. DOS primarily consists of Microsoft's MS-DOS and a rebranded version under the name IBM PC DOS, both of which were introduced in 1981. Later compatible systems from other manufacturers include DR DOS (1988), ROM-DOS (1989), PTS-DOS (1993), and FreeDOS (1998)." -- taken from Wikipedia

(link: https://en.wikipedia.org/wiki/DOS)

Feel free to ask questions about software, videogames, and anything else DOS related! Curious but not sure where to start? Get a copy of FreeDOS (see link / about below) and set it up in a PC emulator like GNOME Boxes or Oracle's VirtualBox. Need help with that as well? Just ask!

(link: https://freedos.org/download/)

"FreeDOS is an open source DOS-compatible operating system that you can use to play classic DOS games, run legacy business software, or develop embedded systems. Any program that works on MS-DOS should also run on FreeDOS." -- FreeDOS YouTube Channel

(link: https://www.youtube.com/c/FreeDOSProject/about)

Related lemmys:

Icon: Blinky, the FreeDOS fish mascot (designed by Bas Snabilie)

Icon Attribution: FreeDOS Project

(link: http://www.freedos.org/images/logos/fdfish-color-plain.svg)

Icon License: Creative Commons Attribution 2.5 Generic

(link: https://creativecommons.org/licenses/by/2.5/deed.en)

Banner: FreeDOS 1.1 screenshot

(link: https://en.wikipedia.org/wiki/File:FreeDOS_1.1_screenshot.png)

Banner license: GNU General Public License, version 2

(link: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)

founded 3 years ago
MODERATORS
 

Pictured above: a printout of an unformatted NRO source document (see link at bottom to get a PostScript or Plaintext copy)

What is NRO?

'NRO is a text processor based on the design provided in "Software Tools" by Kernighan and Plauger.' -- taken from the NRO description

(link: https://gitlab.com/FDOS/unix/nro/-/blob/master/HELP/NRO)

But that's not exactly helpful, is it? Put more simply, NRO is nroff for FreeDOS. Not sure what nroff is? For the GNU/Linux user, it's the program that makes manpages look the way they do. The GNU version used for GNU/Linux is called groff. For those unfamiliar, each line beginning with a period (.sp 2 for example) starts a formatting command. The letters specify which command is meant. All other lines contain the text that will be formatted. To learn more about nroff, look at the following Wikipeidia article on troff: https://en.wikipedia.org/wiki/Troff

Or visit the related Lemmy:

Does DOS need this? If so, why?

Good question! I am unsure. Nonetheless, it does its intended job well. It's possible to make easily readable documentation for DOS this way. However, groff can also be used for professional typesetting, akin to LaTeX, albeit with easier and simpler syntax. As I use groff primarily for this purpose, I was curious to see how the NRO version fared. For that, we turn to a printout of my NRO document:

The printout looks awful, and that's mostly due to the monospaced "typewriter font" that it's formatted with. Can this be remedied? Not without printing the document on a real PostScript printer with another font, I would think. Why don't I know for certain? I am printing this to PDF on Linux using CUPS, which creates a PDF document using the processed NRO output. Turning away from the font however, it's clear to see NRO did some fairly remarkable things to the source file. There is a header, an automatically numbered page, various indenting, bolded text, reasonable margins, and all the fragmented lines in the source file have been joined together to fill the page. Wow! It's just like every other word processor! But the real question is: should you start to use NRO? Probably not, unless you already use groff on GNU/Linux already, and want to continue to use it in FreeDOS.

Is there a better way to produce professional looking PostScript and PDF documents in FreeDOS? Up next on my schedule is exploring TeX in FreeDOS.

All the files shown here can be located / downloaded at the following address: https://github.com/sennler/nro/tree/main/EXAMPLES

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here