~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
2 years ago
Updated
30 days ago
Labels
bug

~sircmpwn closed duplicate ticket #132 2 years ago

~sircmpwn closed duplicate ticket #142 2 years ago

~wbob referenced this from #249 1 year, 9 months ago

~pmolloy referenced this from #240 1 year, 9 months ago

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

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

~labrat closed duplicate ticket #419 11 months ago

~labrat closed duplicate ticket #440 9 months ago

Malte Hoelscher closed duplicate ticket #444 9 months ago

~tsujp 9 months 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 9 months ago*

double posted due to slow link; truncating text

~tsujp 9 months ago

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

~labrat REPORTED DUPLICATE 9 months ago

~labrat DUPLICATE REPORTED 9 months ago

~labrat 9 months ago

nevermind, that's the original...

~epse 30 days 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.