From 0a3d4c2e7e018e500bcb1d467901584441605f43 Mon Sep 17 00:00:00 2001 From: yvs Date: Fri, 8 May 2026 17:52:04 +0400 Subject: [PATCH] split: support more interactive keys Port the split-mode key handling idea from the mtr085 fork and adapt it to upstream mtr actions. This lets split mode use the same pause, resume, display, compact, MPLS, DNS, and scroll keys that the select loop already supports. Ported-from: yvs2014/mtr085@097bda215b79cac11b54a8a7baead218c1868b6c Ported-from: yvs2014/mtr085@c69b13656f921c00c85581cac23f5f2b438ca186 Original-author: yvs --- ui/split.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ui/split.c b/ui/split.c index 15fd3cf..34d2967 100644 --- a/ui/split.c +++ b/ui/split.c @@ -200,6 +200,22 @@ int split_keyaction( return ActionQuit; if (tolower(c) == 'r') return ActionReset; + if (tolower(c) == 'p') + return ActionPause; + if (c == ' ') + return ActionResume; + if (tolower(c) == 'd') + return ActionDisplay; + if (tolower(c) == 'c') + return ActionCompact; + if (tolower(c) == 'e') + return ActionMPLS; + if (tolower(c) == 'n') + return ActionDNS; + if (c == '+') + return ActionScrollDown; + if (c == '-') + return ActionScrollUp; return 0; } -- 2.47.3