MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _draw_page_frame

Method _draw_page_frame

display.py:793–805  ·  view source on GitHub ↗

Draw standard page frame: border, title, divider, footer.

(self, draw, title, hint="K1:Home K2:Flip K3:Next K4:Rst")

Source from the content-addressed store, hash-verified

791 return "WiFi: Disconnected"
792
793 except Exception as e:
794 logger.error(f"Error getting WiFi status text: {e}")
795 return "WiFi: Unknown"
796
797 def is_manual_mode(self):
798 """Check if the ragnarorch is in manual mode."""
799 return self.shared_data.manual_mode
800
801 def is_interface_connected(self, interface):
802 """Check if any device is connected to the specified interface."""
803 try:
804 result = subprocess.Popen(['ip', 'neigh', 'show', 'dev', interface], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
805 output, error = result.communicate()
806 if result.returncode != 0:
807 logger.error(f"Error executing 'ip neigh show dev {interface}': {error}")
808 return False

Callers 8

_render_netdiag_pageMethod · 0.95
_render_network_pageMethod · 0.95
_render_vuln_pageMethod · 0.95
_render_advanced_pageMethod · 0.95
_render_traffic_pageMethod · 0.95

Calls 1

lineMethod · 0.45

Tested by

no test coverage detected