Skip to content

Is it currently possible to programatically disable the scroll bar when there is nothing to scroll? #2590

Answered by wez
paveloom asked this question in Q&A
Discussion options

You must be logged in to vote

You could do something like:

wezterm.on('update-status', function(window, pane)
  local overrides = window:get_config_overrides() or {}
  overrides.enable_scroll_bar = not pane:is_alt_screen_active()
  window:set_config_overrides(overrides)     
end)

See also:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@paveloom
Comment options

@jaminthorns
Comment options

Answer selected by paveloom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants