@@ -351,8 +351,8 @@ def new_session(
351351 start_directory : t .Optional [str ] = None ,
352352 window_name : t .Optional [str ] = None ,
353353 window_command : t .Optional [str ] = None ,
354- window_width : t .Optional [int ] = None ,
355- window_height : t .Optional [int ] = None ,
354+ x : t .Optional [int ] = None ,
355+ y : t .Optional [int ] = None ,
356356 * args : t .Any ,
357357 ** kwargs : t .Any ,
358358 ) -> Session :
@@ -395,10 +395,10 @@ def new_session(
395395 when the command exits. NOTE: When this command exits the window
396396 will close. This feature is useful for long-running processes
397397 where the closing of the window upon completion is desired.
398- window_width : int, optional
398+ x : int, optional
399399 Force the specified width instead of the tmux default for a
400400 dettached session
401- window_height : int, optional
401+ y : int, optional
402402 Force the specified height instead of the tmux default for a
403403 dettached session
404404
@@ -463,11 +463,11 @@ def new_session(
463463 if window_name :
464464 tmux_args += ("-n" , window_name )
465465
466- if window_width is not None :
467- tmux_args += ("-x" , window_width )
466+ if x is not None :
467+ tmux_args += ("-x" , x )
468468
469- if window_height is not None :
470- tmux_args += ("-y" , window_height )
469+ if y is not None :
470+ tmux_args += ("-y" , y )
471471
472472 if window_command :
473473 tmux_args += (window_command ,)
0 commit comments