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

Add an advanced pref for vertical bar cursor width.

Issue 5961
parent 6dcd66d8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -192,5 +192,6 @@
+ (BOOL)preventEscapeSequenceFromClearingHistory;
+ (BOOL)dwcLineCache;
+ (BOOL)lowFiCombiningMarks;
+ (CGFloat)verticalBarCursorWidth;
 
@end
Loading
Loading
@@ -131,6 +131,7 @@ DEFINE_BOOL(zeroWidthSpaceAdvancesCursor, YES, @"Terminal: Zero-Width Space (U+2
DEFINE_BOOL(fullHeightCursor, NO, @"Terminal: Cursor occupies line spacing area.\nIf lines have more than 100% vertical spacing and this setting is enabled the bottom of the cursor will be aligned to the bottom of the spacing area.");
DEFINE_FLOAT(underlineCursorOffset, 0, @"Terminal: Vertical offset for underline cursor.\nPositive values move it up, negative values move it down.");
DEFINE_BOOL(preventEscapeSequenceFromClearingHistory, NO, @"Terminal: Prevent CSI 3 J from clearing scrollback history?\nThis is also known as thethe terminfo E3 capability.");
DEFINE_FLOAT(verticalBarCursorWidth, 1, @"Terminal: Width of vertical bar cursor.");
 
#pragma mark Hotkey
DEFINE_FLOAT(hotkeyTermAnimationDuration, 0.25, @"Hotkey: Duration in seconds of the hotkey window animation.\nWarning: reducing this value may cause problems if you have multiple displays.");
Loading
Loading
Loading
Loading
@@ -109,7 +109,7 @@
focused:(BOOL)focused
coord:(VT100GridCoord)coord
outline:(BOOL)outline {
NSRect cursorRect = NSMakeRect(rect.origin.x, rect.origin.y, 1, rect.size.height);
NSRect cursorRect = NSMakeRect(rect.origin.x, rect.origin.y, [iTermAdvancedSettingsModel verticalBarCursorWidth], rect.size.height);
if (outline) {
[self drawOutlineOfRect:cursorRect withColor:backgroundColor];
} else {
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