Bug 91335 - Repsonse to 'CSI c' contains random bytes.
Summary: Repsonse to 'CSI c' contains random bytes.
Status: NEW
Alias: None
Product: kmscon
Classification: Unclassified
Component: libtsm (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Herrmann
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-14 15:47 UTC by andreas_freimuth
Modified: 2015-07-14 15:47 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description andreas_freimuth 2015-07-14 15:47:16 UTC
'\e[c' returns an two extra bytes.

This Patch Fixes it.

diff --git a/src/tsm/tsm-vte.c b/src/tsm/tsm-vte.c
index ec8a936..43fd5b2 100644
--- a/src/tsm/tsm-vte.c
+++ b/src/tsm/tsm-vte.c
@@ -651,7 +651,7 @@ void tsm_vte_hard_reset(struct tsm_vte *vte)
 
 static void send_primary_da(struct tsm_vte *vte)
 {
-       vte_write(vte, "\e[?60;1;6;9;15c", 17);
+       vte_write(vte, "\e[?60;1;6;9;15c", 15);
 }
 
 /* execute control character (C0 or C1) */


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.