TOGEOMVIEW(1gv)
π TOGEOMVIEW π
ok so this is the togeomview page from section 1gv of the manual, bestie. it's the little pipe goblin that yeets your commands and your geometry straight into geomview's lap. let's get into it π«Ά
β¨ NAME β¨
togeomview β send commands or OOGL objects to geomview
like. that's the whole job. that's her whole thing. π
πΈ SYNOPSIS πΈ
togeomview [-c] [-g] [pipename [program args ...]]
π¦ DESCRIPTION π¦
ok so picture this: togeomview sends a whole stream of geomview commands, or OOGL-format geometric data, to a cooperating copy of geomview. and if geomview isn't even running?? she just starts it for you. iconic behaviour, no cap. β¨
but bestie, heads up:geomviewhas to be on the$PATHof the user runningtogeomviewfor that little auto-start trick to work. no$PATH, no party. π
Typical usage is literally this:
someprogram | togeomview (to send commands) or
someprogram-generating-OOGL-data | togeomview -g (to send geometry)
so like, a program pipes geometric data into togeomview, and then the data gets displayed by a copy of geomview that's running with the -M option and a name that matches the one you gave to togeomview. matchy matchy. π
Togeomview talks to geomview through a named pipe that lives in the directory /tmp/geomview. if you don't specify a name, the pipe's default name is "OOGL". and when you're sending geometry (that's the -g case, bestie), a geomview object with the same name as the pipe shows up in geomview's object browser. main character entrance, honestly. π
By default, when there's no suitable copy of geomview running, togeomview invokes "geomview" with arguments that specify the appropriate named pipe. but you can specify a different command, like this:
togeomview OOGL gv -wpos 300x300 -c my_startup_script
which communicates through a pipe named OOGL, and (if necessary) invokes the given gv command. π
β οΈ and here's the rule: the pipe name is required if a command is specified. don't skip it, she needs it fr fr.
Once togeomview has created that named pipe, you can just write to it like an ordinary file. for example, you could use:
togeomview pipename < /dev/null
to invoke a listening copy of geomview, and then run a program that simply wrote to /tmp/geomview/pipename. easy. slay. π
π FILES π
/tmp/geomviewβ the directory where all the pipe drama goes down
π BUGS π
ok so the whole pipe-based communications scheme comes with some restrictions. it's giving "we're doing our best." π
- If no copy of geomview is reading from the pipe, or if geomview gets far enough behind, a program writing data to
togeomviewwill be forced to block after sending a few kilobytes. yes, blocked. just sitting there. waiting. π - Because of the buffering in the pipe, the sender may be substantially ahead of the geomview display. she's running ahead of the vibes.
- If geomview exits, the sending program receives a write-on-broken-pipe (
SIGPIPE) signal, which will kill it unless measures are taken to catch or ignore that signal. so like. catch it. or ignore it. or perish. π - Only one copy of geomview can read from a given pipe at a time. if a second copy attempts to read from it, both will probably fail. it's fine to have multiple copies of geomview reading from different pipes though β that's totally chill. πΈ
- Note that
togeomviewwill invoke geomview if no extant copy is listening to the relevant pipe; it can't connect to an existing copy of geomview started by other means. she makes her own friends, she doesn't crash other people's parties. no cap.
π SEE ALSO π
ok that's the whole page, bestie!! π₯° this one's from the Geometry Center, dated 21 May 1993 β vintage icon behaviour, honestly. go pipe something into something. you got this. πβ¨
π¦ where this page comes from
- debian bookworm: geomview 1.9.5-4+b1
- debian trixie: geomview 1.9.5-5
- fedora 43: geomview 1.9.5-33.20190630git1d6759e.fc43 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- fedora 44: geomview 1.9.5-35.20190630git1d6759e.fc44 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- ubuntu jammy: geomview 1.9.5-3build1
- ubuntu noble: geomview 1.9.5-4.1build2
- ubuntu questing: geomview 1.9.5-6
- ubuntu resolute: geomview 1.9.5-6build1
- ubuntu stonking: geomview 1.9.5-6build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms