From 5dfcf17b748612ed3bb1f8a0009e7931b7b89dfe Mon Sep 17 00:00:00 2001 From: Arkaprabha Chakraborty Date: Mon, 14 Feb 2022 10:38:49 +0530 Subject: [PATCH] Update README.md --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9ff6047..e54d0d0 100755 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Prints a spinning ASCII torus (mathematical name for a doughnut-shaped object) o * Type `python doughnut.py` in the shell to run the Python version -## How to compile the C version +## How to compile or build the C version * Type `gcc -o doughnut.exe doughnut.c -lm` in the shell to compile using GCC * Type `clang -o doughnut.exe doughnut.c -lm` in the shell to compile using Clang @@ -27,6 +27,7 @@ Prints a spinning ASCII torus (mathematical name for a doughnut-shaped object) o ## How to run the C version * Type `.\doughnut.exe` in the shell to run the program +* Type `.\doughnut.exe --enable-dynamic-resolution` in the shell to run the program with dynamic resolution enabled * You can also double-click on the executable (a.k.a. a dot-exe file) to run it # For Linux @@ -41,12 +42,17 @@ Prints a spinning ASCII torus (mathematical name for a doughnut-shaped object) o * `sudo pacman -S make` to install Make * `make arch` to install the required compilers +## How to compile C version + +* `make build` to compile the C version + ## How to run the programs -* `make c` to run the C version +* `make run-c` to run the C version +* `make run-cd` to run the C version with dynamic resolution enabled * `make py` to run the Python version -## How to clean up the executable +## How to clean up the C executable * `make clean` to clean up after execution @@ -54,6 +60,7 @@ Prints a spinning ASCII torus (mathematical name for a doughnut-shaped object) o * Added support for dynamic resolution based on current terminal size * Added Windows support +* Added support for dynamic resolution within the same session # Screenshot