~ubuntu-branches/ubuntu/gutsy/plotutils/gutsy

« back to all changes in this revision

Viewing changes to libplot/t_erase.c

  • Committer: Bazaar Package Importer
  • Author(s): Floris Bruynooghe
  • Date: 2007-05-10 19:48:54 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070510194854-mrr3lgwzpxd8hovo
Tags: 2.5-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of the GNU plotutils package.  Copyright (C) 1995,
 
2
   1996, 1997, 1998, 1999, 2000, 2005, Free Software Foundation, Inc.
 
3
 
 
4
   The GNU plotutils package is free software.  You may redistribute it
 
5
   and/or modify it under the terms of the GNU General Public License as
 
6
   published by the Free Software foundation; either version 2, or (at your
 
7
   option) any later version.
 
8
 
 
9
   The GNU plotutils package is distributed in the hope that it will be
 
10
   useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
   General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU General Public License along
 
15
   with the GNU plotutils package; see the file COPYING.  If not, write to
 
16
   the Free Software Foundation, Inc., 51 Franklin St., Fifth Floor,
 
17
   Boston, MA 02110-1301, USA. */
 
18
 
1
19
#include "sys-defines.h"
2
20
#include "extern.h"
3
21
 
4
22
bool
5
 
#ifdef _HAVE_PROTOS
6
 
_t_erase_page (S___(Plotter *_plotter))
7
 
#else
8
 
_t_erase_page (S___(_plotter))
9
 
     S___(Plotter *_plotter;)
10
 
#endif
 
23
_pl_t_erase_page (S___(Plotter *_plotter))
11
24
{
12
25
  /* erase: emit ESC C-l, i.e. ^[^l */
13
26
  _write_string (_plotter->data, "\033\014");
14
 
  _plotter->tek_mode = MODE_ALPHA; /* erasing enters alpha mode */
 
27
  _plotter->tek_mode = TEK_MODE_ALPHA; /* erasing enters alpha mode */
15
28
 
16
29
  /* Note: kermit Tek emulator, on seeing ESC C-l , seems to enter graphics
17
 
     mode, not alpha mode.  Maybe we should specify MODE_PLOT above,
18
 
     instead of MODE_ALPHA?  The above won't hurt though, because we don't
19
 
     use MODE_ALPHA anyway (we'll have to switch away from it). */
 
30
     mode, not alpha mode.  Maybe we should specify TEK_MODE_PLOT above,
 
31
     instead of TEK_MODE_ALPHA?  The above won't hurt though, because we don't
 
32
     use TEK_MODE_ALPHA anyway (we'll have to switch away from it). */
20
33
 
21
34
  /* set background color (a no-op unless we're writing to a kermit
22
35
     Tektronix emulator, see t_color.c) */
23
 
  _t_set_bg_color (S___(_plotter));
 
36
  _pl_t_set_bg_color (S___(_plotter));
24
37
 
25
38
  return true;
26
39
}