[PR #423] [MERGED] Use os.get_terminal_size() #1061

Closed
opened 2026-03-15 11:16:33 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/asciinema/asciinema/pull/423
Author: @arp242
Created: 12/6/2020
Status: Merged
Merged: 10/2/2021
Merged by: @ku1ik

Base: developHead: termsize


📝 Commits (1)

  • 949e57e Use os.get_terminal_size()

📊 Changes

1 file changed (+7 additions, -5 deletions)

View changed files

📝 asciinema/term.py (+7 -5)

📄 Description

tput is part of ncurses, which may not be installed.

It still falls back to tput for older Python versions (this was
introduced in 3.3) or for platforms which may not support it.

Fixes #418


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/asciinema/asciinema/pull/423 **Author:** [@arp242](https://github.com/arp242) **Created:** 12/6/2020 **Status:** ✅ Merged **Merged:** 10/2/2021 **Merged by:** [@ku1ik](https://github.com/ku1ik) **Base:** `develop` ← **Head:** `termsize` --- ### 📝 Commits (1) - [`949e57e`](https://github.com/asciinema/asciinema/commit/949e57e67c580e020c250d704a22d0ddfb7afda0) Use os.get_terminal_size() ### 📊 Changes **1 file changed** (+7 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `asciinema/term.py` (+7 -5) </details> ### 📄 Description tput is part of ncurses, which may not be installed. It still falls back to tput for older Python versions (this was introduced in 3.3) or for platforms which may not support it. Fixes #418 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 11:16:33 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#1061
No description provided.