lefty
Deprecated programmable two-view graphics editor from Graphviz
TLDR
This program is deprecated. Graphviz still ships it.Open a Lefty program
$ lefty [path/to/file.lefty]
Read the program from standard input$ lefty -
Evaluate an expression$ lefty -e '[expression]'
Exit after loading the file$ lefty -x [path/to/file.lefty]
Set the error level (0 through 5)$ lefty -el [2] [path/to/file.lefty]
Show help$ lefty -?
Show the version$ lefty -V
SYNOPSIS
lefty [options] [file]
DESCRIPTION
lefty is a two-view graphics editor for technical pictures, shipped with Graphviz. The picture is a program: functions draw it and functions edit it. Mouse and keyboard events are bound to those functions. Beside the drawing, the editor shows the program text.The file argument is optional. - reads the program from standard input.Two environment variables apply. Put them in a context that keeps the underscores:
$ LEFTYPATH
A colon-separated list of directories. Lefty searches that path when it opens a file, and it searches that path before PATH when it starts another process.$ LEFTYOPTIONS
Default options. Options on the command line override them.
PARAMETERS
-x
Exit after processing the file.-e expression
Parse and run one expression.-el num
Error reporting level. The default is 0, which prints nothing. 1 prints severe errors (the only level the manual calls a real error). 2 reports function calls that cannot run. 3 also warns about bad variable names. 4 and 5 warn about expressions that return no value.-sd num
How much of the stack to show on an error. The default is 2. 0 shows none, 1 shows the top frame, 2 shows the full stack.-sb num
How much of each function to show. The default is 2.-df string
Default X font. An empty string draws boxes instead of text.-ps file
Default PostScript output name. The default is out.ps.-V
Print the version and exit.-?
Print usage and exit.
INSTALL
sudo apt install graphviz
sudo dnf install graphviz
sudo pacman -S graphviz
sudo zypper install graphviz
brew install graphviz
nix profile install nixpkgs#graphviz
CAVEATS
Graphviz marks lefty as deprecated. New pictures should be drawn with dot and the other layout programs.
HISTORY
Lefty predates the current Graphviz layout tools as a programmable editor that could talk to external layout processes. The binary remains in the Graphviz package.
