source: branches/port5/lib/macros/toggle_color.amc

Last change on this file was 2246, checked in by westram, 21 years ago

fixed perl path
added -w

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 344 bytes
Line 
1#!/usr/bin/perl -w
2use lib "$ENV{'ARBHOME'}/lib/";
3use ARB;
4
5$gb_main = ARB::open(":","r");
6if (! $gb_main ) {
7    $error = ARB::get_error();
8    print ("$error\n");
9    exit 0;
10}
11
12$new_val = 1-BIO::remote_read_awar($gb_main,"ARB_NT","color_groups/use");
13BIO::remote_awar($gb_main,"ARB_NT","color_groups/use", $new_val);
14
15ARB::close($gb_main);
Note: See TracBrowser for help on using the repository browser.