git-svn make executable
[texmacs.git] / src / plugins / asymptote / bin / perl-tm_asy
blob331144bcfe1283aa037fe7fdb574e259b5f3c5b3
1 #!/usr/bin/perl
3 #==============================================================================
4 # MODULE : perl-tm_asy
5 # COPYRIGHT : (C) Yann Dirson <ydirson at altern dot org>.
6 #==============================================================================
8 # This software falls under the GNU general public license version 3 or later.
9 # It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
10 # in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
12 ###############################################################################
14 use strict;
15 use warnings;
17 my $VERSION = "0.1";
19 use constant {
20 DATA_BEGIN => "\x{2}",
21 DATA_END => "\x{5}",
22 DATA_ESCAPE => "\x{1B}",
25 ####
27 open (OUTPUT, ">&STDOUT");
29 sub output($) {
30 my ($str) = @_;
31 print OUTPUT DATA_BEGIN, 'verbatim:', $str, DATA_END;
32 OUTPUT->flush;
35 sub psoutput($) {
36 my ($str) = @_;
37 output ("ps:$str");