mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Do not use bright when emulating 256 colours on an 8 colour terminal
because it is also bold on some terminals. GitHub issue 1914.
This commit is contained in:
		
							
								
								
									
										5
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								tty.c
									
									
									
									
									
								
							@@ -2374,10 +2374,7 @@ tty_check_fg(struct tty *tty, struct window_pane *wp, struct grid_cell *gc)
 | 
				
			|||||||
				gc->fg &= 7;
 | 
									gc->fg &= 7;
 | 
				
			||||||
				if (colours >= 16)
 | 
									if (colours >= 16)
 | 
				
			||||||
					gc->fg += 90;
 | 
										gc->fg += 90;
 | 
				
			||||||
				else
 | 
								}
 | 
				
			||||||
					gc->attr |= GRID_ATTR_BRIGHT;
 | 
					 | 
				
			||||||
			} else
 | 
					 | 
				
			||||||
				gc->attr &= ~GRID_ATTR_BRIGHT;
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user