GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Terminal tab progress reporting using `OSC 9;4;` ANSI sequence · Issue #13072 · pytest-dev/pytest

Terminal tab progress reporting using OSC 9;4; ANSI sequence  #13072

New issue
Copy link
New issue
Copy link
Closed
#13728
Closed
Terminal tab progress reporting using OSC 9;4; ANSI sequence #13072
#13728
Copy link
Labels
good first issueeasy issue that is friendly to new contributortopic: reportingrelated to terminal output and user-facing messages and errorstype: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

Description

@bluetech
bluetech
opened on Dec 17, 2024
Issue body actions

What's the problem this feature will solve?

I've learned about a new feature that some terminal emulators are starting to add, which shows progress of a process on the terminal tab. I've learned about it from here. Screenshot of how it will look in Gnome (Linux) from here. Seems like a good fit for pytest, allowing a user start a pytest run, do something in another tab and see at a glance the pytest progress.

image

Describe the solution you'd like

The sequence is documented here.

It should be implemented in the terminal plugin, in TerminalReporter, probably in pytest_runtest_logreport.

My only concern is that it's a global effect on the terminal tab, which pytest doesn't have until now as far as I remember. But it's probably fine and if someone complains we can make it optional.

Reacted by Bruno Oliveira, Suraj and Sebastian Kreft

Activity

  1. bluetech
    added
    type: proposalproposal for a new feature, often to gather opinions or design the API around the new feature
    topic: reportingrelated to terminal output and user-facing messages and errors
    good first issueeasy issue that is friendly to new contributor
    on Dec 17, 2024
  2. marcelotrevisani commented on Dec 20, 2024

    @marcelotrevisani
    marcelotrevisani
    on Dec 20, 2024
    Contributor
    More actions

    I think that is nice, but shouldn't it start as plugin first? Just to validate it and polish the idea better? 😃

  3. The-Compiler commented on Dec 20, 2024

    @The-Compiler
    The-Compiler
    on Dec 20, 2024
    Member
    More actions

    Not sure if it's worth the trouble — the TerminalReporter already has access to all the information needed, the output might need coordination with existing terminal output, and we also have all the logic to calculate the progress available there as well.

  4. The-Compiler commented on Dec 20, 2024

    @The-Compiler
    The-Compiler
    on Dec 20, 2024
    Member
    More actions

    Oh, also note that Linux support at best seems to be spotty for this, with some speaking out against it:

    • Add support for OSC 9;4 for progress reporting kovidgoyal/kitty#3679
    • Support for OSC 9;4 for progress reporting alacritty/alacritty#5201

    From what I understand, the only terminal emulators supporting this are Ptyxis and Gnome VTE (though the latter is probably used by various frontends, not sure which ones of those actually display it then).

    Apparently OSC 9 is also used for notifcations commonly, causing notification spam for terminals which support that:

    • #1870 - osc: 9: ignore ConEmu/Windows Terminal sequences - dnkl/foot - Codeberg.org
    • OSC 9;4 for progress reporting conflicts with OSC 9 notifications kovidgoyal/kitty#8011
  5. annatasio
    added 2 commits that reference this issue on Apr 25, 2025

    Fix pytest-dev#13072 Terminal tab process reporting issue

    This issue will close once commit 31489b7 is merged into the 'main' branch.
    31489b7

    Added pytest-dev#13072 changelog file and name to AUTHORS

    This issue will close once commit 96b871f is merged into the 'main' branch.
    96b871f
  6. bluetech
    added a commit that references this issue on Sep 14, 2025

    terminal: notify terminal emulator about test session progress

    This issue will close once commit c99e5ed is merged into the 'main' branch.
    c99e5ed
  7. bluetech commented on Sep 14, 2025

    @bluetech
    bluetech
    on Sep 14, 2025
    MemberAuthor
    More actions

    @The-Compiler From my testing it's supported by Kitty now (tested). This issue also indicates support in Windows Terminal (untested). And ConEmu originated the sequence so presumably supports it.

    I need to check about the desktop notification issue. It was fixed in foot and ghostty, I need to check on macos.

  8. The-Compiler commented on Sep 15, 2025

    @The-Compiler
    The-Compiler
    on Sep 15, 2025
    Member
    More actions

    Oh indeed, implemented in kitty in kovidgoyal/kitty@9b9b313 apparently!

  9. bluetech commented on Sep 16, 2025

    @bluetech
    bluetech
    on Sep 16, 2025
    MemberAuthor
    More actions

    I tested on the default macOS terminal and iTerm2 and both just ignored it, no desktop notifications, so AFAIU it should be fine on them.

    Also read yesterday that Ghostty added support. I tested it, they show the progress in a blue strip at the top (changes to red if there's a failure), but they don't show it on the tab when you're on another tab, so it's kind of pointless (maybe they missed the point?), but anyway from pytest's perspective it does work.

  10. bluetech
    added a commit that references this issue on Sep 16, 2025

    terminal: notify terminal emulator about test session progress

    This issue will close once commit f1b1c0a is merged into the 'main' branch.
    f1b1c0a
  11. bluetech
    added 2 commits that reference this issue on Oct 1, 2025

    terminal: notify terminal emulator about test session progress

    This issue will close once commit a090c83 is merged into the 'main' branch.
    a090c83

    terminal: notify terminal emulator about test session progress

    This issue will close once commit 99cd7a2 is merged into the 'main' branch.
    99cd7a2
  12. bluetech
    closed this as completedin #13728on Oct 1, 2025
  13. 736-c41-2c1-e464fc974
    added 2 commits that reference this issue on Feb 4, 2026

    chore(deps): update pytest (major)

    01f4e67

    Merge branch 'renovate/pytest-9.x' into 'main'

    d08c4bc
  14. MateoGreil
    added a commit that references this issue on Jul 4, 2026

    🔒️ Update dependency pytest to v9 [SECURITY] (#16)

    d97ea28
  15. luketainton
    added a commit that references this issue on Jul 19, 2026

    [SECURITY] Update dependency pytest to v9 [SECURITY] (#2)

    fca183b
  16. Djeex
    added a commit that references this issue on Aug 31, 2026

    Update dependency pytest to v9 (#35)

    f96ce2f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueeasy issue that is friendly to new contributortopic: reportingrelated to terminal output and user-facing messages and errorstype: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.