Debian Codegraph @

packages/seacas/applications/blot/grabrt.f

raw
1 C Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 C NTESS, the U.S. Government retains certain rights in this software.
4 C
5 C See packages/seacas/LICENSE for details
6
7 C=======================================================================
8 LOGICAL FUNCTION GRABRT ()
9 C=======================================================================
10
11 C --*** GRABRT *** (GRPLIB) Check cancel function (PLT)
12 C -- Written by Amy Gilkey - revised 04/28/87
13 C --
14 C --GRABRT checks the cancel flag. If it is set, it aborts pending
15 C --graphics and returns the terminal to alphanumeric mode.
16 C --In any case, the value of the cancel flag is returned as the
17 C --function value.
18
19 C --Routines Called:
20 C -- CPUIFC - (PLTLIB) Check interrupt flag
21 C -- PLTBEL - (PLTLIB) Ring bell
22 C -- PLTBGN - (PLTLIB) Erase display surface
23 C -- PLTFLU - (PLTLIB) Flush graphics buffer and set alphanumeric mode
24 C -- GRSNAP - (GRPLIB) Handle device frame snapping
25
26 LOGICAL CPUIFC
27
28 C --Return cancel flag
29 GRABRT = CPUIFC (.FALSE.)
30
31 IF (GRABRT) THEN
32 C --Abort plot that is being snapped
33 CALL GRSNAP ('ABORT', 0)
34
35 C --Flush buffer (do not erase screen), ring bell, set alphanumeric mode
36 CALL PLTFLU
37 CALL PLTBEL
38 CALL PLTFLU
39
40 C --Send abort message
41 WRITE (*, '(1X, A)') '*** Plot set aborted ***'
42 END IF
43
44 RETURN
45 END