Merge branch 'no-colors-on-tty' into 'master'
Fix colors when we can't change colors (eg. in a TTY) See merge request ynerant/squinnondation!9
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -120,7 +120,8 @@ class User(Peer):
 | 
				
			|||||||
        self.emoji_pad = curses.newpad(18, 12)
 | 
					        self.emoji_pad = curses.newpad(18, 12)
 | 
				
			||||||
        self.emoji_panel_page = -1
 | 
					        self.emoji_panel_page = -1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        curses.init_color(curses.COLOR_WHITE, 1000, 1000, 1000)
 | 
					        if curses.can_change_color():
 | 
				
			||||||
 | 
					            curses.init_color(curses.COLOR_WHITE, 1000, 1000, 1000)
 | 
				
			||||||
        for i in range(curses.COLOR_BLACK + 1, curses.COLOR_WHITE):
 | 
					        for i in range(curses.COLOR_BLACK + 1, curses.COLOR_WHITE):
 | 
				
			||||||
            curses.init_pair(i + 1, i, curses.COLOR_BLACK)
 | 
					            curses.init_pair(i + 1, i, curses.COLOR_BLACK)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user