Please enable JavaScript to view this site.

A-Shell Reference

Added November 2025

tab(-10,AG_TABWRAPPER); chr(#); ... ; chr(127);)     Tab(-10,x) Syntax Notes

AG_TABWRAPPER (117) is used to wrap 'problematic' TAB(-1,#) commands for delivery to the client without interfering with the screen tracking logic on the server side. May be used with any TAB(-1,#) command, but is mainly useful with the mouse cursor TAB commands that are followed by raw data bytes, e.g. TAB(-1,158), TAB(-1,160)  and TAB(-1,162).

This function has both a subroutine and a print tab implementation.

Response

none

Comments

In general, to convert from:

TAB(-1,#); <trailer bytes>;

use:

TAB(-10,AG_TABWRAPPER); chr(#); <trailer bytes>; chr(127);

Example

The equivalent of:

TAB(-1,158); "C"; chr(34); chr(27); chr(30);

is:

TAB(-10,AG_TABWRAPPER); chr(158); "C"; chr(34); chr(27); chr(30); chr(127);

Or, as an alternative to AG_SETCURSOR, you could replace TAB(-1,160); chr(#) with TAB(-10,AG_TABWRAPPER); chr(160); chr(#); chr(127);

See Also

History

2025 November, A-Shell 7.0.1781:  Function added to A-Shell