mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	When creating a new session from the command-line where there is an external
terminal, copy the termios(4) special characters and use them for new windows created in the new session. Suggested by Theo.
This commit is contained in:
		
							
								
								
									
										13
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								tmux.h
									
									
									
									
									
								
							@@ -803,6 +803,8 @@ struct session {
 | 
			
		||||
#define SESSION_UNATTACHED 0x1	/* not attached to any clients */
 | 
			
		||||
	int		 flags;
 | 
			
		||||
 | 
			
		||||
	struct termios   tio;
 | 
			
		||||
 | 
			
		||||
	struct environ	 environ;
 | 
			
		||||
};
 | 
			
		||||
ARRAY_DECL(sessions, struct session *);
 | 
			
		||||
@@ -1574,7 +1576,8 @@ void		 winlink_stack_remove(struct winlink_stack *, struct winlink *);
 | 
			
		||||
int	 	 window_index(struct window *, u_int *);
 | 
			
		||||
struct window	*window_create1(u_int, u_int);
 | 
			
		||||
struct window	*window_create(const char *, const char *, const char *,
 | 
			
		||||
    		     struct environ *, u_int, u_int, u_int, char **);
 | 
			
		||||
    		     struct environ *, struct termios *, u_int, u_int, u_int,
 | 
			
		||||
		     char **);
 | 
			
		||||
void		 window_destroy(struct window *);
 | 
			
		||||
void		 window_set_active_pane(struct window *, struct window_pane *);
 | 
			
		||||
struct window_pane *window_add_pane(struct window *, u_int);
 | 
			
		||||
@@ -1586,8 +1589,8 @@ u_int		 window_count_panes(struct window *);
 | 
			
		||||
void		 window_destroy_panes(struct window *);
 | 
			
		||||
struct window_pane *window_pane_create(struct window *, u_int, u_int, u_int);
 | 
			
		||||
void		 window_pane_destroy(struct window_pane *);
 | 
			
		||||
int		 window_pane_spawn(struct window_pane *,
 | 
			
		||||
		     const char *, const char *, struct environ *, char **);
 | 
			
		||||
int		 window_pane_spawn(struct window_pane *, const char *,
 | 
			
		||||
		     const char *, struct environ *, struct termios *, char **);
 | 
			
		||||
void		 window_pane_resize(struct window_pane *, u_int, u_int);
 | 
			
		||||
int		 window_pane_set_mode(
 | 
			
		||||
		     struct window_pane *, const struct window_mode *);
 | 
			
		||||
@@ -1666,8 +1669,8 @@ void	 session_alert_cancel(struct session *, struct winlink *);
 | 
			
		||||
int	 session_alert_has(struct session *, struct winlink *, int);
 | 
			
		||||
int	 session_alert_has_window(struct session *, struct window *, int);
 | 
			
		||||
struct session	*session_find(const char *);
 | 
			
		||||
struct session	*session_create(const char *, const char *,
 | 
			
		||||
    		     const char *, struct environ *, u_int, u_int, char **);
 | 
			
		||||
struct session	*session_create(const char *, const char *, const char *,
 | 
			
		||||
    		     struct environ *, struct termios *, u_int, u_int, char **);
 | 
			
		||||
void	 	 session_destroy(struct session *);
 | 
			
		||||
int	 	 session_index(struct session *, u_int *);
 | 
			
		||||
struct winlink	*session_new(struct session *,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user