This commit is contained in:
decoded
2022-02-28 17:54:50 -06:00
parent 97dd7e5353
commit 93b3af08ee
3 changed files with 2 additions and 164 deletions

View File

@@ -40,26 +40,16 @@ dr1p4ns1 v2.3 - cp437 ansi parsing - this logic will be rolled into bots like kr
![screenshots](screenshots/ss2.jpg)
## summary
## prerequisites
- `apt install python3`
- `python3`
## usage - main file
```
running 'python3 dr1p4ns1.py' will batch process all the ans extension files in the ansiscii directory
running 'python3 dr1p4ns1.py /path/to/ansi/files' will load all the .ans files in that directory
```
## test data and debugging
- running `python3 test.py` will present table data and create an ansi file for testing
- change the line below from False to True at the bottom of `dr1p4ns1.py` for some parse debugging
```d=dr1p4ns1(ansifile=_FILE_,width=80,debug=False)```
## files overview
```
[dr1p4ns1.py](dr1p4ns1.py) - main file, reads 'work.ans' and attempts to parse and display
dr1p4ns1.py - main file, reads 'work.ans' and attempts to parse and display
ansiscii/ - storing the ansi and ascii graphics in this subdirectory while testing
test.py - used to generate test ansi file and presents table data
test.ans - thie file is created after running test.py to contain controlled test data
```
## state
```
while working on the reencoding portions its operating as a viewer, pumper, basic file operations.
```
## notes
```