Skip to content

Commit 12b3bb0

Browse files
committed
fix issues
1 parent e8e451b commit 12b3bb0

File tree

4 files changed

+387
-381
lines changed

4 files changed

+387
-381
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
build
1+
build

README.md

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
1-
# ASCII TABLE
2-
3-
## Overview
4-
AsciiTable shows octal, hexadecimal, and decimal representations of ascii characters. It supports all 7-bit ASCII characters.
5-
![Capture](https://github.com/ManojTGN/ascii-table/assets/42494649/bb0fc8f0-6163-4cc9-a1b4-4364950295e2)
6-
7-
## Features
8-
- Converts ASCII characters to octal, hexadecimal, and decimal values.
9-
- Simple and lightweight command-line interface.
10-
- Supports the full range of 256 ASCII characters.
11-
12-
## Installation
13-
### Release
14-
Visit [Releases](https://github.com/ManojTGN/ascii-table/releases) And Download The latest `ascii` Binary from it. then add it to the environment variable.
15-
16-
### Build
17-
```bash
18-
git clone https://github.com/ManojTGN/ascii-table.git
19-
cd ascii-table
20-
make
21-
```
22-
23-
## Usage
24-
```bash
25-
26-
ascii [characters...] [..options]
27-
28-
```
29-
30-
#### Available Options:
31-
`--all` shows all available ascii codes
32-
`--digits` shows all digits ascii codes
33-
`--alphas` shows all alphabets ascii codes
34-
`--specials`shows all special char ascii codes
35-
`--controls`shows all control ascii codes (non printables)
36-
37-
`--octa` shows only octa in output table
38-
`--dec` shows only dec in output table
39-
`--hex` shows only hex in output table
40-
41-
`--asc` shows output table in ascending order
42-
`--desc` shows output table in desending order
43-
44-
`--vt100` register ansi vt100 escape sequence color to the terminal & terminate
45-
46-
#### Input Types:
47-
`0000b` represents 0 in binary (add b at last)
48-
`0d` represents 0 in decimal (add d at last)
49-
`0o` represents 0 in octal (add o at last)
50-
`0x00` represents 0 in hexa (add 0x at first)
51-
52-
#### Examples
53-
```bash
54-
ascii abcd
55-
ascii "manojtgn"
56-
ascii "helloworld"
57-
58-
ascii "make it ascending" --asc
59-
ascii "make it descending" --desc
60-
61-
ascii 0x78
62-
ascii 0x78 69d
63-
ascii 0x78 15c 69d 01001001b
64-
65-
ascii --alphas
66-
ascii --digits --specials
67-
ascii --digits --alphas --specials --controls
68-
ascii --all
69-
70-
ascii "show octal & decimal" --oct --dec
71-
ascii "show only hex" --hex
72-
73-
ascii --vt100
74-
75-
ascii
76-
```
1+
# ASCII TABLE
2+
3+
## Overview
4+
AsciiTable shows octal, hexadecimal, and decimal representations of ascii characters. It supports all 7-bit ASCII characters.
5+
![Capture](https://github.com/ManojTGN/ascii-table/assets/42494649/bb0fc8f0-6163-4cc9-a1b4-4364950295e2)
6+
7+
## Features
8+
- Converts ASCII characters to octal, hexadecimal, and decimal values.
9+
- Simple and lightweight command-line interface.
10+
- Supports the full range of 256 ASCII characters.
11+
12+
## Installation
13+
### Release
14+
Visit [Releases](https://github.com/ManojTGN/ascii-table/releases) And Download The latest `ascii` Binary from it. then add it to the environment variable.
15+
16+
### Build
17+
```bash
18+
git clone https://github.com/ManojTGN/ascii-table.git
19+
cd ascii-table
20+
make
21+
```
22+
23+
## Usage
24+
```bash
25+
26+
ascii [characters...] [..options]
27+
28+
```
29+
30+
#### Available Options:
31+
`--all` shows all available ascii codes
32+
`--digits` shows all digits ascii codes
33+
`--alphas` shows all alphabets ascii codes
34+
`--specials`shows all special char ascii codes
35+
`--controls`shows all control ascii codes (non printables)
36+
37+
`--octa` shows only octa in output table
38+
`--dec` shows only dec in output table
39+
`--hex` shows only hex in output table
40+
41+
`--asc` shows output table in ascending order
42+
`--desc` shows output table in desending order
43+
44+
`--vt100` register ansi vt100 escape sequence color to the terminal & terminate
45+
46+
#### Input Types:
47+
`0000b` represents 0 in binary (add b at last)
48+
`0d` represents 0 in decimal (add d at last)
49+
`0o` represents 0 in octal (add o at last)
50+
`0x00` represents 0 in hexa (add 0x at first)
51+
52+
#### Examples
53+
```bash
54+
ascii abcd
55+
ascii "manojtgn"
56+
ascii "helloworld"
57+
58+
ascii "make it ascending" --asc
59+
ascii "make it descending" --desc
60+
61+
ascii 0x78
62+
ascii 0x78 69d
63+
ascii 0x78 15c 69d 01001001b
64+
65+
ascii --alphas
66+
ascii --digits --specials
67+
ascii --digits --alphas --specials --controls
68+
ascii --all
69+
70+
ascii "show octal & decimal" --oct --dec
71+
ascii "show only hex" --hex
72+
73+
ascii --vt100
74+
75+
ascii
76+
```

makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
CC = gcc
2-
BINS = main
3-
4-
all: $(BINS)
5-
6-
main:
7-
if not exist build mkdir build
8-
$(CC) -o build/ascii.exe src/main.c
1+
CC = gcc
2+
BINS = main
3+
4+
all: $(BINS)
5+
6+
main:
7+
@if [ ! -d "build" ]; then mkdir build; fi
8+
$(CC) -o build/ascii.exe src/main.c

0 commit comments

Comments
 (0)