Contents

VT

VT

__VT_backspace

Syntax

void __VT_backspace(void* SPtr, unsigned n)

Description

This deletes n characters underneath the cursor and to the left of the cursor (towards the beginning of the line).

For @subheading example , if n is 1, it will delete the character under the cursor and move to the left by one character.

It does not wrap around.

See Also

__VT_clreol() (see section __VT_clreol)

__VT_chide

Syntax

void __VT_chide(void* SPtr)

Description

Hides the cursor

See Also

__VT_cshow() (see section __VT_cshow)

__VT_clreol

Syntax

void __VT_clreol(void *SPtr)

Description

This clears all of the characters from the current cursor location to the end of the line.

See Also

__VT_backspace() (see section __VT_backspace)

__VT_cshow

Syntax

void __VT_cshow(void* SPtr)

Description

Makes the cursor visible again

See Also

__VT_chide() (see section __VT_chide)

__VT_currest

Syntax

void __VT_currest(void* SPtr)

Description

This restores the previous state of the cursor:

(Saves and restores can not be nested at this time)

__VT_cursave

Syntax

void __VT_cursave(void* SPtr)

Description

This save the current state of the cursor:

__VT_init

Syntax

void __VT_init (void *SPtr)

Description

This routine is used to set up any neccessary structures for the virtual terminal.

__VT_ins

Syntax

void __VT_ins(void* SPtr,unsigned n)

Description

Insert n spaces to the right of the cursor

__VT_label_destroy

Syntax

void __VT_label_destroy(__VT_label_t* Ptr)

Description

Frees all of Ptr's resources.

__VT_label_new

Syntax

__VT_label_t* __VT_label_new(const char* FirstStr)

Description

If FirstStr is defined, it will be printed to the label.

Return Value

NULL on error, otherwise a pointer to the label item

__VT_label_text

Syntax

void __VT_label_text(__VT_label_t* VPtr, const char *s)

Description

Prints a message to the label pointed to by VPtr.

__VT_reset

Syntax

void __VT_reset(void* SPtr)

Description

This resets the virtual terminal to its initial settings, including the scrolling region, cursor visibility, color palette, and clears the screen.

__VT_scrollreset

Syntax

void __VT_scrollreset(void* SPtr)

Description

Resets the scrolling region. The scrolling region will be set from the top of the display window to the bottom of the display window.

__VT_scrreg

Syntax

void __VT_scrreg(void* SPtr, int top, int bot)

Description

Set the scrolling region for the window. If bot is -1, then the bottom will be set to the bottom of the window.


Author: Randall Maastop