aboutsummaryrefslogtreecommitdiff
path: root/examples/001-UnBind.rb
blob: 82177e6abb6b2159874ed3af3cdd9fc9f18de12c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/ruby

$:.unshift( ".." )

require "ivy"

ivy = IVY.new( "TestRbUnbind", "TestRbUnbind Ready" )
ivy.start( )

msg = ivy.bindmsg( nil, "^ub" ) { |app, data, tab|
  puts "#{app.applicationName} (host #{app.applicationHost}) sent unbind message, unbinding to ^ub"
  msg.unbindmsg( )
}

ivy.mainloop( )