Sophie

Sophie

distrib > Mandriva > cooker > i586 > by-pkgid > eede1088262777189a3d3f16cb3dc560 > files > 139

garlic-1.6-6.i586.rpm

<html>

<head>
<title>
REF, REFRESH
</title>
</head>

<h1 align=center>

REF, REFRESH

</h1>

<hr size="3">

<font color=#880000>
<b>
NAME
<br>
</b>
</font>


REF, REFRESH - switch refreshing on or off.
<br><br>


<font color=#880000>
<b>
SYNOPSIS
<br>
</b>
</font>


REF
<br>
REFRESH
<br>
REF OFF
<br>
REFRESH OFF
<br><br>


<font color=#880000>
<b>
DESCRIPTION
<br>
</b>
</font>


Most of garlic commands require redrawing of the main window. This may slow
down the execution of the program. To save some time, the refreshing may be
switched off. Just execute the command:
<br><br>

ref off
<br><br>

(the long form is REFRESH OFF). After that, a number of time-consuming
commands may be executed, and refreshing may be turned on again.
To switch on refreshing, execute the command REF without the keyword OFF:
<br><br>

ref
<br><br>

This trick is very useful with scripts. Put the command REF OFF close to the
top of the script and do not forget to put the command REF (without the
keyword OFF!) to the bottom of the script. Try the sample scripts
<a href="http://garlic.mefos.hr/garlic-1.6/tutorial/script1.html">
atoms.script
</a>
,
<a href="http://garlic.mefos.hr/garlic-1.6/tutorial/script2.html">
bonds.script
</a>
and
<a href="http://garlic.mefos.hr/garlic-1.6/tutorial/script3.html">
colors.script
</a>
. The refreshing trick is used in these scripts.
<br><br>

If refreshing is switched off, you will see the message in the middle of the
main garlic window (yellow text "Refreshing off" on red background).
<br><br>

<img src="ref_off.gif">
<br><br>


<hr size="3">

</html>