Skip to content

window_content_alignment

Since: Nightly Builds Only

The functionality described in this section requires a nightly build of wezterm. You can obtain a nightly build by following the instructions from the Download section.

Controls the alignment of the terminal cells inside the window.

When window size is not a multiple of terminal cell size, terminal cells will be slightly smaller than the window, and leave a small gap between the two. You can use this option to control where the additional gap will be.

The lua table has two fields and following possible values:

  • horizontal
    • "Left" (the default)
    • "Center"
    • "Right"
  • vertical
    • "Top" (the default)
    • "Center"
    • "Bottom"

For example, to center the terminal cells:

config.window_content_alignment = {
  horizontal = 'Center',
  vertical = 'Center',
}