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
f7c8dd9b
Commit
f7c8dd9b
authored
Feb 02, 2022
by
Matan Ziv-Av
Committed by
Tomaz Canabrava
Feb 07, 2022
Browse files
Remove sixel debug code
parent
c270b913
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Vt102Emulation.cpp
View file @
f7c8dd9b
...
...
@@ -2276,7 +2276,6 @@ void Vt102Emulation::SixelCharacterAdd(uint8_t character)
bool
Vt102Emulation
::
processSixel
(
uint
cc
)
{
// std::cerr << "processSixel " << cc << std::endl;
if
(
cc
==
ESC
)
{
return
false
;
}
...
...
@@ -2342,11 +2341,6 @@ bool Vt102Emulation::processSixel(uint cc)
receiveChars
(
QVector
<
uint
>
{
cc
});
// re-send the actual character
return
true
;
}
puts
(
"Invalid raster definition"
);
for
(
int
i
=
0
;
i
<
argc
;
i
++
)
{
printf
(
"%d "
,
argv
[
i
]);
}
puts
(
""
);
return
false
;
}
...
...
@@ -2388,29 +2382,16 @@ bool Vt102Emulation::processSixel(uint cc)
SixelColorChangeRGB
(
index
,
argv
[
2
],
argv
[
3
],
argv
[
4
]);
break
;
default:
printf
(
"Invalid sixel colorspace %d
\n
"
,
colorspace
);
return
false
;
}
}
else
if
(
argc
==
1
&&
argv
[
0
]
>=
0
)
{
// could check max, but people should be able to do what they want idc
m_currentColor
=
index
;
}
else
{
printf
(
"Invalid %d
\n
"
,
argc
);
return
false
;
}
resetTokenizer
();
receiveChars
(
QVector
<
uint
>
{
cc
});
// re-send the actual character
return
true
;
}
printf
(
"Failed to parse sixel, leftover: "
);
if
(
cc
==
ESC
)
{
printf
(
"ESC "
);
}
else
{
printf
(
"%c "
,
char
(
cc
));
}
if
(
s
[
0
]
==
ESC
)
{
printf
(
"ESC "
);
}
else
{
printf
(
"%c "
,
char
(
s
[
0
]));
}
return
false
;
}
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