- C 100%
|
|
||
|---|---|---|
| DOS.H | ||
| DOSFETCH.C | ||
| image-1.png | ||
| image-2.png | ||
| image.png | ||
| README.md | ||
| STDIO.H | ||
| STDLIB.H | ||
| STRING.H | ||
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.
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.HandDOS.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 provideDOS.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
-
Compile
cl dosfetch.c
You should now have dosfetch.exe, and dosfetch.obj.
For compiling from inside QuickC
-
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 -
Run > Compile > Build Program
Choose
Exeinstead ofMemoryto 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.


