Change name + add install rule

This commit is contained in:
xamidev
2024-06-05 17:55:53 +02:00
parent 80922112f5
commit b5759f2311
4 changed files with 11 additions and 7 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
minihex
uhex
*.html
*.o
*.bin

View File

@@ -1,6 +1,6 @@
# minihex
# μhex
![minihex showcase](https://i.ibb.co/w6SkKQs/minihex.png)
![uhex showcase](https://i.ibb.co/w6SkKQs/minihex.png)
A minimalist, single-file hexadecimal editor written using around 100 lines of C with no dependencies (except the standard library). The program tries to be as simple as possible.
Other features might be added in the future. Boredom made me code it in one day.
@@ -9,7 +9,8 @@ Other features might be added in the future. Boredom made me code it in one day.
```
make
./minihex <file>
make install
uhex <file>
```
To get help with the commands, do not provide any filename. File editing is done one byte at a time. Colors are present so that you can see things better. You can also use minihex only to see files as hex. Please take notice that there is no option to safe modified buffer when quitting with the `q` command.

View File

@@ -3,7 +3,10 @@ CFLAGS=-g -Wall -Wextra -o
CFILES=hex.c
all:
$(CC) $(CFILES) $(CFLAGS) minihex
$(CC) $(CFILES) $(CFLAGS) uhex
install: all
sudo cp uhex /usr/local/bin
clean:
rm minihex
rm uhex

View File

@@ -1,3 +1,3 @@
ÿÿÿÿo, from a text file.
This is a public service announcement
This is a public service announcemeÿt
brought to you inCpart by Slim Shady lol