# AG\_TABWRAPPER

> [HTML Version](ag_tabwrapper.htm)

_Added November 2025_

**tab(-10,AG\_TABWRAPPER); chr(#); ... ; chr(127);)**     [Tab(-10,x) Syntax Notes](ag_xxx_syntax-notes.md)

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](subroutine-print-pairs.md).

**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](ag_setcursor.md), you could replace TAB(-1,160); chr(#) with TAB(-10,AG\_TABWRAPPER); chr(160); chr(#); chr(127);

**See Also**

•	[MX\_AGWRAPPER](mx_agwrapper.md)[XS](keyword-types.md)

**History**

2025 November, A-Shell 7.0.1781:  Function added to A-Shell,