Skip to content
Snippets Groups Projects
Commit f3826953 authored by pjaspers's avatar pjaspers
Browse files

Utility methods to read colortable

parent 433e09ab
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -319,6 +319,7 @@ typedef struct PTYFontInfo PTYFontInfo;
- (void)setBGColor:(NSColor*)color;
- (void)setBoldColor:(NSColor*)color;
- (void)setColorTable:(int) theIndex color:(NSColor *) c;
- (NSColor *)colorInColorTableWithIndex:(int) theIndex;
- (void)setSelectionColor:(NSColor *)aColor;
- (void)setCursorColor:(NSColor*)color;
- (void)setSelectedTextColor:(NSColor *)aColor;
Loading
Loading
Loading
Loading
@@ -497,6 +497,12 @@ static NSImage* wrapToBottomImage = nil;
[self setNeedsDisplay:YES];
}
 
- (NSColor *)colorInColorTableWithIndex:(int) theIndex
{
if(theIndex > 255) return nil;
return colorTable[theIndex];
}
- (NSColor*)_colorForCode:(int)theIndex alternateSemantics:(BOOL)alt bold:(BOOL)isBold
{
NSColor* color;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment