def display_message(type, title, message, options = { })
message_format = options["#{ type }_message_format".to_sym] || options[:default_message_format] || DEFAULTS[:default_message_format]
message_color = options["#{ type }_message_color".to_sym] || options[:default_message_color] || DEFAULTS[:default_message_color]
display_time = options[:timeout] || DEFAULTS[:timeout]
separator = options[:line_separator] || DEFAULTS[:line_separator]
color = tmux_color type, options
formatted_message = message.split("\n").join(separator)
display_message = message_format % [title, formatted_message]
run_client "set display-time #{ display_time * 1000 }"
run_client "set message-fg #{ message_color }"
run_client "set message-bg #{ color }"
run_client "display-message '#{ display_message }'"
end