null+****@clear*****
null+****@clear*****
2012年 7月 13日 (金) 23:29:02 JST
Kouhei Sutou 2012-07-13 23:29:02 +0900 (Fri, 13 Jul 2012) New Revision: f89d7030fc2394b9b767bf2a0f09d787c00d9bca https://github.com/groonga/grntest/commit/f89d7030fc2394b9b767bf2a0f09d787c00d9bca Log: Name \e[1A Modified files: lib/groonga/tester.rb Modified: lib/groonga/tester.rb (+5 -1) =================================================================== --- lib/groonga/tester.rb 2012-07-13 23:23:52 +0900 (72f64fc) +++ lib/groonga/tester.rb 2012-07-13 23:29:02 +0900 (f004cd8) @@ -1122,7 +1122,7 @@ EOF class InplaceReporter < StreamReporter def finish_suite(suite_name) - print("\e[1A" * n_using_lines) + up_n_lines(n_using_lines) clear_line end @@ -1135,6 +1135,10 @@ EOF end private + def up_n_lines(n) + print("\e[1A" * n_using_lines) + end + def clear_line print("\r") reset_current_column -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...ダウンロード