mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Hide cursor with flag.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: server-fn.c,v 1.45 2008-06-19 20:45:20 nicm Exp $ */
 | 
			
		||||
/* $Id: server-fn.c,v 1.46 2008-06-19 23:07:11 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -33,6 +33,7 @@ server_set_client_message(struct client *c, const char *msg)
 | 
			
		||||
		fatal("clock_gettime");
 | 
			
		||||
	timespecadd(&c->message_timer, &ts, &c->message_timer);
 | 
			
		||||
 | 
			
		||||
	c->tty.flags |= TTY_NOCURSOR;
 | 
			
		||||
	c->flags |= CLIENT_STATUS;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -45,6 +46,7 @@ server_clear_client_message(struct client *c)
 | 
			
		||||
	xfree(c->message_string);
 | 
			
		||||
	c->message_string = NULL;
 | 
			
		||||
 | 
			
		||||
	c->tty.flags &= ~TTY_NOCURSOR;
 | 
			
		||||
	c->flags |= CLIENT_STATUS;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -60,6 +62,7 @@ server_set_client_prompt(
 | 
			
		||||
	c->prompt_callback = fn;
 | 
			
		||||
	c->prompt_data = data;
 | 
			
		||||
 | 
			
		||||
	c->tty.flags |= TTY_NOCURSOR;
 | 
			
		||||
	c->flags |= CLIENT_STATUS;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -74,6 +77,7 @@ server_clear_client_prompt(struct client *c)
 | 
			
		||||
 | 
			
		||||
	xfree(c->prompt_buffer);
 | 
			
		||||
 | 
			
		||||
	c->tty.flags &= ~TTY_NOCURSOR;
 | 
			
		||||
	c->flags |= CLIENT_STATUS;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user