"Fossies" - the Fresh Open Source Software Archive

Member "ansifilter-2.18-x64/src/tcl/README" (30 Jan 2021, 1356 Bytes) of package /windows/misc/ansifilter-2.18-x64.zip:

As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.

    1 make tcl ;# assumes a Tcl dev environment
    3 On Thursday, October 8, 2015 at 4:54:25 PM UTC+2, heinrichmartin wrote on comp.lang.tcl:
    4 > Hi,
    5 > 
    6 > ansifilter is a nice little tool[1], written by André Simon. It removes or converts ansi escape sequences and has various output formats. I wanted to wrap the C++ code in a Tcl package to provide channel transformers[2].
    7 > 
    8 > I started with "Hello World as a C extension"[3] and successfully compiled and used that code with Tcl8.6 and g++. The current status is not even close to a generic package, but my use case was only "ansifilter -fL" - so further effort seems unlikely at the moment: time to share it :-)
    9 > 
   10 > The .src.rpm[4] contains the ansifilter 1.12 source and a patch that adds the Tcl-code and make-target. You can use a rpmbuild environment "rpmbuild -ba SPECS/ansifilter.spec" or just extract, patch and "make tcl".
   11 > 
   12 > src/tcl/ansifilter.c is really just a start though. At least, it seems not to leak memory (converted random numbers to LaTeX code for 30min with not change in ps -o rss,vsz).
   13 > 
   14 > Comments are welcome!
   15 > Martin
   16 > 
   17 > [1] http://andre-simon.de/zip/download.php#ansifilter
   18 > [2] http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/virtchannel_core/transformcore.html
   19 > [3] http://wiki.tcl.tk/11153
   20 > [4] https://app.box.com/s/yxyu45ha19m6bzuyt4yk869675x3nq5v