# message-style

Source: https://libtmux.org/en/tmux/3.7c/catalog/options/message-style/

> Set status line message style.

option tmux3.7c

Set status line message style.

* Scope

  session

* Type

  Text, style

* Default

  `bg=yellow,fg=black,fill=yellow`

* Separator

  `,`

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.7c/manual/set-option/) `message-style value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.7c/manual/show-options/) `message-style`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/options/message-style/#description)

Set status line message style. This is used for messages and for the command prompt. The message is drawn on top of the existing status line. A `width` attribute (a fixed number of columns or a percentage such as ‘`50%`’) constrains the prompt area width and an `align` attribute (`left`, `centre`, `right`) sets its horizontal position. When the width is less than the full terminal width, the normal status bar content remains visible around the prompt area. The `fill` attribute is used by the default [`message-format`](https://libtmux.org/en/tmux/3.7c/catalog/options/message-format/) to clear the background. For how to specify `style`, see the [STYLES](https://libtmux.org/en/tmux/3.7c/manual/full/#STYLES) section.

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/options/message-style/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/message-style/) : default bg=yellow,fg=black to bg=yellow,fg=black,fill=yellow
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/message-style/) : present

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/options/message-style/#source)

* Defined in

  [`options-table.c:755`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options-table.c#L755)

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.7c/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#options-message-style)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/options/message-style/#used-by)

Library documentation that names this option.

* Rust

  [`options.generated.MESSAGE_STYLE`](https://libtmux.org/en/rs/latest/reference/options-generated-message_style/)

* Go

  [`tmux.GlobalSessionScope.SetMessageStyle`](https://libtmux.org/en/go/latest/reference/tmux-globalsessionscope-setmessagestyle/), [`tmux.Session.SetMessageStyle`](https://libtmux.org/en/go/latest/reference/tmux-session-setmessagestyle/), [`tmux.SessionOptionValues.MessageStyle`](https://libtmux.org/en/go/latest/reference/tmux-sessionoptionvalues-messagestyle/)
