File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,8 @@ def set_window_option(
335335 unset : t .Optional [bool ] = None ,
336336 unset_panes : t .Optional [bool ] = None ,
337337 prevent_overwrite : t .Optional [bool ] = None ,
338+ suppress_warnings : t .Optional [bool ] = None ,
339+ append : t .Optional [bool ] = None ,
338340 ) -> "Window" :
339341 """Set option for tmux window.
340342
@@ -375,6 +377,14 @@ def set_window_option(
375377 assert isinstance (prevent_overwrite , bool )
376378 flags .append ("-o" )
377379
380+ if suppress_warnings is not None and suppress_warnings :
381+ assert isinstance (suppress_warnings , bool )
382+ flags .append ("-q" )
383+
384+ if append is not None and append :
385+ assert isinstance (append , bool )
386+ flags .append ("-a" )
387+
378388 cmd = self .cmd (
379389 "set-window-option" ,
380390 f"-t{ self .session_id } :{ self .window_index } " ,
You can’t perform that action at this time.
0 commit comments