Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
8c9014bb
Commit
8c9014bb
authored
Mar 03, 2022
by
Matan Ziv-Av
Committed by
Kurt Hindenburg
Mar 18, 2022
Browse files
Add `DoNotMoveCursor` option to iterm2 inline image protocol
(cherry picked from commit
1341088b
)
parent
a2029280
Pipeline
#151943
passed with stage
in 3 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Vt102Emulation.cpp
View file @
8c9014bb
...
...
@@ -816,6 +816,7 @@ void Vt102Emulation::processSessionAttributeRequest(int tokenSize)
int
keepAspect
=
1
;
int
scaledWidth
=
0
;
int
scaledHeight
=
0
;
bool
moveCursor
=
true
;
for
(
const
auto
&
p
:
params
)
{
int
eq
=
p
.
indexOf
(
QLatin1Char
(
'='
));
if
(
eq
>
0
)
{
...
...
@@ -831,6 +832,11 @@ void Vt102Emulation::processSessionAttributeRequest(int tokenSize)
keepAspect
=
0
;
}
}
if
(
var
==
QLatin1String
(
"doNotMoveCursor"
))
{
if
(
val
==
QLatin1String
(
"1"
))
{
moveCursor
=
false
;
}
}
if
(
var
==
QLatin1String
(
"width"
))
{
int
unitPos
=
val
.
toStdString
().
find_first_not_of
(
"0123456789"
);
scaledWidth
=
val
.
mid
(
0
,
unitPos
).
toInt
();
...
...
@@ -872,7 +878,7 @@ void Vt102Emulation::processSessionAttributeRequest(int tokenSize)
}
}
int
rows
=
-
1
,
cols
=
-
1
;
_currentScreen
->
addPlacement
(
pixmap
,
rows
,
cols
);
_currentScreen
->
addPlacement
(
pixmap
,
rows
,
cols
,
true
,
moveCursor
);
}
_pendingSessionAttributesUpdates
[
attribute
]
=
value
;
_sessionAttributesUpdateTimer
->
start
(
20
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment