SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-67
LOCK / UNLOCK
cache-taskid
specifies the cache, represented by taskid, into which the file is loaded.
Considerations
a programmatic interface also allows loading, deleting, and displaying of the cache.
The interface uses this CONTROLBUF protocol.
Example
The statements in this example set up a cache, load it with a file named MYFILE, and
display the file in a window.
LOCK / UNLOCK
The LOCK statement locks the keyboard. Use the UNLOCK statement to unlock it.
The LOCK statement locks the keyboard associated with the SeeView terminal. This
statement is primarily intended for script implementations that make it desirable to
keep the keyboard locked while a script is being executed.
Normally when the Return or Shift-Return key is pressed, the SeeView program
immediately unlocks the keyboard so that the user can proceed to type ahead while a
script is executing. However, certain situations might make it undesirable for the
keyboard to remain unlocked while the script is executing, especially if doing so might
confuse the user. Thus you can use the LOCK statement to control keyboard locking.
Use of the LOCK statement places the responsibility of unlocking the keyboard with the
script writer. The UNLOCK statement performs this keyboard unlock function. When in
doubt, to keep users productive allow concurrency by not locking the keyboard.
Table 9-3. CONTROLBUF Protocol
Operation Buffer Meaning Size in Bytes
0 Task's current volume/subvolume 16
1 Delete cache messages 2
2 Load cache with filename 24
3 Cache offset to display in window 2
4 Alter queueing mode 2
TASK tutorial:=$null; {dummy task
LOAD MYFILE,tutorial;
WINDOW tutorial CACHE;
LOCK
UNLOCK