diff options
Diffstat (limited to 'examples/001-UnBind.rb')
-rw-r--r-- | examples/001-UnBind.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/001-UnBind.rb b/examples/001-UnBind.rb new file mode 100644 index 0000000..82177e6 --- /dev/null +++ b/examples/001-UnBind.rb @@ -0,0 +1,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( )
\ No newline at end of file |