LEFTY(1)

πŸ’– LEFTY(1) β€” the girlies' guide to a Programmable Graphics Editor πŸ’–

okay so bestie, welcome to the General Commands Manual glow-up of lefty. this is the moment. let's go. πŸ¦‹


✨ NAME ✨

lefty β€” A Programmable Graphics Editor. yes that's the whole name. iconic, concise, ate. πŸ’…


🌸 SYNOPSIS 🌸

lefty [ options ] [ file ]

that's it. that's the vibe. options optional, file optional, slay mandatory. ✨


πŸŽ€ DESCRIPTION πŸŽ€

so lefty is a two-view graphics editor for technical pictures, and the way it does it is genuinely main character energy. πŸ’œ

here's the thing: this editor has no hardwired knowledge about specific picture layouts or editing operations. like, zero. none. it's not out here assuming things. instead, every single picture is described by a program β€” and that program contains:

  • functions to draw the picture 🎨
  • functions to perform editing operations that are appropriate for that specific picture βœ‚οΈ

and it doesn't stop there, no ma'am. primitive user actions β€” like mouse and keyboard events β€” are also bound to functions in this program. so the program is running the whole show. 🫢

besides the graphical view of the picture itself, the editor presents a textual view of the program that describes the picture. two views. two screens. one legend. πŸ‘‘

so why does this matter? programmability + the two-view interface allow the editor to handle a variety of pictures, but they're particularly useful for pictures used in technical contexts, e.g. graphs and trees. πŸ“ŠπŸŒ³

also β€” and this is lowkey the coolest part β€” lefty can communicate with other processes. this feature allows it to:

  • use existing tools to compute specific picture layouts πŸ”§
  • let external processes use the editor as a front end to display their data structures graphically 🌈

it's giving collaborative. it's giving modular. it's giving yes and. πŸ’€βœ¨


πŸ’« USAGE πŸ’«

okay so housekeeping, bestie. the file name is optional. it may be -, which means reading from standard input. classic. πŸ“₯

lefty uses two environment variables: LEFTYPATH and LEFTYOPTIONS.

  • LEFTYPATH β€” a colon separated list of directories. when lefty tries to open a file, it searches that path for the file. when lefty tries to start up another process, it searches LEFTYPATH first, then the standard PATH variable. πŸ—ΊοΈ
  • LEFTYOPTIONS β€” can be used to set specific options. ✨
⚠️ important: options specified on the command line override options set through this variable. command line stays winning. πŸ’…

🌟 OPTIONS 🌟

one bullet per option, no skips, we respect the whole menu. πŸ“

  • -x β€” instructs the editor to exit after processing file. bye bestie, you did great. πŸ‘‹
  • -e <expression> β€” <expression> is parsed and executed. go off. πŸ”₯
  • -el <num> β€” set the error reporting level. the default value is 0.
    • 0 β€” never prints any messages. 🀐
    • 1 β€” prints severe errors, such as trying to return from a non function. 🚨
    • 2 β€” the most useful: it reports function calls that cannot be executed, either because there is no function, or because of argument mismatches. πŸ‘‘
    • 3 β€” also warns about bad variable names. 🏷️
    • 4,5 β€” warn about expressions that do not return a value. πŸ«₯
    • > only level 1 messages are real errors. the rest arise from legal lefty statements, but may be caused by some logic errors. so like… valid syntax, questionable choices. πŸ™ˆ
  • -sd <num> β€” specifies how much of the stack to show, when an error message is to be printed. the default value is 2.
    • 0 β€” no part of the stack is shown.
    • 1 β€” only the top stack frame is printed.
    • 2 β€” the full stack is printed. the whole saga. πŸ“š
  • -sb <num> β€” specifies how much of each function in the stack to show, when an error message is to be printed. the default value is 2.
    • 0 β€” no part of the function is shown.
    • 1 β€” only the line around the error is printed.
    • 2 β€” the full function body is printed. spill the whole thing. πŸ—£οΈ
  • -df <string> β€” sets the default font. this font is used whenever a requested font cannot be found. the string must be a legal X font. if string is '', lefty will draw small boxes instead of text. πŸ“¦ (boxes. as text. a moment of silence.)
  • -ps <file> β€” specifies a default file name for postscript files. this name is used when no name is specified in the createwidget call. the default file name is out.ps. πŸ–¨οΈ
  • -V β€” prints the version. 🏷️
  • -? β€” prints the usage and exits. πŸ†˜

πŸ‘€ SEE ALSO πŸ‘€

  • lefty user guide. πŸ“–

iykyk. go read it, bestie, it's the director's cut. 🎬


and that's the whole page, fr fr β€” from the General Commands Manual, no cap, and yes the title line at the bottom just says LEFTY(1) because that's how manpages do. same energy top and bottom. periodt. πŸ’…βœ¨πŸ¦‹πŸŽ€