You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce a new command-line option '--hyperlink' to add terminal
hyperlinks (using OSC 8 escape sequences) from system call names
in the trace output to their corresponding Linux manual pages on
man7.org. This improves the diagnostic and educational usability of
strace outputs in modern terminals supporting OSC 8.
* NEWS: Mention this change.
* doc/strace.1.in: Document --hyperlink option.
* src/color.h (hyperlink_is_enabled): Declare.
* src/print_fields.c (OSC8_BEGIN, OSC8_END, STRACE_PRINT_SYSCALL):
New macros.
(hyperlink_is_enabled): Define.
(tprints_arg_begin): Use STRACE_PRINT_SYSCALL.
* src/strace.c (usage): Document --hyperlink option.
(init) <GETOPT_HYPERLINK>: New enum constant.
<longopts>: Add "hyperlink" option.
Handle GETOPT_HYPERLINK.
* tests/Makefile.am (MISC_TESTS): Add strace--hyperlink.test.
* tests/strace--hyperlink.test: New test.
Assisted-by: Antigravity:gemini-3.5-flash (commit log)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
0 commit comments