mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add an attribute for ACS.
This commit is contained in:
		@@ -31,7 +31,8 @@ attributes_tostring(int attr)
 | 
			
		||||
	if (attr == 0)
 | 
			
		||||
		return ("none");
 | 
			
		||||
 | 
			
		||||
	len = xsnprintf(buf, sizeof buf, "%s%s%s%s%s%s%s%s%s%s%s%s%s",
 | 
			
		||||
	len = xsnprintf(buf, sizeof buf, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
 | 
			
		||||
	    (attr & GRID_ATTR_CHARSET) ? "acs," : "",
 | 
			
		||||
	    (attr & GRID_ATTR_BRIGHT) ? "bright," : "",
 | 
			
		||||
	    (attr & GRID_ATTR_DIM) ? "dim," : "",
 | 
			
		||||
	    (attr & GRID_ATTR_UNDERSCORE) ? "underscore," : "",
 | 
			
		||||
@@ -62,6 +63,7 @@ attributes_fromstring(const char *str)
 | 
			
		||||
		const char	*name;
 | 
			
		||||
		int		 attr;
 | 
			
		||||
	} table[] = {
 | 
			
		||||
		{ "acs", GRID_ATTR_CHARSET },
 | 
			
		||||
		{ "bright", GRID_ATTR_BRIGHT },
 | 
			
		||||
		{ "bold", GRID_ATTR_BRIGHT },
 | 
			
		||||
		{ "dim", GRID_ATTR_DIM },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user