LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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]
copy
Read the program from standard input
$ lefty -
copy
Evaluate an expression
$ lefty -e '[expression]'
copy
Exit after loading the file
$ lefty -x [path/to/file.lefty]
copy
Set the error level (0 through 5)
$ lefty -el [2] [path/to/file.lefty]
copy
Show help
$ lefty -?
copy
Show the version
$ lefty -V
copy

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
copy
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
copy
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
copy
sudo dnf install graphviz
copy
sudo pacman -S graphviz
copy
sudo zypper install graphviz
copy
brew install graphviz
copy
nix profile install nixpkgs#graphviz
copy

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.

SEE ALSO

dot(1), neato(1), twopi(1), circo(1), graphviz(7)

RESOURCES

Copied to clipboard
Kai