Giter Club home page Giter Club logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 17, 2024

Original comment by luser.droog on 28 Oct 2013 at 9:19

  • Changed title: itp does not accept '-DDEVICE=XXX' option and '-o Filename%d' option to render output to named file(s) in a standard interchange format.

from xpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 17, 2024
we could use getlong-like options (see 
http://www.gnu.org/software/libc/manual/html_node/Getopt-Long-Option-Example.htm
l#Getopt-Long-Option-Example)

so the use of itp would be :

itp [options] -o foo.pgm foo.ps

with options :

-h or --help
-v or --version
-d the_device or --device the device

we can add more options in that issue

Original comment by [email protected] on 29 Oct 2013 at 5:43

from xpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 17, 2024
The short-form -d should be for definitions, so it's not actually any
shorter. To specify a device, it's

 -dDEVICE=???

Then the initgraphics operator will look for that definition to open the
device.

Original comment by luser.droog on 29 Oct 2013 at 5:58

from xpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 17, 2024
The above options are not yet available, but as of revision 8929337c8597 
(http://code.google.com/p/xpost/source/detail?r=8929337c859763bce5825d581d39808e
4e5ca48e), you can get a pgm file of the graphics output by defining 
/OutputFileName. Eg.

  /OutputFileName (out.pgm)
  loadgraphics
  0 0 moveto
  50 50 lineto
  0 setlinewidth %currently only supports zero-width lines
  stroke
  showpage

Be sure to make your terminal really big, because it's a 50x50 text dump of the 
image.

Original comment by luser.droog on 10 Nov 2013 at 5:17

from xpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 17, 2024
Whoops! Jumped tracks there. You'll see the text dump if you DON'T specify a 
file as shown. If you specify a file, it writes to the file and does not print 
the text dump to the screen.

Original comment by luser.droog on 10 Nov 2013 at 5:18

from xpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 17, 2024
So. The options are implemented (thanks Vincent). But the graphics code doesn't 
make use of it. The main function needs to make definitions for the graphics 
code to find (or not, for default behavior).

Original comment by luser.droog on 2 Dec 2013 at 11:35

  • Changed state: Started

from xpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 17, 2024
I've connected the device option '-d' to the code that instantiates the device. 
Need to deal with the filename now.

Original comment by luser.droog on 4 Jan 2014 at 11:57

from xpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 17, 2024
Using the filename is implemented now. But the background is black instead of 
white.

Original comment by luser.droog on 18 Jan 2014 at 12:25

from xpost.

luser-dr00g avatar luser-dr00g commented on May 17, 2024

This is all fixed for a while now. Closing.

from xpost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.