mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Bump protocol version and add new message types.
This commit is contained in:
		
							
								
								
									
										35
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								tmux.h
									
									
									
									
									
								
							| @@ -19,7 +19,7 @@ | ||||
| #ifndef TMUX_H | ||||
| #define TMUX_H | ||||
|  | ||||
| #define PROTOCOL_VERSION 7 | ||||
| #define PROTOCOL_VERSION 8 | ||||
|  | ||||
| #include <sys/param.h> | ||||
| #include <sys/time.h> | ||||
| @@ -430,27 +430,36 @@ ARRAY_DECL(causelist, char *); | ||||
|  | ||||
| /* Message codes. */ | ||||
| enum msgtype { | ||||
| 	MSG_COMMAND, | ||||
| 	MSG_VERSION = 12, | ||||
|  | ||||
| 	MSG_IDENTIFY_FLAGS = 100, | ||||
| 	MSG_IDENTIFY_TERM, | ||||
| 	MSG_IDENTIFY_TTYNAME, | ||||
| 	MSG_IDENTIFY_CWD, | ||||
| 	MSG_IDENTIFY_STDIN, | ||||
| 	MSG_IDENTIFY_ENVIRON, | ||||
| 	MSG_IDENTIFY_DONE, | ||||
|  | ||||
| 	MSG_COMMAND = 200, | ||||
| 	MSG_DETACH, | ||||
| 	MSG_ERROR, | ||||
| 	MSG_DETACHKILL, | ||||
| 	MSG_EXIT, | ||||
| 	MSG_EXITED, | ||||
| 	MSG_EXITING, | ||||
| 	MSG_IDENTIFY, | ||||
| 	MSG_STDIN, | ||||
| 	MSG_LOCK, | ||||
| 	MSG_READY, | ||||
| 	MSG_RESIZE, | ||||
| 	MSG_SHUTDOWN, | ||||
| 	MSG_SUSPEND, | ||||
| 	MSG_VERSION, | ||||
| 	MSG_WAKEUP, | ||||
| 	MSG_ENVIRON, | ||||
| 	MSG_UNLOCK, | ||||
| 	MSG_LOCK, | ||||
| 	MSG_SHELL, | ||||
| 	MSG_SHUTDOWN, | ||||
| 	MSG_STDERR, | ||||
| 	MSG_STDIN, | ||||
| 	MSG_STDOUT, | ||||
| 	MSG_DETACHKILL | ||||
| 	MSG_SUSPEND, | ||||
| 	MSG_UNLOCK, | ||||
| 	MSG_WAKEUP, | ||||
|  | ||||
| 	MSG_IDENTIFY = 300, | ||||
| 	MSG_ENVIRON | ||||
| }; | ||||
|  | ||||
| /* | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott