~sircmpwn/aerc2#99: 
Deal elegantly with too-small terminals

We should replace the contents of the screen with "increase your terminal size yo"

Status
REPORTED
Submitter
~sircmpwn
Assigned to
No-one
Submitted
1 year, 4 months ago
Updated
a month ago
Labels
bug

~sircmpwn closed duplicate ticket #132 1 year, 4 months ago

~sircmpwn closed duplicate ticket #142 1 year, 4 months ago

~wbob referenced this from #249 1 year, 1 month ago

~pmolloy referenced this from #240 1 year, 1 month ago

~labrat 9 months ago

Want to keep this open? At least the crashing should be fixed now as far as I can tell (at least within tmux I can't crash aerc anymore)

~kostajh 8 months ago

This is reproducible with Gnome terminal at default size (80 x 24) on master (e78b7b85e4792f)

~labrat closed duplicate ticket #419 3 months ago

~labrat closed duplicate ticket #440 2 months ago

Malte Hoelscher closed duplicate ticket #444 a month ago

~tsujp a month ago

I've noticed that if my terminal screen is too small it straight up crashes:

panic: Attempted to draw outside of context

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Context).Printf(0xc0004731d0, 0x2, 0x1, 0x0, 0x564b3461cac0, 0x4, 0xc0000c1c00, 0x1, 0x1, 0x564b347910c0)
	git.sr.ht/~sircmpwn/aerc/lib/ui/context.go:70 +0x327
git.sr.ht/~sircmpwn/aerc/widgets.(*Selecter).Draw(0xc0000967d0, 0xc0004731d0)
	git.sr.ht/~sircmpwn/aerc/widgets/selecter.go:48 +0x17f
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0000cc6e0, 0xc000472e70)
	git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:142 +0x277
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountWizard).Draw(0xc000228240, 0xc000472e70)
	git.sr.ht/~sircmpwn/aerc/widgets/account-wizard.go:636 +0x4c
git.sr.ht/~sircmpwn/aerc/lib/ui.(*TabContent).Draw(0xc00021b880, 0xc000472e70)
	git.sr.ht/~sircmpwn/aerc/lib/ui/tab.go:393 +0x64
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0000cc420, 0xc0002941b0)
	git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:142 +0x277
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc0000cc4d0, 0xc0002941b0)
	git.sr.ht/~sircmpwn/aerc/widgets/aerc.go:172 +0x3f
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc0002bc000, 0xc0002a4000)
	git.sr.ht/~sircmpwn/aerc/lib/ui/ui.go:113 +0x1d1
main.main()
	git.sr.ht/~sircmpwn/aerc/aerc.go:192 +0x697
(i) ~ > 

This was an inbox with 3 emails in it, basically the same content to display as the aerc demo.

~tsujp a month ago*

double posted due to slow link; truncating text

~tsujp a month ago

Slow network so double posted... cannot delete them either..

~labrat REPORTED DUPLICATE a month ago

~labrat DUPLICATE REPORTED a month ago

~labrat a month ago

nevermind, that's the original...

Register here or Log in to comment, or comment via email.