Bug 91335

Summary: Repsonse to 'CSI c' contains random bytes.
Product: kmscon Reporter: andreas_freimuth
Component: libtsmAssignee: David Herrmann <dh.herrmann>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.