- System protection script with custom enhancements and TUI interface - Browser tab limiting and application-specific monitoring - AI behavior learning and predictive analysis - Terminal-based configuration interface - Multi-distro installation support
24 lines
812 B
Bash
Executable File
24 lines
812 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Simple TUI test script
|
|
echo "Testing PC Monitor TUI components..."
|
|
|
|
# Source the TUI functions
|
|
source pc-monitor-tui.sh
|
|
|
|
echo "✓ TUI script loaded successfully"
|
|
|
|
# Test configuration loading
|
|
echo "Testing configuration loading..."
|
|
load_config
|
|
echo "✓ Configuration loaded - CPU_THRESHOLD: $CPU_THRESHOLD"
|
|
|
|
# Test if functions exist
|
|
if declare -f load_config >/dev/null; then echo "✓ load_config function exists"; fi
|
|
if declare -f save_config >/dev/null; then echo "✓ save_config function exists"; fi
|
|
if declare -f get_service_status >/dev/null; then echo "✓ get_service_status function exists"; fi
|
|
if declare -f print_header >/dev/null; then echo "✓ print_header function exists"; fi
|
|
|
|
echo
|
|
echo "TUI test completed successfully!"
|
|
echo "Run './pc-monitor-tui.sh' to start the interface" |