Merge pull request #540 from kklemon/support-blinking-cursor

Add blinking cursor support
This commit is contained in:
Filippo Scognamiglio
2020-05-09 16:37:49 +02:00
committed by GitHub
4 changed files with 26 additions and 2 deletions

View File

@@ -59,6 +59,8 @@ QtObject{
property real burnInQuality: 0.5
property bool useFastBurnIn: Qt.platform.os === "osx" ? false : true
property bool blinkingCursor: false
onWindowScalingChanged: handleFontChanged();
// PROFILE SETTINGS ///////////////////////////////////////////////////////
@@ -208,7 +210,8 @@ QtObject{
burnInQuality: burnInQuality,
useCustomCommand: useCustomCommand,
customCommand: customCommand,
useFastBurnIn: useFastBurnIn
useFastBurnIn: useFastBurnIn,
blinkingCursor: blinkingCursor
}
return stringify(settings);
}
@@ -296,6 +299,8 @@ QtObject{
customCommand = settings.customCommand !== undefined ? settings.customCommand : customCommand
useFastBurnIn = settings.useFastBurnIn !== undefined ? settings.useFastBurnIn : useFastBurnIn;
blinkingCursor = settings.blinkingCursor !== undefined ? settings.blinkingCursor : blinkingCursor
}
function loadProfileString(profileString){

View File

@@ -94,6 +94,7 @@ Item{
smooth: !appSettings.lowResolutionFont
enableBold: false
fullCursorHeight: true
blinkingCursor: appSettings.blinkingCursor
session: QMLTermSession {
id: ksession

View File

@@ -114,6 +114,24 @@ Tab{
}
}
}
GroupBox{
title: qsTr("Cursor")
Layout.fillWidth: true
ColumnLayout {
anchors.fill: parent
CheckBox{
id: blinkingCursor
text: qsTr("Blinking Cursor")
checked: appSettings.blinkingCursor
onCheckedChanged: appSettings.blinkingCursor = checked
}
Binding{
target: blinkingCursor
property: "checked"
value: appSettings.blinkingCursor
}
}
}
GroupBox{
title: qsTr("Colors")
Layout.fillWidth: true