4.8. - gr
select PseudoGraphics terminal type
lets you identify the terminal in use so that C-PLOT can send the proper control codes to erase the screen and draw PseudoGraphics. You also can select the proper alternate character set for PseudoGraphics.
gr gr terminal_name or gr terminal_name character_setC-PLOT normally obtains the terminal name from the environment exported by the shell, and you won't need to use this command. However, if the name from the environment is wrong or absent, you can use this command to set the terminal type from within C-PLOT. You also can use the
gr
command to select a PseudoGraphics character
set independently of the terminal type.
The
terminal_name
option determines which control codes are
sent to the terminal to erase the screen and position the cursor for
drawing PseudoGraphics.
The
character_set
option determines
which characters are used to draw the PseudoGraphics axes and points.
For some of the more common terminal types, the terminal name and
character set name are the same.
Without an argument,
gr
lists the names associated with each
of the built-in PseudoGraphics character sets, prints the current
terminal name and character-set name and prompts you for new names.
Entering
<return>
retains the current names.
Entering one name
(or one argument after
gr
) selects a new terminal type.
If the
name matches one of the character sets, that set is selected also.
If you enter a second name (or argument) and it is a valid character-set
name, that set is selected.
An invalid name selects the dumb set.
Refer to Appendix A for details on PseudoGraphics implementation, including a list of valid character-set names. Valid terminal names are system dependent. On "BSD UNIX" systems, they are in the file /etc/termcap. On System V installations, look in the subdirectories of /usr/lib/terminfo.