Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saitoha/pydrcs
Make DRCS(Soft Character Set) glyphs for some terminals(DEC VT-series, RLogin, tanasinn, mlterm) from image files
https://github.com/saitoha/pydrcs
Last synced: 3 months ago
JSON representation
Make DRCS(Soft Character Set) glyphs for some terminals(DEC VT-series, RLogin, tanasinn, mlterm) from image files
- Host: GitHub
- URL: https://github.com/saitoha/pydrcs
- Owner: saitoha
- License: gpl-3.0
- Created: 2013-01-06T08:36:21.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-16T14:46:28.000Z (over 10 years ago)
- Last Synced: 2024-10-10T09:34:53.538Z (3 months ago)
- Language: Python
- Size: 3.34 MB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: COPYING
Awesome Lists containing this project
README
PyDRCS
=======Install
-------via github ::
$ git clone https://github.com/saitoha/PyDRCS.git pydrcs
$ cd pydrcs
$ python setup.py installor via pip ::
$ pip install PyDRCS
Usage
-----Command line tool::
$ drcsconv [options] filename
or ::
$ cat filename | drcsconv [options]
* Options::
-h, --help show this help message and exit
-8, --8bit-mode Generate a DRCS image for 8bit terminal or printer
-7, --7bit-mode Generate a DRCS image for 7bit terminal or printer
-u, --unicode Use drcsterm's DRCS-unicode mapping
-!, --negate Negate image
-c COLUMNS, --columns=COLUMNS Image width in cell size (default=62, max=62)
-r ROWS, --rows=ROWS Image height in cell size
-t, --text Interpret input stream as a text run
-f FONT, --font=FONT Specifies the absolute path of font file if -t option is set (default: GNU unifont)
-n, --ncolor=NCOLOR Specify number of color
-d, --definition-only Emit only escape sequences. don't output printable characters
-s STARTOFFSET, --start-offset=STARTOFFSET Start offset for DSCS allocation
--version show versionCode Example
------------::
from drcs import DrcsWriter
writer = DrcsWriter()
writer.draw('test.png')Dependency
----------
- Python Imaging Library (PIL)
http://www.pythonware.com/products/pil/- wcwidth.py
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/dependencies/cassandra/pylib/cqlshlib/wcwidth.py
(Licensed under Apache License 2.0)- GNU Unifont Glyphs
http://unifoundry.com/unifont.htmlReference
---------
- VT320 Soft Character Sets
http://vt100.net/dec/vt320/soft_characters- DECDLD
http://vt100.net/docs/vt510-rm/DECDLD