You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terminals on portrait mode smartphones are probably around 40 columns wide.
The standard Unix terminals were usually around 80 x 24
For graphical terminals, something wider, but probably less than either 120 or 150 is the default.
Web design has gotten really good at translating the same content into multiple different sizes and aspect ratios.
Curious on thoughts on how to structure applications to use lipgloss to handle a broad spectrum of sizes?
My initial thought is something like:
less than 40 characters: display an error asking for larger screen size
40-79 char view for narrow screens: use alternative "short" names for on screen items
80-120 char view for normal screens: normal mode most people will be using
121+ char view for wide screens: draw a border around everything and center the 120 characters of the display
So every View() would basically become ViewSmartphone(), ViewNormal() or ViewHuge() depending on the screen width.
Has anyone gathered statistics on average terminal dimensions either on the desktop or via ssh? I searched a bit but didn't see any.
Some apps handle terminal resizing better than others. Personally I think neovim does the best job, but it's use case is probably quite a bit different than most apps that will use lipgloss.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Terminals on portrait mode smartphones are probably around
40
columns wide.The standard Unix terminals were usually around
80 x 24
For graphical terminals, something wider, but probably less than either
120
or150
is the default.Web design has gotten really good at translating the same content into multiple different sizes and aspect ratios.
Curious on thoughts on how to structure applications to use lipgloss to handle a broad spectrum of sizes?
My initial thought is something like:
So every
View()
would basically becomeViewSmartphone()
,ViewNormal()
orViewHuge()
depending on the screen width.Has anyone gathered statistics on average terminal dimensions either on the desktop or via
ssh
? I searched a bit but didn't see any.Some apps handle terminal resizing better than others. Personally I think
neovim
does the best job, but it's use case is probably quite a bit different than most apps that will uselipgloss
.Beta Was this translation helpful? Give feedback.
All reactions