[vte/wip/sixels] terminal: Remove leftover code from old sixel patch
- From: Hans Petter Jansson <hansp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels] terminal: Remove leftover code from old sixel patch
- Date: Fri, 26 Jun 2020 16:36:18 +0000 (UTC)
commit 73d90f7a29a32397e2e7a2f1279816baba63b8cf
Author: Hans Petter Jansson <hpj cl no>
Date: Fri Jun 26 18:03:41 2020 +0200
terminal: Remove leftover code from old sixel patch
src/vteseq.cc | 54 ------------------------------------------------------
1 file changed, 54 deletions(-)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 51bb3732..8552d0a8 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -8874,59 +8874,5 @@ Terminal::XTERM_WM(vte::parser::Sequence const& seq)
}
}
-#if 0
-/* FIXME-hpj */
-
-/* graphics attributes */
-static void
-vte_sequence_handler_graphics_attributes(VteTerminalPrivate *that, GValueArray *params)
-{
- if (params == NULL || params->n_values != 3) {
- return;
- }
- GValue* value = g_value_array_get_nth(params, 0);
- if (!G_VALUE_HOLDS_LONG(value)) {
- return;
- }
- auto param = g_value_get_long(value);
-
- char buf[128];
- long arg1, arg2;
- arg1 = arg2 = -1;
- if (params->n_values > 1) {
- value = g_value_array_get_nth(params, 1);
- if (G_VALUE_HOLDS_LONG(value)) {
- arg1 = g_value_get_long(value);
- }
- }
- if (params->n_values > 2) {
- value = g_value_array_get_nth(params, 2);
- if (G_VALUE_HOLDS_LONG(value)) {
- arg2 = g_value_get_long(value);
- }
- }
-
- switch (arg1) {
- case 1:
- switch (arg2) {
- case 1:
- that->feed_child(_VTE_CAP_CSI "?1;0;256S", -1);
- break;
- case 2:
- that->feed_child(_VTE_CAP_CSI "?1;0;256S", -1);
- break;
- case 3:
- that->feed_child(_VTE_CAP_CSI "?1;3;0S", -1);
- break;
- default:
- break;
- }
- default:
- g_snprintf(buf, sizeof(buf), _VTE_CAP_CSI "?%ld;1;0S", arg1);
- break;
- }
-}
-#endif
-
} // namespace terminal
} // namespace vte
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]