Python Scripts for evaluation & diagnosing : nettop.py & pmap.py
kitty terminal detached window for nettop.py : #!/bin/bash kitty -o font_size=11 -o initial_window_width=65c -o initial_window_height=26c --directory /home/c0ntrol/apps/psutil_scripts python3 nettop.py --detach nettop.py full code review: #!/usr/bin/env python3 # nettop.py # bryce_polymorph@proton.me $ import sys import time try: import curses except ImportError: sys.exit('platform not supported') import psutil from psutil._common import bytes2human lineno = 0 win = curses.initscr() def printl(line, highlight=False): """A thin wrapper around curses's addstr().""" global lineno try: if highlight: line += " " * (win.getmaxyx()[1] - len(line)) win.addstr(lineno, 0, line, curses.A_REVERSE) ...