Skip to content
Snippets Groups Projects
Commit 2b4ccebf authored by George Nachman's avatar George Nachman
Browse files

Add an advanced pref to disable custom box-drawing code. Issue 6151

parent ccddc395
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -194,5 +194,6 @@
+ (CGFloat)verticalBarCursorWidth;
+ (BOOL)statusBarIcon;
+ (BOOL)sensitiveScrollWheel;
+ (BOOL)disableCustomBoxDrawing;
 
@end
Loading
Loading
@@ -176,6 +176,7 @@ DEFINE_INT(adaptiveFrameRateThroughputThreshold, 10000, @"Drawing: Throughput th
DEFINE_BOOL(dwcLineCache, YES, @"Drawing: Enable cache of double-width character locations?\nThis should improve performance. It is always on in nightly builds. You must restart iTerm2 for this setting to take effect.");
DEFINE_BOOL(useGCDUpdateTimer, YES, @"Drawing: Use GCD-based update timer instead of NSTimer.\nThis should cause more regular screen updates. Restart iTerm2 after changing this setting.");
DEFINE_BOOL(drawOutlineAroundCursor, NO, @"Drawing: Draw outline around underline and vertical bar cursors using background color.");
DEFINE_BOOL(disableCustomBoxDrawing, NO, @"Drawing: Use your typeface’s box-drawing characters instead of iTerm2’s custom drawing code.\nYou must restart iTerm2 after changing this setting.");
 
#pragma mark - Semantic History
DEFINE_BOOL(ignoreHardNewlinesInURLs, NO, @"Semantic History: Ignore hard newlines for the purposes of locating URLs and file names for Semantic History.\nIf a hard newline occurs at the end of a line then cmd-click will not see it all unless this setting is turned on. This is useful for some interactive applications. Turning this on will remove newlines from the \\3 and \\4 substitutions.");
Loading
Loading
Loading
Loading
@@ -7,6 +7,8 @@
//
 
#import "iTermBoxDrawingBezierCurveFactory.h"
#import "iTermAdvancedSettingsModel.h"
#import "charmaps.h"
#import "NSArray+iTerm.h"
 
Loading
Loading
@@ -16,10 +18,14 @@
static NSCharacterSet *sBoxDrawingCharactersWithBezierPaths;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sBoxDrawingCharactersWithBezierPaths =
if ([iTermAdvancedSettingsModel disableCustomBoxDrawing]) {
sBoxDrawingCharactersWithBezierPaths = [[NSCharacterSet characterSetWithCharactersInString:@""] retain];
} else {
sBoxDrawingCharactersWithBezierPaths =
[[NSCharacterSet characterSetWithCharactersInString:@"─━│┃┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤"
@"┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╴╵╶╷╸╹╺╻╼╽╾╿"
@"╯╮╰╭╱╲╳"] retain];
};
});
return sBoxDrawingCharactersWithBezierPaths;
}
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