skip to navigation
skip to content

PyDRCS 0.1.6

Make DRCS glyphs for DEC VT-series from image files


via github

$ git clone pydrcs
$ cd pydrcs
$ python install

or via pip

$ pip install PyDRCS


Command line tool:

$ drcsconv [options] filename


$ 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 version

Code Example

from drcs import DrcsWriter
writer = DrcsWriter()
File Type Py Version Uploaded on Size
PyDRCS-0.1.6-py2.6.egg (md5) Python Egg 2.6 2014-02-04 3MB
PyDRCS-0.1.6-py2.7.egg (md5) Python Egg 2.7 2014-02-04 3MB
PyDRCS-0.1.6.tar.gz (md5) Source 2014-02-04 2MB