MacOS problems: screen corruption, lacking recent history

I’m running atuin on up-to-date MacOS. Two problems:

(1) When I’m in a screen session, there is some text-screen corruption in atuin. It appears it isn’t “clearing” the whole area, so earlier text is overwritten with the atuin UI. By default, my screen environmental variable is screen-256color, but I’ve also tried xterm-256color and have the same result.

(2) Although I’m not seeing any errors, recent commands don’t appear in the CTRL-R history view. atuin sync reports no errors either. How do I troubleshoot why recent commands aren’t getting added to the history?

This is likely due to lack of proper altscreen support with screen

You can see more here: GNU screen requires altscreen enabled · Issue #320 · atuinsh/atuin · GitHub

wrt 2, I’m not so sure. Does atuin history list show your history?

1 Like

Ah, thanks! Setting inline_height to something other than 0 seems to fix the display problem. Not ideal but it works.

I am seeing commands from other atuin devices in atuin history list but not actually my recent Mac history. There are history.db and records.db files in ~/.locoal/share/atuin that have recent modtimes, but somehow my Mac commands aren’t getting added to the list?

My Mac is on atuin 18.3.0 (from Homebrew) and I’m not seeing any errors. Using bash.

Also, if I run sync on multiple systems and check the history, I’m not seeing the mac commands on the other systems either – this is consistent with the commands just not going into the queue.

It will do! That means your terminal will scroll down a bit, but won’t use altscreen

I suspect it could be a sorting issue in that case. Does enabling smart_sort = true solve the issue?

It’s still corrupt if I set inline_height=0 and smart_sort=true.