Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c2a1d28ea7
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (26 sloc) 0.934 kb
#import "TotalTerminal+Features.h"
@implementation TotalTerminal (Features)
+(BOOL) shouldLoadFeature:(NSString*)feature {
BOOL enabled = ![[NSUserDefaults standardUserDefaults] boolForKey:[@"TotalTerminalDisable" stringByAppendingString:feature]];
return enabled;
}
+(void) loadFeatures {
// load individual features
if ([self shouldLoadFeature:@"PasteOnRightClick"]) {
[self loadPasteOnRightClick];
}
if ([self shouldLoadFeature:@"CopyOnSelect"]) {
[self loadCopyOnSelect];
}
// TerminalColours is not needed anymore under Lion, Apple has implemented 256 color support
if ((terminalVersion() < FIRST_LION_VERSION) && [self shouldLoadFeature:@"TerminalColours"]) {
[self loadTerminalColours];
}
if ([self shouldLoadFeature:@"Visor"]) {
[self loadVisor];
}
if ([self shouldLoadFeature:@"AutoSlide"]) {
[self loadAutoSlide];
}
}
@end
Jump to Line
Something went wrong with that request. Please try again.