Minimal Mihomo TUI that just works on any CLI environments.
Save the pyhomo.py, it's that easy.
./pyhomo.py -h
usage: pyhomo.py [-h] [--host HOST] [--port PORT] [--secret SECRET] [--timeout TIMEOUT] [--group GROUP] [--set SET_TARGET]
[--mode MODE] [--print-mode] [--connections] [--connections-limit CONNECTIONS_LIMIT] [--cols COLS]
[--col-width COL_WIDTH]
Minimal mihomo TUI
options:
-h, --help show this help message and exit
--host HOST
--port PORT
--secret SECRET
--timeout TIMEOUT
--group GROUP Open this group directly in interactive mode
--set SET_TARGET One-shot: switch GROUP to TARGET and exit (requires --group)
--mode MODE One-shot: set running mode to Direct|Rule|Global and exit
--print-mode One-shot: print current running mode and exit
--connections One-shot: show current connections and exit
--connections-limit CONNECTIONS_LIMIT
Max connections to print in --connections mode
--cols COLS Preferred number of columns (auto-capped to terminal width, default 2)
--col-width COL_WIDTH
Cell width in characters (default 36)