DEC Text Processing Utility Program Development

5.6 Using DECTPU Startup Files

In EVE, the code that implements the initialization sequence calls

TPU$LOCAL_INIT before executing your command or initialization files. EVE defines this procedure but leaves it empty. The user can use this procedure in a command file to contain DECTPU statements that implement private initializations.

You can see the code that implements TPU$LOCAL_INIT in EVE in

SYS$EXAMPLES:EVE$CORE.TPU.

A section file that implements a layered application should assign values to the following special variables in the procedure TPU$INIT_PROCEDURE:

TPU$X_MESSAGE_BUFFER or MESSAGE_BUFFER

TPU$X_SHOW_BUFFER or SHOW_BUFFER

TPU$X_SHOW_WINDOW or INFO_WINDOW

If you write a section file that extends the EVE section file, EVE provides six variables (three pairs of synonyms) to be used by layered applications. Although DECTPU automatically declares the variables, the application must assign a value to one of the synonyms in each pair. If you choose to write your own application, your application must contain these structures and procedures.

Table 5–2 shows the names and uses of these variables.

Table 5–2 Special DECTPU Variables That Require a Value from a Layered Application

 

Synonym Provided

 

 

 

for Backward

Data Type

 

Recommended Name

Compatibility

Structure

How DECTPU Uses the Variable

 

 

 

 

TPU$X_MESSAGE_

MESSAGE_BUFFER

Buffer

DECTPU writes messages in this buffer. If the

BUFFER

 

 

MESSAGE_BUFFER is associated with a window

 

 

 

that is mapped to the screen, DECTPU updates the

 

 

 

window. If the application does not assign a buffer

 

 

 

to this variable, DECTPU writes messages to the

 

 

 

screen.

TPU$X_SHOW_

SHOW_BUFFER

Buffer

DECTPU writes information stored by the SHOW

BUFFER

 

 

built-in in this buffer.

TPU$X_SHOW_

INFO_WINDOW

Window

DECTPU displays information stored by the SHOW

WINDOW

 

 

built-in in this window.

 

 

 

 

If you want to use the SHOW built-in procedure in your application, you must create these special variables that DECTPU uses for SHOW.

5.6.6 Using Command Files

A command file is a DECTPU source file that can contain procedures, key definitions, and other DECTPU executable statements. You can have any number of command files in your directory. You might want to write one command file that customizes your editor for programming in Pascal, another command file that customizes your editor for text editing, and so on. If you have several command files, give them names that remind you of their contents. If you have one command file that you use most of the time, name it TPU$COMMAND.TPU.

The command to invoke DECTPU with a command file is:

$ EDIT/TPU/COMMAND [[= filespec]]

5–24DEC Text Processing Utility Program Development

Page 124
Image 124
Compaq AA-PWCBD-TE manual Using Command Files, Sys$Exampleseve$Core.Tpu, $ EDIT/TPU/COMMAND = filespec

AA-PWCBD-TE specifications

The Compaq AA-PWCBD-TE is a highly regarded laptop battery designed to provide reliable power to a range of Compaq laptop models. As technology continues to evolve, the necessity for efficient and long-lasting batteries becomes increasingly important, especially for students, professionals, and anyone reliant on portable computing.

One of the standout features of the AA-PWCBD-TE is its impressive capacity, designed to enhance the performance of your device. With a power capacity of around 5200 mAh, this battery is engineered to provide extended usage times, allowing users to work on the go without frequent interruptions for recharging. The battery supports efficient energy management, contributing to the overall longevity of the device.

Additionally, the AA-PWCBD-TE integrates advanced lithium-ion technology, which is favored for its reliability and minimal memory effect. Lithium-ion batteries typically offer a higher energy density compared to older technologies, meaning they can store more energy in a smaller size. This technology also supports faster charging times, making it a convenient solution for busy users.

Safety is another vital characteristic of the AA-PWCBD-TE. It features built-in protection against overcharging, overheating, and short-circuit conditions, which helps ensure the safety of both the battery and the device itself. This level of protection is crucial, especially in professional environments where equipment failure can lead to productivity losses.

Compatibility is also a key aspect of the AA-PWCBD-TE, as it is designed to fit a variety of Compaq laptop models. Users can easily determine whether this battery is suitable for their specific model, simplifying the buying process and ensuring optimal performance.

In terms of weight and dimensions, the AA-PWCBD-TE is designed to be lightweight and compact, adding minimal bulk to the laptop while still delivering powerful performance. Users can enjoy the balance of efficiency and portability, making it an ideal choice for those who travel frequently or require a battery that doesn't compromise on power.

Overall, the Compaq AA-PWCBD-TE stands out as a dependable and efficient laptop battery that enhances the user experience. With its impressive capacity, cutting-edge technology, and safety features, it is a valuable accessory for anyone looking to improve their mobile computing capabilities.