From 312bafb9a87596e89f7383e063d26c1765e3f590 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Tue, 28 Jan 2014 09:28:39 +0000
Subject: [PATCH] Sent Shift In (\x0f) after sending the test music sequence.

ANSI music terminates with a \x0e (Shift Out) which, for terminals that
support it, switches to the G1 character set.  This change switches back
to the G0 character set (and deletes the white sun with rays character) to
avoid leaving the console in the G1 set.

Should fix problems reported with KnK on the Linux console.
---
 xtrn/knk/knk.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xtrn/knk/knk.js b/xtrn/knk/knk.js
index ed4987909c..b3c27c54c6 100644
--- a/xtrn/knk/knk.js
+++ b/xtrn/knk/knk.js
@@ -148,9 +148,10 @@ function show_intro()
 	if(getkeys("PQ")=='Q')
 		exit(0);
 
-	console.crlf();
 	console.attributes=MAGENTA;
 	playmusic("MFT64L64O5CDP32CDP32CDP16");
+	console.write("\x0f\b \b");
+	console.crlf();
 	console.attributes=GREEN;
 	console.writeln("If your terminal supports ANSI sound, you just heard some.");
 	console.writeln("If it doesnt, you just saw some wierd characters.");
-- 
GitLab