How aristocratos/btop4win works
btop4win is a Windows terminal system monitor. Its main workflow gathers system and process data, renders resource panels, and responds to keyboard and mouse input; users can also inspect and manage processes and services and configure themes, presets, and display options. The graph includes the documented monitoring and interaction capabilities, plus shared data and terminal utilities. Some feature modules are represented by their known enclosing source files; unsampled implementation details and links are omitted rather than inferred.
Main entry points: btop.cpp Application loop · btop_collect.cpp System data collection · btop_draw.cpp Resource panel drawing · btop_input.cpp Keyboard and mouse input
Components 16
Monitor runtime
- Application loop
src/btop.cpp - Collection and render runner
src/btop.cpp - System data collection
src/btop_collect.cpp - Processes and services
src/btop_collect.cpp
Input and settings
- Configuration
src/btop_config.cpp - Keyboard and mouse input
src/btop_input.cpp - Menus and options
src/btop_menu.cpp
Terminal presentation
- Resource panel drawing
src/btop_draw.cpp - Theme loading
src/btop_theme.cpp - Theme files
themes
Shared utilities
- Shared monitor state
src/btop_shared.hpp - Windows and text utilities
src/btop_tools.cpp - Robin Hood hash map
include/robin_hood.h - Unicode width tables
include/widechar_width.hpp
Other components
- Monitor user
- Windows terminal
Connections 20
- Monitor user → Application loop: starts and uses
README.md - Application loop → Windows terminal: renders interface
src/btop.cpp - Application loop → Keyboard and mouse input: polls input
src/btop.cpp - Application loop → Menus and options: dispatches input
src/btop.cpp - Application loop → Collection and render runner: starts and stops
src/btop.cpp - Collection and render runner → System data collection: collects stats
src/btop.cpp - Collection and render runner → Resource panel drawing: draws panels
src/btop.cpp - System data collection → Processes and services: gathers process data
src/btop_collect.cpp - Monitor user → Processes and services: selects and manages
README.md - Keyboard and mouse input → Configuration: changes options
src/btop_input.cpp - Keyboard and mouse input → Processes and services: controls selection
src/btop_input.cpp - Menus and options → Configuration: sets options
src/btop_menu.cpp - Configuration → Theme loading: selects theme
- Theme loading → Theme files: loads theme data
- Resource panel drawing → Theme loading: uses colors
- Resource panel drawing → Unicode width tables: measures Unicode
- System data collection → Shared monitor state: uses shared types
- Resource panel drawing → Shared monitor state: uses shared types
- Windows and text utilities → Windows terminal: configures terminal
- System data collection → Robin Hood hash map: uses containers