Please enable JavaScript to view this site.

A-Shell Development History

ATE enhancement: You can now customize a session launch by adding additional login commands to those contained in the profile. This is done by appending "^M" followed by any keyboard characters to be passed to the new session after the profile name on the command line (using the ^ syntax for any additional line breaks or control characters).

For example:

<path>\bin\ashw32.exe -atecfg <profilename> ^M<additional chars>

Everything after the "^M" is processed by TELNET.LIT and sent to the host after the connection is made and the login commands stored in the session profile have been sent.

To take a more concrete example, to launch a new ATE session from within the application, using the current profile but appending the startup command sequence 1<CR>2<CR> to it, you could execute:

xcall MIAMEX, MX_SHELLEX, STATUS, "$ASHELL", "", "-atecfg ""%ATEPROFILE%"" ^m1^m2^m", "", SW_SHOW, 0, "C"

Or, you could add a "Launch new session" command (again, with the additional 1<CR>2<CR> sequence) to the menu with:

XCALL AUI, AUI_MENU, MNUOP_ADD, MID, "New Session", MBST_ENABLE, MBF_CMDLIN, "%MIAME%\bin\ashw32.exe -atecfg ""%ATEPROFILE%"" ^m1^m2^m", "", STATUS

Note that this requires TELNET.LIT 2.0(141) or higher.