FBCLEAR(1)

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

πŸ’… FBCLEAR β€” bestie edition ✨

okay so real talk, this is fbclear from the BRL-CAD manual, section 1. she clears frame buffers. she's iconic. let's get into it πŸŽ€


✨ NAME ✨

fbclear β€” clears a frame buffer to a color. that's it. that's the whole vibe check. 🌈


πŸ¦‹ SYNOPSIS πŸ¦‹

fbclear [-c] [-F framebuffer] [-{sS} squaresize] [-{wW} width] [-{nN} height] [gray | r g b]

like… yes she's got a lot of flags. she's highkey versatile. periodt. πŸ’…


πŸ’– DESCRIPTION πŸ’–

so fbclear erases a frame buffer using whatever method is efficient for the device being accessed β€” she's not gonna do extra work for no reason, she's got main character energy but she's also efficient about it, yk? no color arguments? it clears to black. done. πŸ–€

one single gray value (0 to 255) gets written into all three channels. or, if you're feeling fancy, three values (r g b) set each channel independently. ate. πŸ”₯

which frame buffer are we clearing, you ask? bestie, that's chosen by the -F option, or by the FB_FILE environment variable, or otherwise it falls back to the default device for your system (see brlcad(1)). iykyk.

unless -c is given, fbclear leaves any colormap and zoom/pan settings untouched β€” and it'll print a note if a non-linear colormap or a non-unity zoom is in effect. she's polite like that, she tells you when something's up 🫢


πŸŽ€ OPTIONS πŸŽ€

  • -c β€” also reset the colormap to linear, and reset the pan and zoom to their default (centered, un-zoomed) values. basically the full factory reset bestie ✨
  • -F framebuffer β€” use the specified framebuffer device, overriding the FB_FILE environment variable. she listens to you over the environment, queen πŸ‘‘
  • -s squaresize, -S squaresize β€” set both the width and height of the frame buffer to squaresize pixels. square. balanced. symmetrical. we love her 🌸
  • -w width, -W width β€” set the width of the frame buffer to width pixels. just the width. not the height. don't get it twisted πŸ’€
  • -n height, -N height β€” set the height of the frame buffer to height pixels. the other half of the equation, fr fr πŸ¦‹
lowercase and uppercase versions of -s, -w and -n are listed as paired flags in the synopsis β€” they're written exactly as -{sS} squaresize, -{wW} width and -{nN} height, so keep them as-is, bestie πŸ’œ

🌟 EXAMPLES 🌟

Example 1. Reset a framebuffer before compositing

fbclear -c -F /dev/X 64 64 96
pix-fb -F /dev/X scene.pix

okay so what's happening here: open the X11 framebuffer, clear it to a dark blue while resetting any leftover colormap and zoom from a previous session, then display a rendered image on the freshly prepared display. literally a glow-up for your display 😭✨ she said "new session, new me."


πŸ” SEE ALSO πŸ”

brlcad(1), fbcmap(1), fbgamma(1), fbzoom(1), pix-fb(1)

the whole friend group 🫢 go say hi.


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” icons, honestly.


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


πŸ’€ BUG REPORTS πŸ’€

found a bug? a problem? something lowkey cursed? Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. they want to hear from you, bestie, fr fr πŸ™ˆ


and that's the page!! brought to you by BRL-CAD, page FBCLEAR(1) β€” go clear something gorgeous πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from