Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Get width of the terminal that the app is running in #23

Open
samdai01 opened this issue Feb 3, 2024 · 0 comments
Open

Get width of the terminal that the app is running in #23

samdai01 opened this issue Feb 3, 2024 · 0 comments
Labels
enhancement New feature or request good_first_issue

Comments

@samdai01
Copy link
Contributor

samdai01 commented Feb 3, 2024

Purpose

To ensure a uniform output, the app must have a self-imposed limit of how wide it can be based on the terminal it is in.

Description

Using ioctl, obtain the width of the terminal window in Linux and return it multiplied by a scaling factor of 0.6. If the terminal width is less than 50 characters wide, return the width of the terminal itself. An example of how to get the terminal width in Linux is included below

Resources

https://stackoverflow.com/questions/23369503/get-size-of-terminal-window-rows-columns

@samdai01 samdai01 added enhancement New feature or request good_first_issue labels Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good_first_issue
Projects
None yet
Development

No branches or pull requests

1 participant