Defined Under Namespace

This option configures whether programs running inside tmux may use the terminal alternate screen feature, which allows the smcup and rmcup terminfo(5) capabilities to be issued to preserve the existing window content on start and restore it on exit.

Instance Attribute Details

#aggressive_resize ⇒ BooleanAlso known as:
aggressive_resize?

Aggressively resize the window. This means that tmux will resize
the window to the size of the smallest session for
which it is the current window, rather than the smallest
session to which it is attached. The window may resize
when the current window is changed on another session;
this option is good for full-screen programs which support
SIGWINCH and poor for interactive programs such as shells.

#alternate_screen ⇒ BooleanAlso known as:
alternate_screen?

This option configures whether programs running inside tmux may
use the terminal alternate screen feature, which allows the
smcup and rmcup terminfo(5) capabilities to be issued to preserve the existing
window content on start and restore it on exit.

#automatic_rename ⇒ BooleanAlso known as:
automatic_rename?

Control automatic window renaming. When this setting is enabled,
tmux will attempt – on supported platforms – to rename the
window to reflect the command currently running in it. This flag
is automatically disabled for an individual window when a name
is specified at creation with Session#create_window or
Server#create_session, or later with #name=.

# File 'lib/tmux/window.rb', line 644defcurrent_pane(return_if=:always)ifserver.version>="1.4"self.panes.find(&:active?)else# In tmux <1.4, we can only determine the selected pane of the
# current window.
#
# If the user specified return_if = :always, we select this
# window (if it is not already selected), determine the
# current pane and select the lastly selected window again.
cur_window=self.session.any_client.current_windowsame_window=cur_window==selfreturn_if_b=((return_if==:if_same_window&&same_window)||(return_if==:always))self.selectifreturn_if_b&&!same_windownew_pane=nilifreturn_if_bnum=self.session.any_client.message_stdout("#P")new_pane=Pane.new(self,num.to_i)endifreturn_if==:always&&!same_windowself.session.select_previous_windowendreturnnew_paneifnew_paneendend