public
Fork of rubyphunk/rspactor
Description: This is a fork of the original pre Cocoa version of rspactor. To keep it up to date with new rspec versions.
Homepage: http://rubyphunk.com/tags/rspactor
Clone URL: git://github.com/pelle/rspactor.git
rspactor / tst.rb
100644 28 lines (24 sloc) 0.485 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require "curses"
 
module Curses
  def self.program
    main_screen = init_screen
    noecho
    cbreak
    curs_set(0)
    main_screen.keypad = true
    yield main_screen
  end
end
 
Curses.program do |scr|
  scr.setpos(scr.maxy - 2, 0)
  scr.maxx.times { scr.addstr("-") }
  
  scr.setpos(scr.maxy - 1, 0)
  scr.addstr("Mode: Run all specs")
  
  # 100.times do
  # scr.setpos(rand(max_y), rand(max_x))
  # scr.addstr(str)
  # end
  loop do
    scr.addstr(scr.getch.to_s)
  end
end