Skip to content

Conversation

@AnonymouX47
Copy link
Owner

@AnonymouX47 AnonymouX47 commented Sep 11, 2024

  • Adds .terminal submodule.
    • ActiveTerminalSyncProcess
    • TTY
    • get_active_terminal()
    • @with_active_terminal_lock
    • NoActiveTerminalError
    • NoMultiProcessSyncWarning

@AnonymouX47 AnonymouX47 added new New feature implementation improvement Implementation of improvement to an existing feature terminal query Related to terminal queries utils Related to utilities labels Sep 11, 2024
@AnonymouX47 AnonymouX47 added this to the 0.8.0 milestone Sep 11, 2024
@github-actions
Copy link

github-actions bot commented Sep 11, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/term_image/terminal
  __init__.py 5-456, 484-791
Project Total  

This report was generated by python-coverage-comment-action

@AnonymouX47 AnonymouX47 force-pushed the terminal-utils-and-queries branch from 1fd0132 to 27bc0aa Compare September 27, 2024 16:41
@AnonymouX47 AnonymouX47 force-pushed the terminal-utils-and-queries branch 2 times, most recently from cec8dcc to 47f62ae Compare October 7, 2024 10:58
@AnonymouX47 AnonymouX47 force-pushed the terminal-utils-and-queries branch 2 times, most recently from ed90471 to d1684bb Compare April 5, 2025 13:38
- Add: A submodule for terminal utilities.
- Add: `TTY` class.
- Add: `get_active_terminal()`.
- Add: To `.terminal`:
  - `ActiveTerminalSyncProcess`
  - `@active_terminal_sync`
  - `NoMultiProcessSyncWarning`

- Add: `TTY.lock` instance attribute.
- Add: `NoActiveTerminalError`.
- Change: `get_active_terminal()` no longer returns `None`. Instead, it
  now raises `NoActiveTerminalError`.
- Add: `.read_raw()`, `.read_available()`.
- Add: `.query()`.
- Add: `TTY.lock()`.
- Change: `TTY.lock` -> `._lock`.
- Change: `@active_terminal_sync` -> `@with_active_terminal_lock`.
- Change: Update docstrings.
- Add: `TerminalError`, `TTYError`.
- Change: `NoActiveTerminalError` now inherits from `TerminalError`.
- Change: Update the description of `NoActiveTerminalError` for
  `get_active_terminal()`.
- Add: `TTYSize`, `TTY.get_size()`.
- Add: `TERMINAL_INFO`, `ReadOnlyTerminalInfo`, `TerminalInfo`.
@AnonymouX47 AnonymouX47 force-pushed the terminal-utils-and-queries branch from d1684bb to 902f3eb Compare April 5, 2025 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Implementation of improvement to an existing feature new New feature implementation terminal query Related to terminal queries utils Related to utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants