Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						5ef6d077c6
					 | 
					
						
						
							
							Join oldest session if non specified. Fix errors.
						
						
						
						
						
						
					 | 
					
						2007-09-26 18:50:49 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						8d01984182
					 | 
					
						
						
							
							Restore list command.
						
						
						
						
						
						
					 | 
					
						2007-09-26 18:32:17 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						2aacbe764c
					 | 
					
						
						
							
							Whoops, these need to be terminated.
						
						
						
						
						
						
					 | 
					
						2007-09-26 18:18:39 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						0683ae4e47
					 | 
					
						
						
							
							These are no longer unused.
						
						
						
						
						
						
					 | 
					
						2007-09-26 18:14:48 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						b1822f6a72
					 | 
					
						
						
							
							Unlink and retry if server socket connect fails.
						
						
						
						
						
						
					 | 
					
						2007-09-26 18:12:19 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						302a35da85
					 | 
					
						
						
							
							Server function naming, still not happy with server stuff though.
						
						
						
						
						
						
					 | 
					
						2007-09-26 18:09:23 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						65eeb7e421
					 | 
					
						
						
							
							Restore -n, now after the command.
						
						
						
						
						
						
					 | 
					
						2007-09-26 14:08:16 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						fb39b22a2e
					 | 
					
						
						
							
							Cleanup part II: split up client stuff and ops. More to come.
						
						
						
						
						
						
					 | 
					
						2007-09-26 13:43:15 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						671694ac30
					 | 
					
						
						
							
							Cleanup part 1: split up server.c.
						
						
						
						
						
						
					 | 
					
						2007-09-26 10:35:24 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						3fef2d998f
					 | 
					
						
						
							
							Window list with C-b W.
						
						
						
						
						
						
					 | 
					
						2007-09-22 11:50:33 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						5ea2ac36e4
					 | 
					
						
						
							
							Stop crashing when exiting windows.
						
						
						
						
						
						
					 | 
					
						2007-09-21 20:45:06 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						70c1ba5770
					 | 
					
						
						
							
							Comment.
						
						
						
						
						
						
					 | 
					
						2007-09-21 20:02:23 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						f456e1cb30
					 | 
					
						
						
							
							Reset s->window to NULL so it doesn't end up in s->last.
						
						
						
						
						
						
					 | 
					
						2007-09-21 20:00:28 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						1fefbb7a85
					 | 
					
						
						
							
							Pass through backspace for now.
						
						
						
						
						
						
					 | 
					
						2007-09-21 19:24:37 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						f145108258
					 | 
					
						
						
							
							Tweak ordering.
						
						
						
						
						
						
					 | 
					
						2007-09-21 18:35:16 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						248f78d29a
					 | 
					
						
						
							
							Remove window before working out new current window; clear last window if necessary.
						
						
						
						
						
						
					 | 
					
						2007-09-21 18:31:58 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						33f5f84f99
					 | 
					
						
						
							
							Whoops. Other way round.
						
						
						
						
						
						
					 | 
					
						2007-09-21 18:20:44 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						d63977ea8a
					 | 
					
						
						
							
							session_last == -1 could still leave us with the window we are about to remove.
						
						
						
						
						
						
					 | 
					
						2007-09-21 18:16:31 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						1702a781bb
					 | 
					
						
						
							
							Be more careful about destroying windows.
						
						
						
						
						
						
					 | 
					
						2007-09-21 18:11:25 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						24b978adb7
					 | 
					
						
						
							
							Don't resize unless size changed.
						
						
						
						
						
						
					 | 
					
						2007-09-21 18:00:58 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						8ac1d46f9b
					 | 
					
						
						
							
							Move common command code into single function; from Maximilian Gass.
						
						
						
						
						
						
					 | 
					
						2007-09-20 18:51:34 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						15778b2952
					 | 
					
						
						
							
							META env var.
						
						
						
						
						
						
					 | 
					
						2007-09-20 18:48:04 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						656f2a264c
					 | 
					
						
						
							
							Sync.
						
						
						
						
						
						
					 | 
					
						2007-09-20 18:27:23 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						34f87e521b
					 | 
					
						
						
							
							Last window option.
						
						
						
						
						
						
					 | 
					
						2007-09-20 18:03:23 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						2cd99f0ebb
					 | 
					
						
						
							
							Reset ignored signals after forkpty.
						
						
						
						
						
						
					 | 
					
						2007-09-20 09:43:33 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						9c0b51cd5d
					 | 
					
						
						
							
							Wrap next/prev.
						
						
						
						
						
						
					 | 
					
						2007-09-20 08:21:59 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						b1782e1b3d
					 | 
					
						
						
							
							Truncate array if last window is closed.
						
						
						
						
						
						
					 | 
					
						2007-09-19 16:00:55 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						e3440e017d
					 | 
					
						
						
							
							Don't renumber on close.
						
						
						
						
						
						
					 | 
					
						2007-09-19 15:16:23 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						d7e1d4ddb9
					 | 
					
						
						
							
							Sync.
						
						
						
						
						
						
					 | 
					
						2007-09-19 14:12:48 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						39c4865332
					 | 
					
						
						
							
							Upd.
						
						
						
						
						
						
					 | 
					
						2007-09-18 11:00:37 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						037d11a289
					 | 
					
						
						
							
							This ain't goin' nowhere fast.
						
						
						
						
						
						
					 | 
					
						2007-09-05 19:54:05 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						3846c9b9a8
					 | 
					
						
						
							
							Set up signal handlers before fork so server has them too.
						
						
						
						
						
						
					 | 
					
						2007-08-28 09:36:33 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						48ab20871b
					 | 
					
						
						
							
							Tweak comment; use sizeof.
						
						
						
						
						
						
					 | 
					
						2007-08-28 09:26:07 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						fc63750d30
					 | 
					
						
						
							
							Scrolling region.
						
						
						
						
						
						
					 | 
					
						2007-08-28 09:19:50 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						38b752c1d8
					 | 
					
						
						
							
							Remove old sockets after error.
						
						
						
						
						
						
					 | 
					
						2007-08-28 08:30:36 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						12f7197adb
					 | 
					
						
						
							
							session_flush can go bye-bye again.
						
						
						
						
						
						
					 | 
					
						2007-08-27 20:36:52 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						438144692d
					 | 
					
						
						
							
							Flush even detached sessions.
						
						
						
						
						
						
					 | 
					
						2007-08-27 15:28:07 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						8dbccbc4db
					 | 
					
						
						
							
							Consistent error message.
						
						
						
						
						
						
					 | 
					
						2007-08-27 13:53:55 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						04f4e4219b
					 | 
					
						
						
							
							Change command format.
						
						
						
						
						
						
					 | 
					
						2007-08-27 13:45:26 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						6e210bb005
					 | 
					
						
						
							
							If a session is destroyed, safely kill all other clients attached to it.
						
						
						
						
						
						
					 | 
					
						2007-08-27 12:05:15 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						7000277f94
					 | 
					
						
						
							
							Don't try to upadte window after free.
						
						
						
						
						
						
					 | 
					
						2007-08-27 11:45:03 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						5cb483680f
					 | 
					
						
						
							
							Use after free.
						
						
						
						
						
						
					 | 
					
						2007-08-27 11:41:00 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						565ba002e9
					 | 
					
						
						
							
							Don't scroll screen until trying to write beyond limits.
						
						
						
						
						
						
					 | 
					
						2007-08-27 11:21:05 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						635edfa7d5
					 | 
					
						
						
							
							Don't accept zero titles.
						
						
						
						
						
						
					 | 
					
						2007-08-27 11:05:21 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						228ec26d10
					 | 
					
						
						
							
							These aren't unused.
						
						
						
						
						
						
					 | 
					
						2007-08-27 10:30:28 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						85770bc701
					 | 
					
						
						
							
							Use $SHELL for new shell, if set.
						
						
						
						
						
						
					 | 
					
						2007-08-27 10:24:03 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						b9de906ad9
					 | 
					
						
						
							
							We use screen now, not ansi.
						
						
						
						
						
						
					 | 
					
						2007-08-27 10:08:44 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						73d7b70479
					 | 
					
						
						
							
							Update to be more readable and hopefully lose memory problems.
						
						
						
						
						
						
					 | 
					
						2007-08-27 09:53:38 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						98642e907a
					 | 
					
						
						
							
							+.
						
						
						
						
						
						
					 | 
					
						2007-08-27 08:15:39 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Nicholas Marriott
							
						 
					 | 
					
						
						
							
						
						272ad1ed6c
					 | 
					
						
						
							
							Tweak logging.
						
						
						
						
						
						
					 | 
					
						2007-08-27 08:12:23 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
						
					 |