Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Make DRCS(Soft Character Set) glyphs for some terminals(DEC VT-series, RLogin, tanasinn, mlterm) from image files
Python VimL
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
drcs
example
COPYING
LICENSE.gnu-unifont.txt
MANIFEST.in
Makefile
README.rst
TODO
setup.py

README.rst

PyDRCS

Install

via github

$ git clone https://github.com/saitoha/PyDRCS.git pydrcs
$ cd pydrcs
$ python setup.py install

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

Code Example

from drcs import DrcsWriter
writer = DrcsWriter()
writer.draw('test.png')

Dependency

Reference

Something went wrong with that request. Please try again.