Deal elegantly with too-small terminals

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

Assigned to
2 years ago
4 months ago

~sircmpwn closed duplicate ticket #132 2 years ago

~sircmpwn closed duplicate ticket #142 2 years ago

~wbob referenced this from #249 2 years ago

~pmolloy referenced this from #240 2 years ago

~labrat 1 year, 8 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 1 year, 7 months ago

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

~labrat closed duplicate ticket #419 1 year, 2 months ago

~labrat closed duplicate ticket #440 1 year, 30 days ago

Malte Hoelscher closed duplicate ticket #444 1 year, 20 days ago

~tsujp 1 year, 19 days 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
	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 1 year, 19 days ago*

double posted due to slow link; truncating text

~tsujp 1 year, 19 days ago

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

~labrat REPORTED DUPLICATE 1 year, 19 days ago

~labrat DUPLICATE REPORTED 1 year, 19 days ago

~labrat 1 year, 19 days ago

nevermind, that's the original...

~epse 4 months ago

I have the same issue still upon attempting to create an account, quite confusing as it happens with the default size of terminal in XFCE

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