blob: 21c2a8218c96dc2938ca50f5690cc657c1cb255a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
include <gset.h>
include <ttset.h>
include "stdgraph.h"
# STG_REACTIVATEWS -- Reactivate the workstation, i.e., enable graphics.
procedure stg_reactivatews (flags)
int flags # action flags (handled by cursor mode)
int junk
int ttstati(), ttyctrl(), and()
extern stg_onerror()
include "stdgraph.com"
begin
if (g_active == NO) {
junk = ttyctrl (g_out, g_tty, "OW", 1)
# Post error handler to be called if we abort.
call onerror (stg_onerror)
g_active = YES
g_enable = YES
# Must disable stty ucaseout mode when in graphics mode, else
# plotting commands may be modified by the terminal driver.
g_ucaseout = ttstati (g_out, TT_UCASEOUT)
if (g_ucaseout == YES)
call ttseti (g_out, TT_UCASEOUT, NO)
# Clear the graphics screen?
if (and (flags, AW_CLEAR) != 0)
call stg_clear (0)
call flush (g_out)
}
end
|