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
891bc75c
Commit
891bc75c
authored
Feb 26, 2022
by
Matan Ziv-Av
Committed by
Kurt Hindenburg
Mar 18, 2022
Browse files
Add support for `CSI 16 t` - report character cell size in pixels
(cherry picked from commit
3a6a62ed
)
parent
fe2a737d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Vt102Emulation.cpp
View file @
891bc75c
...
...
@@ -983,7 +983,8 @@ void Vt102Emulation::processToken(int token, int p, int q)
break
;
case
token_csi_ps
(
't'
,
14
)
:
reportPixelSize
();
break
;
case
token_csi_ps
(
't'
,
18
)
:
reportSize
();
break
;
case
token_csi_ps
(
't'
,
16
)
:
reportCellSize
();
break
;
case
token_csi_ps
(
't'
,
18
)
:
reportSize
();
break
;
// change tab text color : \e[28;<color>t color: 0-16,777,215
case
token_csi_ps
(
't'
,
28
)
:
/* IGNORED: konsole-specific KDE3-era extension, not implemented */
break
;
...
...
@@ -1562,6 +1563,17 @@ void Vt102Emulation::reportPixelSize()
sendString
(
tmp
);
}
void
Vt102Emulation
::
reportCellSize
()
{
char
tmp
[
30
];
snprintf
(
tmp
,
sizeof
(
tmp
),
"
\033
[6;%d;%dt"
,
_currentScreen
->
currentTerminalDisplay
()
->
terminalFont
()
->
fontHeight
(),
_currentScreen
->
currentTerminalDisplay
()
->
terminalFont
()
->
fontWidth
());
sendString
(
tmp
);
}
void
Vt102Emulation
::
reportSize
()
{
char
tmp
[
30
];
...
...
src/Vt102Emulation.h
View file @
891bc75c
...
...
@@ -161,6 +161,7 @@ private:
void
reportAnswerBack
();
void
reportCursorPosition
();
void
reportPixelSize
();
void
reportCellSize
();
void
reportSize
();
void
reportTerminalParms
(
int
p
);
...
...
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