Modern TUI with Enhanced Protocol Hierarchy Interface
Major Features: - Complete modern TUI interface with three focused views - Enhanced multi-column layout: Source | Proto | Destination | Extended | Frame Type | Metrics - Simplified navigation with 1/2/3 hotkeys instead of F1/F2/F3 - Protocol hierarchy: Transport (TCP/UDP) → Extended (CH10/PTP) → Frame Types - Classic TUI preserved with --classic flag Views Implemented: 1. Flow Analysis View: Enhanced multi-column flow overview with protocol detection 2. Packet Decoder View: Three-panel deep inspection (Flows | Frames | Fields) 3. Statistical Analysis View: Four analysis modes with timing and quality metrics Technical Improvements: - Left-aligned text columns with IP:port precision - Transport protocol separation from extended protocols - Frame type identification (CH10-Data, TMATS, PTP Sync) - Cross-view communication with persistent flow selection - Context-sensitive help and status bars - Comprehensive error handling with console fallback
This commit is contained in:
@@ -10,6 +10,7 @@ import curses
|
||||
|
||||
from .analysis import EthernetAnalyzer
|
||||
from .tui import TUIInterface
|
||||
from .tui.modern_interface import ModernTUIInterface
|
||||
from .utils import PCAPLoader, LiveCapture
|
||||
|
||||
|
||||
@@ -28,6 +29,8 @@ def main():
|
||||
help='Generate comprehensive outlier report and exit (no TUI)')
|
||||
parser.add_argument('--gui', action='store_true',
|
||||
help='Launch GUI mode (requires PySide6)')
|
||||
parser.add_argument('--classic', action='store_true',
|
||||
help='Use classic TUI interface')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@@ -98,8 +101,11 @@ def main():
|
||||
generate_outlier_report(analyzer, args.outlier_threshold)
|
||||
return
|
||||
|
||||
# TUI mode
|
||||
tui = TUIInterface(analyzer)
|
||||
# TUI mode - choose between classic and modern interface
|
||||
if args.classic:
|
||||
tui = TUIInterface(analyzer)
|
||||
else:
|
||||
tui = ModernTUIInterface(analyzer)
|
||||
|
||||
if args.live:
|
||||
# Start live capture
|
||||
|
||||
Reference in New Issue
Block a user