Skip to content

feat(curses): add report snapshot on exit#643

Merged
rewolff merged 3 commits into
traviscross:masterfrom
Komzpa:darafei/report-on-exit
May 25, 2026
Merged

feat(curses): add report snapshot on exit#643
rewolff merged 3 commits into
traviscross:masterfrom
Komzpa:darafei/report-on-exit

Conversation

@Komzpa

@Komzpa Komzpa commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add --report-on-exit for curses mode so users can keep a final report snapshot in terminal scrollback after quitting
  • document and expose the option in --help, the man page, and bash completion
  • add cmdparse coverage that keeps the option advertised

This refreshes the existing Komzpa/darafei/report-on-exit branch on top of current origin/master and keeps the original author on the commit.

Fixes #323.

Tests

  • git diff --check HEAD~1..HEAD
  • ./bootstrap.sh && ./configure --without-gtk --without-jansson && make -j "$(nproc)"
  • sudo python3 ./test/cmdparse.py
  • timeout 20 script -q -c 'env TERM=xterm ./mtr --curses --report-on-exit --report-cycles 1 --no-dns 127.0.0.1' /tmp/mtr-report-on-exit.out and verified HOST: remains after curses exits

@Komzpa Komzpa force-pushed the darafei/report-on-exit branch from 6b32b53 to 977b46c Compare May 25, 2026 11:45
@rewolff rewolff merged commit 977b46c into traviscross:master May 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't clean screen after quit

2 participants