Registry / other / framebuffer

framebuffer

JSON →
library0.3.1rscratesunverified

Basic framebuffer abstraction. Handles the necessary ioctls and mmaps the framebuffer device.

# Cargo.toml [dependencies] framebuffer = "0.3.1"
INSTALL
IMPORT
SIG · FRAMEBUFFER
F
framebuffer
otherrustv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Framebuffer
use framebuffer::Framebuffer;

Opens a framebuffer device and prints its resolution.

use framebuffer::Framebuffer; fn main() -> Result<(), Box<dyn std::error::Error>> { let fb = Framebuffer::new("/dev/fb0")?; println!("Resolution: {}x{}", fb.var_screen_info.xres, fb.var_screen_info.yres); Ok(()) }
Debug
Known issues
gotchaRequires root or appropriate permissions to access /dev/fb0
fix
Run with sudo or add user to video group
affects: >=0.3.0
Upgrade
Version history
0.3.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
framebuffer — cargo add framebuffer · libregistry