FBPOINT(1)

πŸ“¦
version 7.44.0 Β· 2 versions
, in nixpkgs unstable

πŸ’… FBPOINT(1) β€” ok bestie, let's talk about fbpoint

So this is the <pink>fbpoint</pink> page from the BRL-CAD manual set, and honestly? It's a little underrated gem. It's the "point at stuff on your framebuffer and find out what's there" tool. Come on, let's get into it 🫢


✨ NAME ✨

fbpoint β€” point at and identify framebuffer coordinates. That's it. That's the whole job. She points, she tells you where you are, she's iconic πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

fbpoint [-F framebuffer] [-s squaresize] [-w width] [-n height]
        [-x[prefix]] [-y[prefix]] [initialx [initialy]]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: fbpoint moves a non-destructive cursor around a framebuffer. Like, nothing gets damaged, nobody gets hurt, she's just vibing in there πŸ’…

As the cursor moves, fbpoint writes the coordinates of the pixel under the cursor β€” plus its red, green, and blue values β€” on standard error. (Yes, stderr. Remember that, it's important later, iykyk.) Then, on exit, she writes the final coordinates on standard output.

Where does she start? Center-screen, unless you hand her the optional initialx and initialy values. Slay, a girl with a starting position 🎯

Now the keys, because this is where it gets fun:

  • h, j, k, l β€” step the cursor one pixel left, down, up, or right respectively.
  • H, J, K, L (or Ctrl+B, Ctrl+N, Ctrl+P, Ctrl+F) β€” step the cursor in the corresponding directions in large increments, specifically one sixteenth of the framebuffer width. Big mood. Main character energy πŸ’€
  • ? β€” prints a short command summary, in case you forgot everything (no judgement).
  • q, Q, or Enter β€” exits the program. Bye bestie πŸ‘‹
Default behaviour check: both the x and y coordinates get written to standard output, which is literally what makes fbpoint useful for interactively grabbing coordinates via command substitution in a shell script. Obsessed with a tool that plays nice with others 🧚

If you only give -x or only -y, then only that coordinate gets written. Simple, clean, one-track-mind.

Oh and! An optional prefix string may be attached to the flag, and it gets prepended to the output coordinate β€” which makes passing the result as an argument to another program super easy. It's giving "I thought of everything" πŸ’–


🌸 OPTIONS 🌸

  • -F framebuffer β€” explicitly specify the framebuffer device to open. Be direct, tell her which one.
  • -s squaresize β€” set both the width and height of the framebuffer to squaresize pixels (default 512). Also -S is an equivalent synonym.
  • -w width β€” set the framebuffer width in pixels (default 512). Also -W is an equivalent synonym.
  • -n height β€” set the framebuffer height in pixels (default 512). Also -N is an equivalent synonym.
  • -x[prefix] β€” write only the x coordinate on exit. If the optional prefix string is given immediately after the flag, it is prepended to the value.
  • -y[prefix] β€” write only the y coordinate on exit. If the optional prefix string is given immediately after the flag, it is prepended to the value.
  • -h β€” print a usage message and exit. Also -? is an equivalent synonym.

πŸ“ EXAMPLES πŸ“

πŸ’œ Example 1. Interactively pick a point and crop a region from an image

pix-fb moss.pix
pix-fb `fbpoint -x-X -y-Y` moss.pix

So what's happening here: display an image on the framebuffer, then use fbpoint to navigate to a point of interest. The -x-X and -y-Y flags prefix the returned coordinates so that command substitution produces -X<x> -Y<y>, which pix-fb(1) reads as the lower-left offset for redisplaying the image. Like, the whole pipeline just works and it's beautiful 😭✨


🌈 SEE ALSO 🌈

brlcad(1), fbgrid(1), fbzoom(1), pix-fb(1)


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” legends, honestly.


This software is Copyright (c) 1986-2026 by the United States Government as represented by U.S. Army Research Laboratory.


πŸ™ˆ BUG REPORTS πŸ™ˆ

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Don't be shy, they want to hear from you fr fr πŸ’Œ


And that's the page!! 🌸 Cute little sign-off: this is FBPOINT(1) from the BRL-CAD manual set, and you can find her sitting pretty in the footer of the collection, right next to the FBPOINT(1) tag πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from