linutil icon indicating copy to clipboard operation
linutil copied to clipboard

feat: Implement minimum TUI size

Open jeevithakannan2 opened this issue 1 year ago • 3 comments

Pull Request

Title

Implement minimum TUI size

Type of Change

  • [x] New feature
  • [x] UI/UX improvement

Description

  • Display a warning message if the terminal size is small
  • Prevents entries from not appearing on screen. Refer issue https://github.com/ChrisTitusTech/linutil/issues/242
  • The method to resolve the issue is to render the TUI only when the size of TUI is above a certain threshold

warning

Impact

  • Disables users from accessing the UI when the terminal size is small

Issue related to PR

  • Resolves https://github.com/ChrisTitusTech/linutil/issues/242

Checklist

  • [x] My code adheres to the coding and style guidelines of the project.
  • [x] I have performed a self-review of my own code.
  • [x] I have commented my code, particularly in hard-to-understand areas.
  • [x] My changes generate no errors/warnings/merge conflicts.

jeevithakannan2 avatar Sep 16 '24 17:09 jeevithakannan2

Nice! bashtop also has a feature like this. image

ghost avatar Sep 17 '24 01:09 ghost

I see, I think i should change Terminal size too small to current size. What do you think ?

jeevithakannan2 avatar Sep 17 '24 01:09 jeevithakannan2

I see, I think i should change Terminal size too small to current size. What do you think ?

No, the current version is fine how it is.

ghost avatar Sep 17 '24 01:09 ghost