Mirror of https://codeberg.org/Norstorian/dosfetch. Yet another neofetch clone, this time in C and for DOS.
Find a file
Norstorian bb0ae9311a add information about usr and host
you gotta specify a username and hostname so it can tell you your username and hostname
2026-05-12 08:57:24 +02:00
DOS.H add DOSFETCH itself, along with images 2026-05-12 16:19:17 +09:30
DOSFETCH.C add DOSFETCH itself, along with images 2026-05-12 16:19:17 +09:30
image-1.png add DOSFETCH itself, along with images 2026-05-12 16:19:17 +09:30
image-2.png add DOSFETCH itself, along with images 2026-05-12 16:19:17 +09:30
image.png add DOSFETCH itself, along with images 2026-05-12 16:19:17 +09:30
README.md add information about usr and host 2026-05-12 08:57:24 +02:00
STDIO.H add DOSFETCH itself, along with images 2026-05-12 16:19:17 +09:30
STDLIB.H add DOSFETCH itself, along with images 2026-05-12 16:19:17 +09:30
STRING.H add DOSFETCH itself, along with images 2026-05-12 16:19:17 +09:30

DOSFetch

Yet another neofetch clone. Written in C, compiled with MSVC5.1. It was almost entirely written with QuickC as my IDE. Only bit coded inside not-DOS was adding the ASCII art.

dosfetch

Make sure you have the usr and host enviroment variables set, else the usr@host bit will be (null)@(null).

set usr=usernamehere
set host=hostnamehere

You should probably add those to config.sys (or in DOSBox-X, inside the dosbox-x config file in the [config] section).

The DOS logo is messed up, but you can tell what it's meant to be. I'll fix it next commit maybe.

Building

This is my first C program, so don't expect good code.

Requirements

  • MSVC 5.1

    • You might be able to get away with GCC and compiling for DOS, but I wouldn't reccomend it.
  • STDLIB.H, STDIO.H, STRING.H and DOS.H

    • Only for when compiling on modern systems, the ones bundled in don't compile on modern GCC.
    • Just replace the includes to use <> instead of "". You will still need to provide DOS.H.

Compilation

To actually compile it, you can either use the built in compiler in QuickC, or from the command line. I usually just compile from QuickC, as it's the IDE I'm using.

For compiling inside a CLI

  1. Compile

    cl dosfetch.c
    

You should now have dosfetch.exe, and dosfetch.obj.

For compiling from inside QuickC

  1. Open dosfetch.c in QuickC

    You will need enough RAM to run it, if you don't have enough, it'll just crash

    qc dosfetch.c
    
  2. Run > Compile > Build Program

    guide image number one

    guide image number two

    Choose Exe instead of Memory to build it to an actual program.

It should either output dosfetch.exe if you compiled an exe, dosfetch.obj for an object (this can be turned into an exe with the link MSVC tool), or you can hit Run > Start (Shift + F5) if you chose memory.