[Ttssh2-commit] [6307] r6306 試験用スクリプト

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2016年 2月 19日 (金) 10:49:56 JST


Revision: 6307
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6307
Author:   doda
Date:     2016-02-19 10:49:56 +0900 (Fri, 19 Feb 2016)
Log Message:
-----------
r6306 試験用スクリプト

Revision Links:
--------------
    http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6306

Added Paths:
-----------
    trunk/tests/
    trunk/tests/colorchange-test.rb

-------------- next part --------------
Added: trunk/tests/colorchange-test.rb
===================================================================
--- trunk/tests/colorchange-test.rb	                        (rev 0)
+++ trunk/tests/colorchange-test.rb	2016-02-19 01:49:56 UTC (rev 6307)
@@ -0,0 +1,34 @@
+#!/usr/bin/ruby
+
+def bcetest(oscType, updateStr, setStr)
+  print updateStr
+  print "\e[J"
+  print setStr
+  puts "===== OSC #{oscType} test ====="
+  print "=>"
+  sleep 1
+
+  print "\e[K EL"
+  sleep 1
+
+  print "\n\n"
+  print updateStr
+  puts "BCE Updated\n"
+  print "=>"
+  sleep 1
+
+  print "\e[K EL"
+  sleep 1
+
+  print "\e[m\n\n"
+end
+
+print "\e[H\e[2J"
+
+bcetest(4, "\e[48;5;17m", "\e]4;17;#550000\e\\")
+bcetest(104, "\e[48;5;17m", "\e]104;17\e\\")
+bcetest(11, "\e[m", "\e]11;#550000\e\\")
+bcetest(111, "\e[m", "\e]111\e\\")
+
+sleep 1
+print "\e]104;200\e\\\e]111\e\\\e[m"


Property changes on: trunk/tests/colorchange-test.rb
___________________________________________________________________
Added: svn:executable
   + *



Ttssh2-commit メーリングリストの案内
Back to archive index