From 0f62ea872a83ebe40d9da49581e158feeae156b6 Mon Sep 17 00:00:00 2001 From: ManojTGN Date: Fri, 3 May 2024 07:50:24 +0530 Subject: [PATCH 1/5] update 5.0.0 --- ascii.rc | 4 ++-- makefile | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ascii.rc b/ascii.rc index f7e98eb..fce3ee9 100644 --- a/ascii.rc +++ b/ascii.rc @@ -17,12 +17,12 @@ BEGIN BEGIN VALUE "CompanyName", "AceContra\0" VALUE "FileDescription", "AsciiTable shows octal, hexadecimal, and decimal representations of ascii characters\0" - VALUE "FileVersion", "0.4.1.7\0" + VALUE "FileVersion", "0.5.0.0\0" VALUE "InternalName", "acecontra.ascii-table\0" VALUE "LegalCopyright", "AceContra\0" VALUE "OriginalFilename", "ascii_x64.exe\0" VALUE "ProductName", "asciiTable\0" - VALUE "ProductVersion", "0.4.1.0\0" + VALUE "ProductVersion", "0.5.0.0\0" END END BLOCK "VarFileInfo" diff --git a/makefile b/makefile index 13fb9a4..2a2576a 100644 --- a/makefile +++ b/makefile @@ -8,13 +8,16 @@ _test: _build $(CC) -o test/test.exe build/ascii.o test/test.c ./test/test.exe +rc: + windres ascii.rc -o build/asciirc.o + renderer: $(CXX) -shared -o build/renderer.dll src/renderer.cpp -Wno-write-strings -_build: clean renderer +_build: clean renderer rc if [ ! -d build ]; then mkdir build; fi $(CC) -o build/ascii.o -c src/ascii.c - $(CC) -o build/ascii.exe build/ascii.o src/main.c -Lbuild -lrenderer + $(CC) -o build/ascii.exe build/ascii.o src/main.c -Lbuild -lrenderer build/asciirc.o clean: rm -rf build/*.o From 2d37c4eca007eb0ec027f68e8887048a6335a25a Mon Sep 17 00:00:00 2001 From: Manoj A Date: Fri, 24 May 2024 18:00:13 +0530 Subject: [PATCH 2/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d9d35e..51bc911 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ![asciitable](https://github.com/ManojTGN/ascii-table/assets/42494649/ab86ba7e-6085-464c-9ff2-c76e6aa661e6) ## Overview -AsciiTable shows octal, hexadecimal, and decimal representations of ascii characters. It supports all 8-bit ASCII characters. But 7-bit ASCII characters are prefered to be processed. +AsciiTable shows octal, hexadecimal, decimal and binary representations of ascii characters. It supports all 8-bit(256) ASCII characters. But 7-bit(128) ASCII characters are prefered to be processed. ![asciitable](https://github.com/ManojTGN/ascii-table/assets/42494649/c140c32a-6315-424a-a4cd-62924970acac) ## Features -- Converts ASCII characters to octal, hexadecimal, and decimal values. +- Converts ASCII characters to octal, hexadecimal, decimal and binary values. - Simple and lightweight command-line interface. - Supports the full range of 256 ASCII characters. From d73179fac1eaea4508e5c066f759d93a6e73eff3 Mon Sep 17 00:00:00 2001 From: Manoj A Date: Fri, 24 May 2024 18:00:57 +0530 Subject: [PATCH 3/5] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 10c2c65..0d067e4 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v3 From a4b75ef6baebe83d62b36d48d525acb86d516d62 Mon Sep 17 00:00:00 2001 From: Manoj A Date: Fri, 24 May 2024 18:03:43 +0530 Subject: [PATCH 4/5] Update makefile --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index 2a2576a..161d440 100644 --- a/makefile +++ b/makefile @@ -9,9 +9,11 @@ _test: _build ./test/test.exe rc: + if [ ! -d build ]; then mkdir build; fi windres ascii.rc -o build/asciirc.o renderer: + if [ ! -d build ]; then mkdir build; fi $(CXX) -shared -o build/renderer.dll src/renderer.cpp -Wno-write-strings _build: clean renderer rc @@ -20,6 +22,7 @@ _build: clean renderer rc $(CC) -o build/ascii.exe build/ascii.o src/main.c -Lbuild -lrenderer build/asciirc.o clean: + if [ ! -d build ]; then mkdir build; fi rm -rf build/*.o rm -rf build/*.exe rm -rf build/*.dll From 3f73e329f048eaea3608fa19a4bb9757b05639ec Mon Sep 17 00:00:00 2001 From: Manoj A Date: Fri, 24 May 2024 18:07:00 +0530 Subject: [PATCH 5/5] Update test.c --- test/test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test.c b/test/test.c index 113cfc9..0034973 100644 --- a/test/test.c +++ b/test/test.c @@ -8,8 +8,9 @@ int main(){ //YEL RESET - assert( strcmp(YEL, "\x1b[33m")== 0 ); - assert( strcmp(RESET,"\x1b[0m" )== 0 ); + assert( strcmp(YEL, "\x1B[38;5;172m")== 0 ); + assert( strcmp(GRAY, "\x1B[38;5;243m")== 0 ); + assert( strcmp(RESET, "\x1b[0m")== 0 ); // isHex() assert( isHex("0x00") == true );