mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for
new windows.
This commit is contained in:
		| @@ -164,6 +164,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx) | |||||||
| 			fatal("tcgetattr failed"); | 			fatal("tcgetattr failed"); | ||||||
| 	} else | 	} else | ||||||
| 		memcpy(tio.c_cc, ttydefchars, sizeof tio.c_cc); | 		memcpy(tio.c_cc, ttydefchars, sizeof tio.c_cc); | ||||||
|  | 	tio.c_cc[VERASE] = '\177'; | ||||||
| 	tio.c_iflag = TTYDEF_IFLAG; | 	tio.c_iflag = TTYDEF_IFLAG; | ||||||
| 	tio.c_oflag = TTYDEF_OFLAG; | 	tio.c_oflag = TTYDEF_OFLAG; | ||||||
| 	tio.c_lflag = TTYDEF_LFLAG; | 	tio.c_lflag = TTYDEF_LFLAG; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott