307
Copyright 2010-2011 Schellenbach & Assoc., Inc. AccuTerm 7 Help

AccuTerm 7 Help - Zumasys€¦ · Paste method ... 12 AccuTerm 7 Help ... AccuTerm Main Menu . AccuTerm 7 , . to install AccuTerm 7. the . by clicking the ).,,,,, ,, , ,

Embed Size (px)

Citation preview

Copyright 2010-2011 Schellenbach & Assoc., Inc.

AccuTerm 7 Help

AccuTerm 7 Help2

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Table of Contents

Foreword 0

Part I Welcome to AccuTerm 7 15

................................................................................................................................... 151 Introduction.......................................................................................................................................................... 16Features of AccuTerm 7 .......................................................................................................................................................... 17Hardware and Software Requirements .......................................................................................................................................................... 18Installing AccuTerm 7

................................................................................................................................... 192 Running AccuTerm.......................................................................................................................................................... 20Connection Wizard ......................................................................................................................................................... 21Telnet Connection......................................................................................................................................................... 21Secure Shell Connection......................................................................................................................................................... 21Serial Port Connection

......................................................................................................................................... 21Serial Port Settings......................................................................................................................................................... 22Modem (dialup) Connection......................................................................................................................................................... 22Terminal Type.......................................................................................................................................................... 23Reconnect

................................................................................................................................... 233 Product Activation

................................................................................................................................... 234 AccuTerm User Interface.......................................................................................................................................................... 24Keyboard Commands

................................................................................................................................... 255 AccuTerm Main Menu

................................................................................................................................... 316 Configuring AccuTerm.......................................................................................................................................................... 32General Settings .......................................................................................................................................................... 33File & Folder Settings .......................................................................................................................................................... 33Connection Settings ......................................................................................................................................................... 34Device Settings:Telnet......................................................................................................................................................... 36Device Settings: SSH

......................................................................................................................................... 37Key Management......................................................................................................................................................... 39Device Settings: Serial Port......................................................................................................................................................... 40Device Settings: Modem.......................................................................................................................................................... 41Terminal Settings ......................................................................................................................................................... 43Screen Settings

......................................................................................................................................... 45Color Settings................................................................................................................................... 47Attribute Colors

................................................................................................................................... 47Palette Settings

......................................................................................................................................... 48Background Settings......................................................................................................................................................... 48Keyboard Settings

......................................................................................................................................... 49Keyboard Programming......................................................................................................................................................... 50Font Settings......................................................................................................................................................... 51Sound Settings.......................................................................................................................................................... 51Printer Settings .......................................................................................................................................................... 53Clipboard Settings .......................................................................................................................................................... 54Mouse Settings .......................................................................................................................................................... 54File Transfer Settings .......................................................................................................................................................... 56TCL Rules .......................................................................................................................................................... 56Window Settings

................................................................................................................................... 577 Customizing the Menu and Toolbar.......................................................................................................................................................... 58Menu Properties

3Contents

3

Copyright 2010-2011 Schellenbach & Assoc., Inc.

.......................................................................................................................................................... 58Band Properties

.......................................................................................................................................................... 59Tool Properties

.......................................................................................................................................................... 62Image Selection ................................................................................................................................... 628 Auto Dialer................................................................................................................................... 639 File Transfer

.......................................................................................................................................................... 63File Download

.......................................................................................................................................................... 64File Upload

.......................................................................................................................................................... 66Import & Export MultiValue Data ................................................................................................................................... 6710 Data Capture................................................................................................................................... 6711 Troubleshooting................................................................................................................................... 6912 Contacting AccuSoft

Part II AccuTerm 7 Automation 71

................................................................................................................................... 711 Macro Recorder

................................................................................................................................... 712 Scripting.......................................................................................................................................................... 73Running a Script .......................................................................................................................................................... 74Debugging a Script .......................................................................................................................................................... 75Controlling AccuTerm with Scripts .......................................................................................................................................................... 76Script Language Extensions ......................................................................................................................................................... 76Extensions

......................................................................................................................................... 76AppActivate statement

......................................................................................................................................... 76AppClose statement

......................................................................................................................................... 77AppFind function

......................................................................................................................................... 77AppGetActive function

......................................................................................................................................... 77AppGetPosition statement

......................................................................................................................................... 77AppGetState function

......................................................................................................................................... 77AppHide statement

......................................................................................................................................... 78AppList statement

......................................................................................................................................... 78AppMaximize statement

......................................................................................................................................... 78AppMinimize statement

......................................................................................................................................... 78AppMove statement

......................................................................................................................................... 78AppRestore statement

......................................................................................................................................... 78AppSetState statement

......................................................................................................................................... 79AppShow statement

......................................................................................................................................... 79AppSize statement

......................................................................................................................................... 79Chain statement

......................................................................................................................................... 79Command() function

......................................................................................................................................... 79FileExists function

......................................................................................................................................... 80Item function

......................................................................................................................................... 80ItemCount function

......................................................................................................................................... 80Line function

......................................................................................................................................... 80LineCount function

......................................................................................................................................... 80OpenFileName function

......................................................................................................................................... 81Pause statement

......................................................................................................................................... 81Random function

......................................................................................................................................... 81SaveFileName function

......................................................................................................................................... 81Shell function

......................................................................................................................................... 81Sleep statement

......................................................................................................................................... 82Word function

......................................................................................................................................... 82WordCount function................................................................................................................................... 823 Object Reference

AccuTerm 7 Help4

Copyright 2010-2011 Schellenbach & Assoc., Inc.

.......................................................................................................................................................... 83The AccuTerm Object ......................................................................................................................................................... 84AccuTerm properties

......................................................................................................................................... 84ActiveSession property

......................................................................................................................................... 85AutoClose property

......................................................................................................................................... 85Common property................................................................................................................................... 85Common collection

......................................................................................................................................... 85CustomMouseTable property

......................................................................................................................................... 86FuncBarPos property

......................................................................................................................................... 86FuncBarStyle property

......................................................................................................................................... 86FuncBarVisible property

......................................................................................................................................... 86Height property

......................................................................................................................................... 86LargeIcons property

......................................................................................................................................... 87LayoutFilename property

......................................................................................................................................... 87Left property

......................................................................................................................................... 87Menu property

......................................................................................................................................... 87NoCloseWarning property

......................................................................................................................................... 87PhoneBookName property

......................................................................................................................................... 88ProductLicenseType property

......................................................................................................................................... 88ProductName property

......................................................................................................................................... 88ProductRelease property

......................................................................................................................................... 88ProductSerialNumber property

......................................................................................................................................... 88RecentListSize property

......................................................................................................................................... 89RegisteredCompany property

......................................................................................................................................... 89RegisteredLocation property

......................................................................................................................................... 89RegisteredUser property

......................................................................................................................................... 89SessionBarVisible property

......................................................................................................................................... 89Sessions property

......................................................................................................................................... 90SingleInstance property

......................................................................................................................................... 90StatusLineVisible property

......................................................................................................................................... 90ToolbarVisible property

......................................................................................................................................... 90Top property

......................................................................................................................................... 90TrackKeyboardState property

......................................................................................................................................... 91Visible property

......................................................................................................................................... 91Width property

......................................................................................................................................... 91WindowState property......................................................................................................................................................... 91AccuTerm methods

......................................................................................................................................... 91Activate method

......................................................................................................................................... 92Arrange method

......................................................................................................................................... 92Close method

......................................................................................................................................... 92Hide method

......................................................................................................................................... 92Move method

......................................................................................................................................... 92OpenLayout method

......................................................................................................................................... 93Resize method

......................................................................................................................................... 93SaveLayout method

......................................................................................................................................... 93SettingsDialog method

......................................................................................................................................... 94Show method

......................................................................................................................................... 94Terminate method.......................................................................................................................................................... 94The Menu Object ......................................................................................................................................................... 95Menu properties

......................................................................................................................................... 95Count property

......................................................................................................................................... 95Item property

......................................................................................................................................... 95MnuBands property......................................................................................................................................................... 95The MnuBand Object

......................................................................................................................................... 96MnuBand properties

5Contents

5

Copyright 2010-2011 Schellenbach & Assoc., Inc.

................................................................................................................................... 96BandType property

................................................................................................................................... 96Caption property (MnuBand)

................................................................................................................................... 96Count property (MnuBand)

................................................................................................................................... 96DockingArea property

................................................................................................................................... 96MnuTools property

................................................................................................................................... 97Name property

................................................................................................................................... 97Visible property (MnuBand)

......................................................................................................................................................... 97The MnuTool Object......................................................................................................................................... 97MnuTool properties

................................................................................................................................... 97Action property

................................................................................................................................... 98Caption property (MnuTool)

................................................................................................................................... 98Checked property

................................................................................................................................... 98Enabled property

................................................................................................................................... 98ToolID property

................................................................................................................................... 98ToolTipText property

................................................................................................................................... 99Visible property (MnuTool)

.......................................................................................................................................................... 99The ScreenBlock Object

.......................................................................................................................................................... 99The Server Object ......................................................................................................................................................... 100Server properties

......................................................................................................................................... 100AccountName property

......................................................................................................................................... 100ErrorMode property

......................................................................................................................................... 100LastError property

......................................................................................................................................... 101LastErrorMessage property

......................................................................................................................................... 101MDName property

......................................................................................................................................... 101ServerID property

......................................................................................................................................... 101ServerName property

......................................................................................................................................... 101UnicodeDelimiters property

......................................................................................................................................... 102UserName property......................................................................................................................................................... 102Server methods

......................................................................................................................................... 102AddItem Method

......................................................................................................................................... 102CallSub method

......................................................................................................................................... 102Connect method

......................................................................................................................................... 102DeleteItem method

......................................................................................................................................... 103Disconnect method

......................................................................................................................................... 103Download method (Server)

......................................................................................................................................... 103Execute method

......................................................................................................................................... 103Export method

......................................................................................................................................... 104FileExists method

......................................................................................................................................... 104IConv method

......................................................................................................................................... 104Import method

......................................................................................................................................... 104IsConnected method

......................................................................................................................................... 105ItemExists function

......................................................................................................................................... 105OConv method

......................................................................................................................................... 105ReadItem method

......................................................................................................................................... 105Readnext method

......................................................................................................................................... 105Upload method (Server)

......................................................................................................................................... 106UnlockItem method

......................................................................................................................................... 106WriteItem method.......................................................................................................................................................... 106The Session Object ......................................................................................................................................................... 110Session properties

......................................................................................................................................... 110Ansi8Bit property

......................................................................................................................................... 111AnsiAppCursor property

......................................................................................................................................... 111AnsiAppKeypad property

......................................................................................................................................... 111Answerback property

AccuTerm 7 Help6

Copyright 2010-2011 Schellenbach & Assoc., Inc.

......................................................................................................................................... 111AsciiDelay property

......................................................................................................................................... 112AsciiEOL property

......................................................................................................................................... 112AutoAnswer property

......................................................................................................................................... 112AutoClose property (Session)

......................................................................................................................................... 112BackgroundPictureFile property

......................................................................................................................................... 112BackgroundPictureMode property

......................................................................................................................................... 113BackgroundTransparency property

......................................................................................................................................... 113Baud property

......................................................................................................................................... 113BkspSendsDel property

......................................................................................................................................... 114BoldFont property

......................................................................................................................................... 114BreakKeyAction property

......................................................................................................................................... 114BytesIn property

......................................................................................................................................... 114BytesOut property

......................................................................................................................................... 115CapsLock property

......................................................................................................................................... 115Caption property

......................................................................................................................................... 115CaptureFileName property

......................................................................................................................................... 115CaptureMode property

......................................................................................................................................... 115CaptureSource property

......................................................................................................................................... 116Changed property

......................................................................................................................................... 116Charset property

......................................................................................................................................... 116Col & Row properties

......................................................................................................................................... 116Color property

......................................................................................................................................... 117Colors() property

......................................................................................................................................... 118Cols & Rows properties

......................................................................................................................................... 118Connected property

......................................................................................................................................... 118ConnectTimeout property

......................................................................................................................................... 118CopyPasteShortcut property

......................................................................................................................................... 119CopySelMode property

......................................................................................................................................... 119CursorType property

......................................................................................................................................... 119CustomMouseTable property (Session)

......................................................................................................................................... 119DataBits property

......................................................................................................................................... 120DefaultCaptureDir property

......................................................................................................................................... 120DefaultXferDir property

......................................................................................................................................... 120DefaultXferMode property

......................................................................................................................................... 120DefaultXferOverwrite property

......................................................................................................................................... 120Device property

......................................................................................................................................... 121DeviceLicenseMode property

......................................................................................................................................... 121DialStatus property

......................................................................................................................................... 121DisableAppMode property

......................................................................................................................................... 122Duplex property

......................................................................................................................................... 122ExtCols & ExtRows properties

......................................................................................................................................... 122ExtMode method

......................................................................................................................................... 122FileName property

......................................................................................................................................... 122FKeys() property

......................................................................................................................................... 123FontName property

......................................................................................................................................... 124FontSize property

......................................................................................................................................... 124GmodeEnable property

......................................................................................................................................... 124Handshake property

......................................................................................................................................... 124Height property (Session)

......................................................................................................................................... 124HistoryRows property

......................................................................................................................................... 125HostName property

......................................................................................................................................... 125HostPort property

......................................................................................................................................... 125HostTermType property

......................................................................................................................................... 125hWnd property

7Contents

7

Copyright 2010-2011 Schellenbach & Assoc., Inc.

......................................................................................................................................... 126Icon property

......................................................................................................................................... 126ID property

......................................................................................................................................... 126InputMode property

......................................................................................................................................... 126KeepaliveInterval property

......................................................................................................................................... 127KermitCRC property

......................................................................................................................................... 127KermitEOL property

......................................................................................................................................... 127KermitErrRetry property

......................................................................................................................................... 127KermitInitRetry property

......................................................................................................................................... 127KermitQuote property

......................................................................................................................................... 128KermitRept property

......................................................................................................................................... 128KermitTimeout property

......................................................................................................................................... 128Left property (Session)

......................................................................................................................................... 128LegibleFont property

......................................................................................................................................... 128LockBaudRate property

......................................................................................................................................... 129LockFKeys property

......................................................................................................................................... 129LockKeyboard property

......................................................................................................................................... 129MapUpperFKeys property

......................................................................................................................................... 129Menu property (Session)

......................................................................................................................................... 130MessageRows property

......................................................................................................................................... 130MouseEnable property

......................................................................................................................................... 130NoAutoWrap property

......................................................................................................................................... 130NormCols & NormRows properties

......................................................................................................................................... 130NormMode method

......................................................................................................................................... 131OnLine property

......................................................................................................................................... 131OverrideModemConfig property

......................................................................................................................................... 131Page property

......................................................................................................................................... 131Pages property

......................................................................................................................................... 131Palette() property

......................................................................................................................................... 132Parity property

......................................................................................................................................... 133PasteEOFChar property

......................................................................................................................................... 133PasteEOFMode property

......................................................................................................................................... 133PasteEOLChar property

......................................................................................................................................... 133PasteEOLMode property

......................................................................................................................................... 133Port property

......................................................................................................................................... 134PrinterColorMode property

......................................................................................................................................... 134PrinterFontBold property

......................................................................................................................................... 134PrinterFontItalic property

......................................................................................................................................... 134PrinterFontName property

......................................................................................................................................... 135PrinterFontSize property

......................................................................................................................................... 135PrinterMode property

......................................................................................................................................... 135PrinterName property

......................................................................................................................................... 135PrinterOrientation property

......................................................................................................................................... 136PrinterPaperSize property

......................................................................................................................................... 136PrinterPaperSource property

......................................................................................................................................... 137PrinterTimeout property

......................................................................................................................................... 137PrintJobEject property

......................................................................................................................................... 137PrintScreenBackground property

......................................................................................................................................... 138PrintScreenEject property

......................................................................................................................................... 138ProtectAttr property

......................................................................................................................................... 138Settings method

......................................................................................................................................... 138ScaleFont property

......................................................................................................................................... 139ScreenPrintAdapterScript property

......................................................................................................................................... 139ScreenPrinterName property

......................................................................................................................................... 139ScreenPrintMode property

AccuTerm 7 Help8

Copyright 2010-2011 Schellenbach & Assoc., Inc.

......................................................................................................................................... 139ScreenPrintOrientation property

......................................................................................................................................... 140ScreenPrintPaperSize property

......................................................................................................................................... 140ScreenPrintPaperSource property

......................................................................................................................................... 140ScrMode property

......................................................................................................................................... 140ScrollMode property

......................................................................................................................................... 140Selection property

......................................................................................................................................... 141ShowErrs property

......................................................................................................................................... 141SlavePrintAdapterScript property

......................................................................................................................................... 141SlavePrinterName property

......................................................................................................................................... 142SlavePrintMode property

......................................................................................................................................... 142Sound property

......................................................................................................................................... 142SSHAuth property

......................................................................................................................................... 142SSHCipher property

......................................................................................................................................... 143SSHKey property

......................................................................................................................................... 143SSHUseOnlyPreferredCipher property

......................................................................................................................................... 143SSHVersion property

......................................................................................................................................... 143StopBits property

......................................................................................................................................... 143Strip8th property

......................................................................................................................................... 144TcpIdn property

......................................................................................................................................... 144TcpNoDelay property

......................................................................................................................................... 144TelnetBinary property

......................................................................................................................................... 144TelnetBypass property

......................................................................................................................................... 145TelnetKeepaliveIsNOP property

......................................................................................................................................... 145TermType property

......................................................................................................................................... 145Top property (Session)

......................................................................................................................................... 146Visible property (Session)

......................................................................................................................................... 146Width property (Session)

......................................................................................................................................... 146WindowState property (Session)

......................................................................................................................................... 146XferBytes property

......................................................................................................................................... 146XferFiles property

......................................................................................................................................... 147XferStatus property

......................................................................................................................................... 147XmodemTimeout property

......................................................................................................................................... 147YmodemTimeout property

......................................................................................................................................... 148ZmodemAuto property

......................................................................................................................................... 148ZmodemTimeout property......................................................................................................................................................... 148Session methods

......................................................................................................................................... 148Activate method (Session)

......................................................................................................................................... 148Break method

......................................................................................................................................... 148Capture method

......................................................................................................................................... 149CaptureEnd method

......................................................................................................................................... 149Clear method

......................................................................................................................................... 149ClearSelection method

......................................................................................................................................... 149Close method (Session)

......................................................................................................................................... 149Copy method

......................................................................................................................................... 150CopyHistory method

......................................................................................................................................... 150Delete method

......................................................................................................................................... 150Deselect method

......................................................................................................................................... 150Dial method

......................................................................................................................................... 150Download method

......................................................................................................................................... 151Emulate method

......................................................................................................................................... 151GetBlock method

......................................................................................................................................... 151GetSelection method

......................................................................................................................................... 151GetText method

......................................................................................................................................... 152Hangup method

9Contents

9

Copyright 2010-2011 Schellenbach & Assoc., Inc.

......................................................................................................................................... 152Hide method (Session)

......................................................................................................................................... 152Input method

......................................................................................................................................... 152LoadImage method

......................................................................................................................................... 153Locate method

......................................................................................................................................... 153MouseTableAdd method

......................................................................................................................................... 153MouseTableLoad method

......................................................................................................................................... 153MouseTableReset method

......................................................................................................................................... 153Move method (Session)

......................................................................................................................................... 153Output method

......................................................................................................................................... 154Paste method

......................................................................................................................................... 154PlayMidi method

......................................................................................................................................... 154PlayWave method

......................................................................................................................................... 154PrinterClose method

......................................................................................................................................... 154PrinterOff method

......................................................................................................................................... 155PrinterOn method

......................................................................................................................................... 155PrintScreen method

......................................................................................................................................... 155ReadText method

......................................................................................................................................... 155Reset method

......................................................................................................................................... 155ResetComm method

......................................................................................................................................... 156ResetTerm method

......................................................................................................................................... 156Resize method (Session)

......................................................................................................................................... 156Save method

......................................................................................................................................... 156SaveAs method

......................................................................................................................................... 156ScrollHistory method

......................................................................................................................................... 156Select method

......................................................................................................................................... 157SetBlock method

......................................................................................................................................... 157SetExtension method

......................................................................................................................................... 157SetSelection method

......................................................................................................................................... 158SetText method

......................................................................................................................................... 158Show method (Session)

......................................................................................................................................... 158Terminate method (Session)

......................................................................................................................................... 158UnloadImage method

......................................................................................................................................... 158Upload method

......................................................................................................................................... 159WaitFor method

......................................................................................................................................... 159WriteText method......................................................................................................................................................... 159Session events

......................................................................................................................................... 159DataReady event

......................................................................................................................................... 159Extension event.......................................................................................................................................................... 160The Sessions Collection ......................................................................................................................................................... 160Sessions methods

......................................................................................................................................... 160Add method

......................................................................................................................................... 160AddClone method

......................................................................................................................................... 160Count method.......................................................................................................................................................... 161The Settings Object ......................................................................................................................................................... 163Settings methods

......................................................................................................................................... 163Apply method

......................................................................................................................................... 163Dialog method

......................................................................................................................................... 164Initialize method

......................................................................................................................................... 164Load method

......................................................................................................................................... 165ReadProperties method

......................................................................................................................................... 165Save method (Settings)

......................................................................................................................................... 165WriteProperties method......................................................................................................................................................... 165Settings properties

......................................................................................................................................... 165Ansi8Bit property

AccuTerm 7 Help10

Copyright 2010-2011 Schellenbach & Assoc., Inc.

......................................................................................................................................... 165AnsiAppCursor property

......................................................................................................................................... 166AnsiAppKeypad property

......................................................................................................................................... 166AnsiAutoprint property

......................................................................................................................................... 166Answerback property

......................................................................................................................................... 166AsciiDelay property

......................................................................................................................................... 167AsciiEOL property

......................................................................................................................................... 167AttributeMask property

......................................................................................................................................... 167AutoAnswer property

......................................................................................................................................... 167BackgroundPictureFile property

......................................................................................................................................... 168BackgroundPictureMode property

......................................................................................................................................... 168BackgroundTransparency property

......................................................................................................................................... 168Baud property

......................................................................................................................................... 168BkspSendsDel property

......................................................................................................................................... 169BoldFont property

......................................................................................................................................... 169BreakKeyAction property

......................................................................................................................................... 169Changed property (Settings)

......................................................................................................................................... 169CharacterMapping property

......................................................................................................................................... 170Charset property

......................................................................................................................................... 170Colors() property

......................................................................................................................................... 171ConnectTimeout property

......................................................................................................................................... 171CopySelMode property

......................................................................................................................................... 171CursorType property

......................................................................................................................................... 172DataBits property

......................................................................................................................................... 172DefaultCaptureDir property

......................................................................................................................................... 172DefaultXferDir property

......................................................................................................................................... 172DefaultXferMode property

......................................................................................................................................... 172DefaultXferOverwrite property

......................................................................................................................................... 173Device property

......................................................................................................................................... 173DeviceLicenseMode property

......................................................................................................................................... 173DisableAppMode property

......................................................................................................................................... 173Duplex property

......................................................................................................................................... 174ExtCols, ExtRows properties

......................................................................................................................................... 174FKeys() property (settings)

......................................................................................................................................... 174FontName property

......................................................................................................................................... 175FontSize property

......................................................................................................................................... 175GmodeEnable property

......................................................................................................................................... 175Handshake property

......................................................................................................................................... 175HistoryRows property

......................................................................................................................................... 175HostName property

......................................................................................................................................... 176HostPort property

......................................................................................................................................... 176HostTermType property

......................................................................................................................................... 176KeepaliveInterval property

......................................................................................................................................... 176KermitCRC property

......................................................................................................................................... 177KermitEOL property

......................................................................................................................................... 177KermitErrRetry property

......................................................................................................................................... 177KermitInitRetry property

......................................................................................................................................... 177KermitQuote property

......................................................................................................................................... 178KermitRept property

......................................................................................................................................... 178KermitTimeout property

......................................................................................................................................... 178LegibleFont property

......................................................................................................................................... 178LockBaudRate property

......................................................................................................................................... 178LockFKeys property

......................................................................................................................................... 179MapUpperFKeys property

......................................................................................................................................... 179MessageRows property

11Contents

11

Copyright 2010-2011 Schellenbach & Assoc., Inc.

......................................................................................................................................... 179MouseEnable property

......................................................................................................................................... 179NoAutoWrap property

......................................................................................................................................... 180NormCols, NormRows properties

......................................................................................................................................... 180OverrideModemConfig property

......................................................................................................................................... 180Pages property

......................................................................................................................................... 180Palette() property

......................................................................................................................................... 181Parity property

......................................................................................................................................... 181PasteEOFChar property

......................................................................................................................................... 182PasteEOFMode property

......................................................................................................................................... 182PasteEOLChar property

......................................................................................................................................... 182PasteEOLMode property

......................................................................................................................................... 182Port property

......................................................................................................................................... 182PrinterColorMode property

......................................................................................................................................... 183PrinterFontBold property

......................................................................................................................................... 183PrinterFontItalic property

......................................................................................................................................... 183PrinterFontName property

......................................................................................................................................... 183PrinterFontSize property

......................................................................................................................................... 184PrinterOrientation property

......................................................................................................................................... 184PrinterPaperSize property

......................................................................................................................................... 185PrinterPaperSource property

......................................................................................................................................... 185PrinterTimeout property

......................................................................................................................................... 185PrintJobEject property

......................................................................................................................................... 186PrintScreenBackground property

......................................................................................................................................... 186PrintScreenEject property

......................................................................................................................................... 186ProtectAttr property

......................................................................................................................................... 186ScaleFont property

......................................................................................................................................... 186ScreenPrintAdapterScript property

......................................................................................................................................... 187ScreenPrinterName property

......................................................................................................................................... 187ScreenPrintMode property

......................................................................................................................................... 187ScreenPrintOrientation property

......................................................................................................................................... 187ScreenPrintPaperSize property

......................................................................................................................................... 188ScreenPrintPaperSource property

......................................................................................................................................... 188ScrMode property

......................................................................................................................................... 188ScrollMode property

......................................................................................................................................... 188SlavePrintAdapterScript property

......................................................................................................................................... 189SlavePrinterName property

......................................................................................................................................... 189SlavePrintMode property

......................................................................................................................................... 189Sound property

......................................................................................................................................... 189SSHAuth property

......................................................................................................................................... 190SSHCipher property

......................................................................................................................................... 190SSHKey property

......................................................................................................................................... 190SSHUseOnlyPreferredCipher property

......................................................................................................................................... 190SSHVersion property

......................................................................................................................................... 191StopBits property

......................................................................................................................................... 191Strip8th property

......................................................................................................................................... 191TcpIdn property

......................................................................................................................................... 191TcpNoDelay property

......................................................................................................................................... 192TelnetBinary property

......................................................................................................................................... 192TelnetBypass property

......................................................................................................................................... 192TelnetKeepaliveIsNOP property

......................................................................................................................................... 192TermType property

......................................................................................................................................... 193XmodemTimeout property

......................................................................................................................................... 193YmodemTimeout property

......................................................................................................................................... 193ZmodemAuto property

AccuTerm 7 Help12

Copyright 2010-2011 Schellenbach & Assoc., Inc.

......................................................................................................................................... 193ZmodemTimeout property.......................................................................................................................................................... 194AccuTerm constants

Part III AccuTerm 7 Reference 198

................................................................................................................................... 1981 AccuTerm Programming

................................................................................................................................... 2072 Wyse Programming.......................................................................................................................................................... 220Wyse Tables ......................................................................................................................................................... 220Wyse Operating Mode Table......................................................................................................................................................... 221Wyse Cursor Address Table......................................................................................................................................................... 222Wyse Attribute Code Table......................................................................................................................................................... 223Wyse Function Key Table......................................................................................................................................................... 223Wyse Key Code Table......................................................................................................................................................... 225Wyse Graphic Character Table.......................................................................................................................................................... 225Wyse Programming Notes

................................................................................................................................... 2263 ADDS Programming.......................................................................................................................................................... 229Viewpoint Tables ......................................................................................................................................................... 229Viewpoint Cursor Address Table......................................................................................................................................................... 230Viewpoint Attribute Code Table......................................................................................................................................................... 231Viewpoint Function Key Table......................................................................................................................................................... 231Viewpoint Key Code Table......................................................................................................................................................... 233Viewpoint 60 Graphic Character Table.......................................................................................................................................................... 233ADDS Programming Notes

................................................................................................................................... 2344 ANSI Programming.......................................................................................................................................................... 253ANSI Tables ......................................................................................................................................................... 253ANSI Attribute Code Table......................................................................................................................................................... 254ANSI Function Key Table......................................................................................................................................................... 254ANSI Extended Key Table......................................................................................................................................................... 255ANSI Key Code Table.......................................................................................................................................................... 256ANSI Programming Notes

................................................................................................................................... 2575 Pick PC Console Programming.......................................................................................................................................................... 259PC Console Color Code Table

................................................................................................................................... 2606 ASCII Control Codes

................................................................................................................................... 2617 Customizing the Installation Process

Part IV Features for MultiValue Users 267

................................................................................................................................... 2671 MultiValue File Transfer.......................................................................................................................................................... 268Installing the MultiValue Host Programs ......................................................................................................................................................... 268Alternative Host Program Installation.......................................................................................................................................................... 270Updating the MultiValue Host Programs .......................................................................................................................................................... 270Activating Other Accounts to use the AccuTerm Host Programs .......................................................................................................................................................... 271Downloading Documents to your PC .......................................................................................................................................................... 272Uploading Documents from your PC to the Host .......................................................................................................................................................... 273FT Options and Settings .......................................................................................................................................................... 274Downloading Data Files to your PC (export) .......................................................................................................................................................... 275Uploading Data Files from your PC to the Host (import) .......................................................................................................................................................... 276FTD Options and Settings .......................................................................................................................................................... 277FTD File Types .......................................................................................................................................................... 279Transferring Data Between MultiValue Hosts ......................................................................................................................................................... 279Direct Host-to-Host file transfer......................................................................................................................................................... 280Host-to-Host file transfer......................................................................................................................................................... 281FTPICK Options and Settings

13Contents

13

Copyright 2010-2011 Schellenbach & Assoc., Inc.

.......................................................................................................................................................... 282Integrating File Transfer Functions into Pick Applications ......................................................................................................................................................... 282FTSEND......................................................................................................................................................... 283FTRECV......................................................................................................................................................... 284FTEXPORT......................................................................................................................................................... 285FTEXPORTDA......................................................................................................................................................... 286FTIMPORT......................................................................................................................................................... 288DOSSVC......................................................................................................................................................... 288FTS

................................................................................................................................... 2892 MultiValue Server.......................................................................................................................................................... 289Configuring FTSERVER .......................................................................................................................................................... 290Using the MultiValue Server .......................................................................................................................................................... 292Activating Other Accounts to use the Host Programs

................................................................................................................................... 2923 Object Bridge.......................................................................................................................................................... 293Initializing the Object Bridge Environment .......................................................................................................................................................... 293Resetting the Object Bridge Environment .......................................................................................................................................................... 293Creating an Object .......................................................................................................................................................... 294Releasing an Object .......................................................................................................................................................... 294Setting Object Properties .......................................................................................................................................................... 294Getting Object Properties .......................................................................................................................................................... 294Invoking Methods .......................................................................................................................................................... 294Enabling Event Processing .......................................................................................................................................................... 295Polling for Events .......................................................................................................................................................... 295Completing Event Processing

Part V Copyright & Trademarks 297

Index 298

Top Level IntroThis page is printed before a new

top-level chapter starts

Part

I

Welcome to AccuTerm 7 15

Copyright 2010-2011 Schellenbach & Assoc., Inc.

1 Welcome to AccuTerm 7

1.1 Introduction

Welcome to AccuTerm 7!

We've worked hard to give you the fastest and most accurate terminal emulation package on the market. We have also tried to make it easy to use. Our philosophy has been to add the features that will bemost useful without sacrificing ease of use, accuracy or performance.

Please refer to one of the following topics for detailed information about features, requirements,installation and use of AccuTerm 7:

Features of AccuTerm 7 Hardware and Software Requirements Installing AccuTerm 7Running AccuTermAccuTerm User InterfaceAccuTerm Main Menu Configuring AccuTerm Auto Dialer File Transfer Data Capture Customizing the Menu and ToolbarMacrosScripting

ReferenceAccuTerm Object Reference AccuTerm Programming Wyse ProgrammingADDS ProgrammingANSI ProgrammingPick PC Console Programming

AccuTerm 7 Help16

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ASCII Codes

AccuTerm 7 includes many features designed specifically for the MultiValue user (Pick, D3, QM,UniVerse, UniData, Reality, jBase, etc.) We hope you find these special features useful!

Import & Export MultiValue DataMultiValue ServerObject BridgeGUI Development EnvironmentwED Editor

Copyright & trademark notices

1.1.1 Features of AccuTerm 7

Multiple sessions using MDI (Multiple Document Interface). This means that you can run two or moreterminal sessions at the same time without running two copies of AccuTerm. It works the same as otherprograms that allow you to work with more than one document at a time like word processors,spreadsheets, etc. so it's easy to work with. You don't have to learn a new way of working. Also, byusing MDI instead of running multiple copies of AccuTerm, you use less system resources and memory. You can still run multiple copies if you choose, we just think MDI works better.

User interface has modernized interface, including context menus accessed by clicking with the rightmouse button. The new toolbar can be hidden completely and also features balloon help that shows youwhat the buttons mean. Toolbar, menu, session tabs and status bar can be customized by the user.

Full OLE Automation / ActiveX support allows integration with other Windows applications. AccuTerm7 acts as both automation client and automation server. AccuTerm exposes its application and sessionobjects, which allows other applications complete control of AccuTerm.

ActiveX component (OCX) terminal emulation & communications engine may be used in customapplications where accurate terminal emulation is required.

Secure Shell connections ensure privacy using public key encryption technology. SSH1 and SSH2protocols are supported, and several ciphers are available.

Welcome to AccuTerm 7 17

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Accurate emulations. When you use AccuTerm everything will work just like the terminal beingemulated. No strange problems with word processors or spreadsheets. No messed up screens. Nohassles.

Modem connections use Windows built-in dialer, and unlimited phone directory entries.

Fast file transfer capabilities using industry standard protocols like Xmodem, Ymodem, Zmodem, andKermit. MultiValue File Transfer Wizard and utilities import and export MultiValue data in a variety offormats. And direct Host-to-Host file transfer, too!

Scripting language and macro recorder allows users to record macros or write scripts using VisualBasic for Applications (VBA).

Enhanced scroll back window saves up to 10,000 lines for instant recall.

Extended screen support of up to 240 columns by 240 rows.

Automatic font scaling so that you can always see the full screen. This is a great feature that onceyou get used to it, you'll never want to go without.

Enhanced network support for Telnet and Secure Shell (SSH1 & SSH2) over TCP/IP. Supports IPV6and Internationalized Domain Names.

GUI Development Environment helps you build user-friendly GUI front-ends for your MultiValueapplications.

Image and sound support lets you to display images anywhere on the terminal screen. You can alsoplay Wave, MP3 and MIDI sound files.

wED Windows based program / data editor includes BASIC syntax highlighting in an MDI environment.Includes host file & item browser with an Explorer-like interface.

Tektronix graphics terminal emulation in both color and monochrome.

Visual Styles and full color mapping lets you choose any foreground and background colorcombination for any terminal visual attribute, and attach a border effect to the attribute. Application ofVisual Styles can give character-based applications an instant face-lift.

Easy to use. We've followed the Windows Interface Application Design Guide more closely than manyother terminal emulation programs. This makes AccuTerm easier to learn and use.

1.1.2 Hardware and Software Requirements

Memory: 512MB

Processor: Pentium 4 or better

Windows: XP SP2, Vista, Windows 7, Server 2003, Server 2008

Communicationsinterface:

Any serial port, modem or network adaptor supported by Windows

AccuTerm 7 Help18

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Mouse: Any mouse supported by Windows

1.1.3 Installing AccuTerm 7

AccuTerm 7 is available as either a downloadable install file or on CD. To install AccuTerm 7 from a CD,insert the CD and select "Install AccuTerm 7" from the auto-run menu. If there is no auto-run menu, youcan install AccuTerm by browsing the CD with Windows Explorer and double-clicking the installation filein the 'atwin70' folder.

To install from a downloaded install file, either choose "Run" from the "Download Complete" box, or useWindows Explorer to browse to folder where the install file was downloaded and double-click to start theinstaller. The installer will then guide you through the installation process, as outlined below in thefollowing step-by-step instructions.

1. The Software License Agreement is displayed. Please review the agreement, then clickOK to accept the license and continue the installation.

2. The Welcome screen is displayed. The installation begins when you click the Next button. There is checkbox to enable custom features on this screen. Do not check this box unlessyou have specific instructions to do so.

3. Select the desired installation type: Normal, Standalone or Portable.Normal: installs AccuTerm 7 using a traditional installation process for Windowsprograms. Program files are installed in the C:\Program Files\Atwin70 folder. SharedDLLs are installed in the Windows\System32 folder, and the registry is updated toestablish file associations as well as component file registration. Administratorprivileges are required for this type of installation. Note: when installing on a serverrunning Terminal Services or Citrix, you must use Control Panel "Install Application onTerminal Server" to install AccuTerm 7.Standalone: installs AccuTerm 7 as a "standalone" application. All component filesare installed in the AccuTerm program folder (no files are installed in theWindows\System32 folder). File associations are stored in the user's area of theregistry (unless you have administrator privileges). Component file registration istransient and only affects the user's area of the registry.Portable: installs AccuTerm 7 on a portable device such as a USB flash drive orremovable hard drive. This is similar to the Standalone installation, except that no fileassociations are stored in the registry. The Portable installation allows you to take acopy of AccuTerm with you when you work on multiple machines and run it withoutfurther installation on any XP-SP2 or later version of Windows.

4. Select the directory where you want the AccuTerm 7 program files to be installed, then clickthe Next button. The default installation directory is "C:\Program Files\Atwin70". If you havea prior version of AccuTerm installed on your computer, you should choose a differentdirectory for installing AccuTerm 7. The first time you run AccuTerm 7 you will have theoption to import all of your settings and preferences from the prior version of AccuTerm.

5. Select a “home” directory. The default “home” directory is the current user’s “MyDocuments” directory. This is the place where AccuTerm will start when opening or savingsession configuration files. After selecting the “home” directory, click the Next button.

6. Select a “Start Menu” folder for the AccuTerm 7 shortcut. If you would like a shortcut (icon)for AccuTerm 7 placed on your desktop, select the Place shortcut on desktop option. Ifyou want the shortcut to be available to all users of this computer, select the Makeshortcut available to all users option. Click the Next button.

7. Choose whether you want files which are replaced during installation to be saved in abackup directory. If you select this option, when you click the Next button, you can choose

Welcome to AccuTerm 7 19

Copyright 2010-2011 Schellenbach & Assoc., Inc.

the directory where replaced files are saved.8. To begin installing files, click the Next button. The installation progress will be displayed.9. When the program files have been installed, you can enter your Product Activation Code

by clicking the Enter Activation Code button. You can always enter the code at a latertime from AccuTerm's Help menu. Click Finish to complete the installation.

After installing AccuTerm 7, you can launch it from the Start Menu or desktop icon. Use theConnection Wizard to create a new session and log in to your host system! If you selected a portableinstallation and opted to create a launcher, you can launch AccuTerm by double-clicking the "StartAccuTerm 7" batch file in the root of the portable drive.

If you are using a MultiValue host and you would like to take advantage of the special MultiValuefeatures built into AccuTerm 7, you should install the AccuTerm MultiValue Host Programs. If you areunsure about installing the host programs, check with your system administrator.

See also:Customizing the installation process

1.2 Running AccuTerm

AccuTerm 7 uses the Windows MDI (Multiple Document Interface) standard for handling more than onesession. It works the same as other popular Windows applications like Microsoft Excel and MicrosoftAccess, except that instead of opening workbooks or tables, you open terminal session files. Normally,terminal session files are saved with the .atcf extension.

To run AccuTerm 7, simply select AccuTerm 7 from the Start menu, or click the AccuTerm icon on thedesktop. AccuTerm’s main window will be displayed.

AccuTerm 7

If you have a prior version of AccuTerm installed and this is the first time you have run AccuTerm 7, youwill be given the opportunity to import all of your settings and preferences from the prior version intoAccuTerm 7. This is a one-time offer.

Upon startup, AccuTerm 7 displays a Welcome screen:

AccuTerm 7 Help20

Copyright 2010-2011 Schellenbach & Assoc., Inc.

From this screen you can create a new session, open an existing session or open a recently usedsession. You can also opt-out of showing the Welcome screen in the future. Note: if you start AccuTermby double-click ing a session file or a shortcut to a session file, the Welcome screen is not displayedand the session file is opened automatically.

Creating a New Session Create a new session by selecting the Create new session option from the Welcome screen, or by

using File New from the main menu or by clicking the button on the toolbar. The ConnectionWizard will open to guide you through the session creation process.

ShortcutsAfter saving a session file (.atcf) or layout file (.atly) you can create a shortcut to the file so thatAccuTerm automatically opens that session or layout. To create a shortcut, use Windows Explorer tofind the session or layout file (usually in the My Documents folder). Right-click on the desired file.Select Copy from the popup menu. Position the mouse where you want to create the shortcut (desktop,Start menu, etc.) Right-click and select Paste Shortcut from the popup menu. If you created theshortcut on the desktop, double-clicking the new shortcut icon will start AccuTerm and open the desiredsession or layout. If you created the shortcut in the Start menu, selecting the new menu item in theStart menu will do the same.

1.2.1 Connection Wizard

The Connection Wizard helps you configure a new session by letting you choose the most commonsettings using a wizard-style dialog. If you do not want to use the Connection Wizard, a check-box isprovided to bypass the wizard in the future.

At any time you can skip the rest of the wizard and open the Settings dialog by clicking the Sessionsettings button.

Connection Options

Welcome to AccuTerm 7 21

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Choose the connection type for your new session from the Connection Options page. Choices areTelnet, Secure Shell, Serial Port or Modem. After selecting the connection type, click the Next> button.

1.2.1.1 Telnet Connection

After selecting Telnet as the connection type, enter the host name or IP address that you would like toconnect to. Click the drop-down arrow to display a list of recently used hosts.

If you know the type of the host system, select it from the drop-down list. If you do not know the type,leave it set to "default".

If you know that your host's telnet server is using a non-standard TCP port number, enter the portnumber. The default port number for Telnet is 23. Note: some host types use a non-standard telnet port.Choosing the correct host type is important for these hosts.

After entering the host details, click the Next> button to choose the terminal type.

1.2.1.2 Secure Shell Connection

After selecting Secure Shell as the connection type, enter the host name or IP address that you wouldlike to connect to. Click the drop-down arrow to display a list of recently used hosts.

If you know the type of the host system, select it from the drop-down list. If you do not know the type,leave it set to "default".

If you know that your host's SSH server is using a non-standard TCP port number, enter the portnumber. The default port number for SSH is 22. Note: some host types use a non-standard SSH port.Choosing the correct host type is important for these hosts.

After entering the host details, click the Next> button to choose the terminal type.

1.2.1.3 Serial Port Connection

After selecting Serial Port as the connection type, select the port number you are using to connect tothe host computer from the drop-down list. Note: the port number in this screen is the serial, or COMport, that is built into your PC, not the port number on the host computer.

Some computers do not have built-in serial ports. If this is the case, and you need to use a serial port toconnect to your host, you may be able to use a USB Serial Port adapter. This is a cable with a USBconnector on one end and a 9-pin serial connector on the other.

After selecting the serial port, click the Next> button to choose the port settings.

1.2.1.3.1 Serial Port Settings

After selecting the serial port number, select the port settings that match the serial port on the hostcomputer you are connecting to. Generally these settings must be that same on both serial ports (theone on your PC and the one on the host computer).

Baud rateBaud rate is the speed that the serial port communicates with the host computer. AccuTerm supportsbaud rates from 300 to 115,000 baud. If your PC is connected directly to the host machine, you willmost likely use 9600 or 19200 baud. The speed that you use depends on the host computer. If youselect the wrong baud rate, you screen may appear garbled or you may get no response from the hostwhen you type on the keyboard.

AccuTerm 7 Help22

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data bitsThis refers to the number of bits the serial port sends to represent the actual character. The options are7 or 8 bits (the default is 8 bits). This setting must match your host system.

Stop bitsThis is the number of bits that the serial port uses to separate each character sent. The options are 1 or2 stop bits (default is 1). This setting must match your host system.

ParityParity is an error checking mechanism performed by the serial port. The options are: None, Odd, Even,Mark and Space. The most common is None (this is the default). This setting must match your hostsystem.

Handshake

AccuTerm supports three methods of handshaking. The first and most common is. Xon/Xoff (or softwarehandshake). With this method, AccuTerm sends a special Xoff character (DC3) to the host system whenit wants the host to stop sending characters. When the AccuTerm has caught up, it sends the Xoncharacter (DC1).

The second handshake method supported by AccuTerm is DTR/DSR. This method is referred to ashardware handshake because it physically changes the voltages on the serial port to indicate whetherthe receiving computer is ready.

The third method, RTS/CTS, protocol works the same as DTR/DSR except it uses a different pair ofsignals (pins) on the serial port.

For DTR/DSR or RTS/CTS handshake to work, the cable which connects the PC and the host computermust connect the appropriate handshake signals at both ends. Physical cable wiring is beyond thescope of this reference.

After selecting the serial port settings, click the Next> button to choose the terminal type.

1.2.1.4 Modem (dialup) Connection

After selecting Modem as the connection type, select the modem you would like to use from the drop-down list. All modems that are installed in your computer should be displayed in the list. Note: if themodem you are look ing for is not in the list, then AccuTerm was unable to identify that modem.Sometimes updating the modem driver will correct this.

After selecting the modem, click the Next> button to choose the terminal type.

1.2.1.5 Terminal Type

In order for AccuTerm to work properly with terminal-based applications, the terminal type that AccuTermis emulating must match the terminal type the host application is configured or designed to use. Selectthe terminal type (emulation or personality) from the drop-down list. If you select the wrong type, yourscreen will probably be scrambled, and you should try a different type.

After selecting the modem, click the Finish button to close the wizard.

See also:Terminal types supported by AccuTerm 7

Welcome to AccuTerm 7 23

Copyright 2010-2011 Schellenbach & Assoc., Inc.

1.2.2 Reconnect

When you are connected to a host using Telnet or SSH, and the connection is terminated by the host(for example logging out of a Unix host will terminate the connection), a disconnect notice is displayedon the terminal screen. The disconnect notice has three options: Reconnect, Close and Cancel. If youclick the Reconnect button, AccuTerm will attempt to reconnect to the host. If you click Close,AccuTerm will close the session. If you click Cancel, the reconnect notice is cleared (you canreconnect later by choosing Tools Reset Connection from the main menu or by clicking the

button on the toolbar.)

1.3 Product Activation

You can activate AccuTerm 7 immediately after installation by clicking the Enter Activation Codebutton on the final screen of the installer. You can also enter your activation code at any time byselecting Enter Activation Code from the Help menu.

To complete the product activation process you will need to enter some information about yourself or thecompany you work for. Most fields are optional, however you must enter either a user name or companyname (Small Business and Enterprise licenses require company name and location).

As part of the activation process, the registration information on the Activation screen can automaticallybe sent to AccuSoft securely over the Internet. Check the Send registration details... check box toenable this feature; un-check to disable. Although registering your product with AccuSoft is optional, wehighly recommend doing so because it enables us to provide superior support if you should contact usabout lost activation codes, upgrades or software problems.

If you are a local administrator for your computer, you can check the Activate all users... check box.You may be prompted to enter your administrator password or respond affirmatively to the User AccountControl dialog.

1.4 AccuTerm User Interface

AccuTerm 7 uses the Windows MDI (Multiple Document Interface) standard for its user interface. Itworks the same as other popular Windows applications like Microsoft Excel and Microsoft Access,except that instead of opening workbooks or tables, you open terminal session files.

Title BarThe title bar is a standard Windows element that contains the title of the application: AccuTerm 7. There

is an application icon at the left side of the title bar, and standard Windows icons for minimize,maximize, restore and close at the right side.

Main MenuThe main menu is displayed immediately below the main window title bar. It is used to control theAccuTerm application. The main menu contains top-level menu items for File, Edit, View, Tools,MultiValue, Window and Help. Clicking one of the main menu items displays a sub-menu with itemsrelating to the top-level item.

ToolbarThe Toolbar is shown below the main menu. The Toolbar contains buttons that duplicate some of themenu items, a kind of shortcut for the menu item. If you let the mouse hover over a toolbar button, a

AccuTerm 7 Help24

Copyright 2010-2011 Schellenbach & Assoc., Inc.

small description of the button's action will be displayed. You can hide or show the Toolbar from the View menu.

Session TabsSession tabs are displayed above the workspace window, with a tab corresponding to each opensession. Click on a session's tab to activate it. The session icon is displayed at the left side of thesession's tab. When the mouse is over a tab, the tab shows a small close (X) button which can be usedto close the session.

Each session tab provides a context menu (right-click menu) which can be used to activate the session,maximize (or un-maximize) the session window, clone the session or close the session.

At the right edge of the tab bar, there is a drop-down arrow which will display a list of open sessions.Click a session in the drop-down list to activate it.

You can hide or show the Session Tabs from the View menu.

WorkspaceThe workspace is the area within the main window where you open terminal session windows. Multiplesession windows can be displayed in the workspace. A session window may occupy the entireworkspace area if it is maximized. Session windows can also be tiled or cascaded within theworkspace. When no sessions are open, the workspace background color is shown in this window(normally the background is dark gray).

Session WindowAll session windows reside within the workspace window. If a session window is maximized, it occupiesthe entire workspace. The session title is appended to the main window title and shown in the mainwindow title bar. If a session window is not maximized, it has its own title bar showing the session title(the session file name is used as the title unless you specify a different title in Window Settings.)

Status BarThe Status Bar is displayed at the very bottom of the workspace window. The Status Bar indicatesvarious status information about the current (active) session, such as the keyboard state (locked orunlocked), the cursor position, screen size, terminal type, printer status, file capture status andconnection status. You can hide or show the Status Bar from the View menu.

1.4.1 Keyboard Commands

Next Session - CTRL+TAB

If you have multiple session windows open, press CTRL+TAB to activate the next session. The sessionsare sequenced in the order they were last active. You can press TAB multiple times while continuing tohold the CTRL key to scan the session windows until you find the one you want to activate.

Print Screen - ALT+G

Prints the terminal screen on the currently selected printer.

Data Capture - ALT+C

This is a shortcut to open up the Capture dialog box.

Toggle Slave Printer Mode - ALT+P

Toggle slave printer mode on and off.

Previous Page - CTRL+PGUP

Displays the previous terminal page. To use this command, the session must be setup with more than

Welcome to AccuTerm 7 25

Copyright 2010-2011 Schellenbach & Assoc., Inc.

one video page. Note: this command changes pages in the terminal page memory, not the history(scrollback) buffer.

Next Page - CTRL+PGDN

Displays the next terminal page. Note: this command changes pages in the terminal page memory, notthe history (scrollback) buffer.

Pause / Resume - SCROLL LOCK

This command pauses or resumes the processing of received data by the terminal. The keyboard"Scroll Lock" LED indicates the current status.

Scanning the History Buffer (Scrollback)Use CTRL+SHIFT+PGUP, CTRL+SHIFT+PGDN, CTRL+SHIFT+UP, CTRL+SHIFT+DOWN, CTRL+SHIFT+HOME, andCTRL+SHIFT+END to navigate the history (scrollback) buffer.

Besides using the keyboard to navigate the history buffer, you can also use the mouse wheel. Just scrollthe mouse wheel up or down to scroll the history.

Note: in order to scan the history buffer, you must specify the number of history rows to remember in Screen Settings.

1.5 AccuTerm Main Menu

As is common in most Windows applications, AccuTerm provides a menu and toolbar to control theprogram. The menu provides complete control, and the toolbar provides quick access to the mostcommon functions. The menu functions are described in this topic, as well as the toolbar buttons.

File MenuThe AccuTerm File menu contains options for creating, opening, closing and saving sessions, andprinter setup and control. Common menu options may also be performed by clicking a button on thetoolbar.

File New

To create a new terminal session, select the New option or click the button on thetoolbar. Normally, the Connection Wizard is shown to help you create and configure the newsession (there is a checkbox on the wizard startup page to disable this feature).

File Open...

To open an existing session configuration file, select the Open option or click the buttonon the toolbar. This creates a new session with the settings that were saved in the selectedconfiguration file.

File CloseTo close the active session, select the Close option. If you have made any changes to thesession settings, you will have the opportunity to save them in a session configuration file beforeclosing the session.

File Save and File Save As...After adjusting session settings, save the new settings in a configuration file by selecting the S

AccuTerm 7 Help26

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ave or Save As option, or by clicking the button.

File Save Layout and File Save Layout AsIf you have several sessions open, you can save them as a group, or layout, by selecting theSave Layout or Save Layout As options.

File Printer OnSelecting this option toggles the slave printer on and off. When the slave printer is on, receiveddata is printed on the selected printer and displayed on the terminal screen. You can alsopress ALT + P to toggle the slave printer state.

File Print Screen

Selecting this menu option or clicking the button option causes the current terminalscreen to be printed on the selected printer. You can also press ALT + G to print the terminal

screen.

File Print Setup...Select this option to set up printer information. See Printer Settings for details.

Recent FilesOpens one of the most recently opened terminal session configuration or layout files. Note: youcan configure the number of items to show in the recent file list in the General Settings.

File ExitSelect this option to terminate AccuTerm.

Edit MenuThe AccuTerm Edit menu contains commands to copy and paste from the Windows clipboard andselect the screen.

Edit CopyThis command will copy a selected block of text from the terminal screen to the Windowsclipboard. If there is no selection, the entire screen is copied. To select a block on the screen,position the mouse on the upper left corner of the desired block. Press and hold the left mousebutton for about one-half second, then drag the mouse to the lower right corner, and release thebutton. The selected area will be enclosed by a dotted rectangle. To remove the selection,click the left mouse button anywhere on the screen. If the screen needs to be scrolled to selectthe desired data, move the mouse to the edge of the window (while holding the left button) andthe window will automatically scroll in that direction.

You can also click the button to perform this function.

An option is provided to remove the selection rectangle after a Copy operation - see ClipboardSettings for details.

Edit PasteThis command will send the clipboard contents to the host computer. See Clipboard Settings

for line-end and paste-end options. Clicking the button on the toolbar will also perform thisfunction.

Welcome to AccuTerm 7 27

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Edit Paste From...This command will send the contents of a text file to the host computer. A file selection dialogbox will be opened when you select this command.

Edit Select ScreenThis command will select the entire screen. You will see a dotted rectangle around theselection.

Edit Select AllThis command will select the entire screen and all history. You will see a dotted rectanglearound the selection.

Edit Select NoneThis command will remove the selection rectangle from the screen.

View MenuThe AccuTerm View menu contains options to select screen size, display or hide the toolbar and statusbar and session bar.

View Extended Screen SizeToggles the screen size between Normal (usually 80 by 24) and Extended (usually 132 by 24).See Screen Settings for information on setting the number of columns and rows. The screen

size may also be changed by clicking the button.

View ToolbarCheck this option if you want the toolbar displayed in AccuTerm’s main window. Un-check thisoption if you want to remove the toolbar.

View Status BarThe status bar displays information about the current session: keyboard state, cursor position,screen size, terminal type, printer status, capture status, connection type and connectionstatus. Check this option to display the status bar at the bottom of AccuTerm’s main window. Un-check this option if you do not want the status bar displayed.

View Session TabsSession Tabs are used to quickly activate a desired session when multiple sessions are open.Every session has a corresponding tab and clicking on the tab activates that session. Checkthis option if you want session tabs displayed at the top of AccuTerm’s main window. Un-checkthis option if you do not want session tabs displayed.

View Function BarThe Function Bar is used to display a row of function key buttons at the bottom of the sessionwindow. These buttons perform the same action as the twelve function keys on the keyboard.Un-check this option if you do not want the Function Bar displayed.

The first button in the Function Bar indicates the shift state of the buttons (Normal, Shift, Ctrl,Shift+Ctrl). When this button is clicked a small popup menu is displayed which will allow you tolock the shift state for the buttons in the Function Bar. Normally, the Function Bar buttons trackthe actual state of the SHIFT and CTRL keys.

The default function key button captions are simply F1 ... F12, however, the captions may be

AccuTerm 7 Help28

Copyright 2010-2011 Schellenbach & Assoc., Inc.

customized in Keyboard Programming. Options to select the bar position (top or bottom) anddisplay the key number in the corner of each button are available in General Settings.

Tools MenuThe Tools menu contains options for modifying AccuTerm’s settings, dialing a number, initiating filetransfers and data capture, recording a macro and opening the script window. Each of these optionsopens a dialog box where the desired function is performed. See the appropriate topic for details on eachfunction.

Tools Dialer...Select the Dialer option to enter or choose a phone number to dial when using a dial-up modemconnection. Also choose this option to disconnect a dial-up modem connection. Note: thisoption will be disabled unless the connection type is "Modem". You can quickly call up the

Dialer dialog by clicking the button on the toolbar.

Tools Reset TerminalResets the terminal (clears screen, restores default character set and emulation, etc.) You can

quickly reset the terminal by clicking the button on the toolbar.

Tools Reset ConnectionResets the connection. If the session has been disconnected, this command will attempt to

reconnect. You can quickly reset the connection by clicking the button on the toolbar.

Tools Settings...

Select this option or click the button to open the Settings dialog box. This dialog is usedto modify all of AccuTerm’s settings and preferences, such as communications device, terminaltype, screen colors, etc.

Tools Customize Menu...Select this option to open the AccuTerm Menu Designer, which is used to customize the menu,toolbar and status bar.

Tools Upload...Selecting this option displays the File Upload dialog. The File Upload dialog is used to initiate amanual file upload and allows you to select files to upload as well the protocol to use and otheroptions. Note: to upload data to a MultiValue host which has the AccuTerm MultiValue hostprograms installed, select Import Data from the MultiValue menu instead.

Tools Download...Selecting this option displays the File Download dialog. The File Download dialog is used toinitiate a manual file download and allows you to select the target directory as well as theprotocol to use and other options. Note: to download data from a MultiValue host which has theAccuTerm MultiValue host programs installed, select Export Data from the MultiValue menuinstead.

Tools Capture...Selecting this option displays the Begin Capture or End Capture dialog box. Use the BeginCapture dialog to select the destination file and specify other options. Use the End Capture

Welcome to AccuTerm 7 29

Copyright 2010-2011 Schellenbach & Assoc., Inc.

dialog to terminate the capture operation. You can quickly call up the Capture dialog by clicking

the button on the toolbar.

Tools Macro Record New MacroSelect this menu item to begin recording a new macro. All menu and toolbar actions, includingchanging settings and preferences, are recorded in the macro. Also, keystrokes sent to the hostand responses from the host are recorded in the macro. When a macro is being recorded, asmall control window is shown in the lower-right corner of the screen. Use the control window toend, pause or resume macro recording.

Tools Macro Run MacroThis menu item opens a sub-menu which contains a list of recorded macros. Select the macroyou want to run from this sub-menu. Note: a shortcut key can be assigned to a recorded macroto simplify running the macro.

Tools Macro Edit Macros...This option opens the AccuTerm Script window with the Macro tab selected. Use this windowto examine or modify the VBA code for your recorded macros.

Tools Script Editor...This option opens the AccuTerm Script window with the Main script tab selected. Use thiswindow to create, modify, run and debug VBA scripts.

MultiValue MenuThis menu contains all of the functions which are specifically designed for users of MultiValue hostsystems.

MultiValue Export Data...

Select this option or click the button on the toolbar to launch the AccuTerm File TransferWizard to guide you through the process of exporting data from your MultiValue database. Thisoption requires the AccuTerm MultiValue Host Programs be installed on your MultiValue host.

MultiValue Import Data...

Select this option or click the button on the toolbar to launch the AccuTerm File TransferWizard to guide you through the process of importing data to your MultiValue database. Thisoption requires the AccuTerm MultiValue host programs be installed on your MultiValue host.

Tools wED Editor...AccuTerm 7 includes a Windows based text and program editor designed specifically forMultiValue users. If you are connected to a MultiValue host, you can access the wED editor by

selecting this menu option or clicking the button on the toolbar. Note: the wED editor isalso invoked by using the WED command from TCL.

Tools GUI Designer...AccuTerm 7 includes a development tool to help programmers create GUI Applications forMultiValue systems. If you are connected to a MultiValue host, you can access the GUI

Designer by selecting this menu option or clicking the button on the toolbar.

AccuTerm 7 Help30

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Tools Host Programs InstallSelect this option to start the MultiValue Host Program Installer. The installer simplifies theinstallation of the AccuTerm host programs by determining the MultiValue platform anduploading the correct installation files to the host.

Tools Host Programs UpdateSelect this option to update the MultiValue Host Programs to the version supplied with yourAccuTerm installation and to install optional libraries, samples and demo programs.

Tools Host Programs Account SetupSelect this option to enable accounts on the MultiValue host to use the AccuTerm HostPrograms. This is required if you would like to access the file transfer functions, the wED Editor,GUI Designer or GUI runtime library from accounts other than the ACCUTERM account.

Tools Host Programs ConfigurationSelect this option to adjust MultiValue Host Program options.

Tools MultiValue Options...Select this menu item to display the AccuTerm MultiValue TCL Rules dialog box. Several ofAccuTerm's MultiValue tools (File Transfer Wizard, wED Editor and GUI Designer) require aspecial MultiValue server utility to function. The server utility is typically initiated from "TCL", andsettings in this dialog define how AccuTerm gains access to TCL and starts the server program.

Window MenuThe Window menu contains options for re-arranging the open sessions within the main window, and forswitching from one session to another.

Window CascadeThis option arranges all open session windows so that they overlap. The session title of allsessions remains visible.

Window Tile Horizontally and Window Tile VerticallyThese options arrange all open session windows so that no windows overlap.

Window MaximizeThis option toggles the Maximized state of the active session window.

WindowsThe open sessions are shown at the end of the Window menu. You can switch to any sessionby clicking on its entry in this menu.

Help MenuThe Help menu contains functions to display online help, documentation and program information. It alsoprovides a function to enter your product activation code. You can get context-sensitive help at any time

by clicking the button.

Help ContentsThis menu item will open the online help to the Contents tab, where you can browse the topics

Welcome to AccuTerm 7 31

Copyright 2010-2011 Schellenbach & Assoc., Inc.

to locate the information you need.

Help IndexThis menu item will open the online help to the Index tab, where you can search help topics bykeyword to locate the information you need.

Help Enter Activation CodeSelect this menu item to open the Product Activation dialog to enter your activation code.

Help DocumentationThis menu item will open the User Manual, GUI Manual, Scripting Language Reference (VBA)Manual, Release Notes, or the Software License Agreement.

Help About AccuTermThis menu item will open the About AccuTerm dialog which displays the product copyrightnotice, serial number, release, license summary, and registration information. A link is providedto check for product updates.

See also:Keyboard Commands

1.6 Configuring AccuTerm

To modify AccuTerm’s settings, use Tools Settings... from the main menu or click the buttonon the toolbar.

AccuTerm's settings are organized into categories which are shown in a nested tree structure, withsimilar categories as branches from a common parent category. The tree is displayed on the left pane ofthe Settings window. When you select a category from the tree by clicking on it, the settings for thatcategory are displayed in the right pane.

When you have completed your changes, simply press ENTER (or click the OK or Apply button) to savechanges, or press ESC (or click the Cancel button) to discard changes and close the Settings dialogbox.

Category:General OptionsFiles & FoldersConnection

TelnetSecure Shell

Private KeySerial PortModem

TerminalScreen

ColorsAttribute ColorsPalette

BackgroundKeyboard

AccuTerm 7 Help32

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Font & Character SetSounds

PrinterScreen PrintSlave Printer

ClipboardMouseFile TransferMultiValue RulesWindows

1.6.1 General Settings

The General Options are applicable to the overall operation of AccuTerm and are not associated withany particular session. Some of these settings allow you to re-activate features that have beenpreviously disabled, like showing the Welcome screen.

Single instance of AccuTermIf this option is checked, only one instance of the AccuTerm program is allowed to be running. If you tryto start AccuTerm from the Start menu when AccuTerm is already running, the running program will beactivated. When this option is not checked, a new instance of the AccuTerm program will be started.

Show welcome page at startupCheck this option to show the Welcome screen when AccuTerm first starts up.

Show large buttons in toolbarCheck this option to use large buttons in the toolbar. If the option is not checked, small buttons areused.

Function key bar: at top of screenCheck this option to show the function key bar at the top of the session window. If this option is notchecked, the bar will be displayed at the bottom of the window. Note: you must check the FunctionBar item in the View menu to show the function key bar.

Function key bar: show key numbersCheck this option to show tiny key numbers in the corner of each button in the function key bar.

Use connection wizard when creating new sessionsCheck this option to open the Connection Wizard when you create a new session. If this option is un-checked, use the Settings dialog to configure the new session.

Warn before disconnectingIf this option is checked, then when you attempt to close a session which is currently connected to thehost (Dial-up, Telnet and Secure Shell connections), you will receive a warning that the session is stillconnected. You can then choose to cancel, leaving the session open, or continue closing the session.When this option is not checked you will not receive this warning.

Close AccuTerm when all sessions closedIf this option is checked, when the last session is closed, the AccuTerm program will automaticallyclose.

Remember Caps Lock and Scroll Lock state when activating

Welcome to AccuTerm 7 33

Copyright 2010-2011 Schellenbach & Assoc., Inc.

When this option is checked, AccuTerm remembers and restores the state of the CAPS LOCK and SCROLL

LOCK keys when the program is activated. Each session maintains its own independent state for thesekeys. Note: this option is often unreliable - we are investigating a resolution for this.

Reset menu & toolbar to factory settingsThis function applies to either the user's personal custom menu or the AccuTerm master menu.Resetting the master menu required administrator privileges and you will need to start AccuTerm using"run as administrator". You might need to reset the menu if your custom menu file becomes corrupted oris in a non-functional state.

1.6.2 File & Folder Settings

Default folder for session filesThis field specifies which folder to start in when opening or saving a session file. Once you have openedor saved a session file, open or save will start with the last folder used. The default folder for sessionfiles is the current user's My Documents folder.

Phone book for dialup connectionsThis field contains the file name containing the auto-dialer phone book. The phone book file is a tabdelimited ASCII file, with one line per entry. Each entry contains two fields: name and phone number.The default phone book file is "Phone.dat" and is stored in the user's profile under the AppData folder.You can click the Browse... button to browse for this file.

Default upload/download folderThis field contains the default folder for uploading and downloading files. You can click the Browse...button to browse for a folder.

Default capture folderThis field contains the default folder for storing captured data files. You can click the Browse... button tobrowse for a folder.

Recent file list sizeSelect the number of recent files displayed in the File menu. The default is 4 files.

Single instance of AccuTermIf this option is checked, only one instance of the AccuTerm program is allowed to be running. If you tryto start AccuTerm from the Start menu when AccuTerm is already running, the running program will beactivated. When this option is not checked, a new instance of the AccuTerm program will be started;that is you will have two or more AccuTerm tasks active.

Explore application data folderClick this button to open a Windows Explorer window at the top of the AccuTerm application data folder.This folder is the user's profile under the AppData folder. This is the folder where the phone book file,Secure Shell keys and personal custom menus are stored.

1.6.3 Connection Settings

Connection MethodThe Connection Method group of option buttons is used to select a connection type. Once aconnection type has been selected, other configuration options will become available. For example, if Serial Port is chosen, various options for a serial port, such as port number, baud rate, etc. will bedisplayed. The specific settings for each connection type will be described later in related topics.

AccuTerm 7 Help34

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Echo (duplex)There are three echo options: remote echo (full duplex), local echo (half duplex) and loopback (local mode). Typical terminal sessions operate in full duplex. In this mode, all characters typed on thekeyboard are sent to the host computer. They are not printed on the screen. The host echoes thecharacter back to the terminal where it is displayed on the screen. Usually, when control characters (ENTER, BACKSPACE, DELETE, etc.) or function keys are sent to the host, the echo is suppressed and theapplication responds in an appropriate manner. In half duplex mode, characters typed on the keyboardare simultaneously sent to the host computer and displayed on the screen. In loopback mode,characters are displayed directly on the screen and are not sent to the host computer. This mode isusually used only for testing keyboard or display functions.

Clear high bit of received dataMost communications devices use eight bits to represent each character. When using eight bits, thecomputer can send up to 256 different character codes. Some terminal types have no way of handlingcharacters above 127 (hex 7F). In this case, you can check this box and the high bit of each byte will beautomatically stripped from all received characters. If you need to use any international characters orspecial symbols from the PC character set, you should not use this option (the Wyse 60 and VTemulations have commands to access these characters when using only 7 bits).

Enable device licensing (U2 & QM)If this option is set, multiple connections (sessions) to compatible versions of UniData, UniVerse andQM consume only a single user license. When the Append LF option is checked, the response sentto the host by AccuTerm is terminated by a line-feed character. Contact your U2 or QM dealer formore information regarding device licensing. Note: Windows versions of U2 implement devicelicensing using a proprietary Telnet server. This precludes using SSH with device licensing on theseplatforms.

Display connection warningsCheck this option to display non-fatal connection errors, such as UART overrun errors when using aserial port connection.

Close session on disconnectWhen this option is checked, if a connection is closed by the host computer the AccuTerm session willautomatically close. This option may be used in conjunction with the Close AccuTerm after lastsession is closed option (General Options).

See also:Telnet Settings Secure Shell SettingsSerial Port Settings Modem Settings

1.6.3.1 Device Settings:Telnet

AccuTerm supports Telnet connections to host machines over a TCP/IP network. Any Telnet server(host) on the network, including hosts on the Internet, can be accessed.

Host name or IP addressEnter the host name or IP address in this field. If the desired host name has been used previously whenconfiguring a Telnet session, you may select it from the drop-down list by clicking the drop-down arrowin this field.

Welcome to AccuTerm 7 35

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Host typeIf your host is listed in the Host Type list, select it, otherwise just use the Default host type. Byselecting a host type from this list, certain advanced options are configured to be compatible with thespecified host type. For some host types, the port number and host terminal type are also adjusted.

PortIf the Port field is left blank, or set to "Default" AccuTerm will use TCP port 23 (the default port forTelnet). If a different port is used for Telnet connections to your host, enter that port number in this field.

Certain host systems, such as Raining Data D3, allow a host process number (PIB) to be mapped to aspecific TCP port number. You can use the Port setting to specify the port number mapped to yourprocess number. Consult with your system administrator for this setting.

Connect timeoutWhen establishing a connection to a host computer, AccuTerm will wait up to the specified number ofseconds before giving up. If this field is left blank, or zero, the default timeout is 15 seconds.

Note: this timeout only affects the time AccuTerm waits for a response from the host when opening aconnection to the host.

Advanced OptionsCheck the Show advanced options check-box to display the advanced Telnet options.

BinaryNormally, Telnet operates in "text mode", with special rules for handling CR and LF characters. Whenthe Binary option is selected, Telnet sends CR and LF characters without any alteration. Some hosts donot function correctly in binary mode.

KeepaliveAlthough the Telnet protocol specification does not provide for "keepalives", AccuTerm can send periodiccommands that should be ignored by most Telnet servers. Using keepalives may prevent the host (orrouter) from detecting that the connection is idle and forcing a disconnect. To use keepalives, selecteither DMARK or NOP as the command to send as a keepalive. Enter the desired interval in the every...sec field.

Break keyNormally, AccuTerm sends the Telnet "interrupt process" command when you press the CTRL+BREAK

key. If your host requires a different BREAK command, or to use a control character instead of acommand, select the desired option from this drop-down list. If you select "control character", enter thedecimal value of the control character to send in the code field (for CTRL+C, the decimal value is 3).

Skip initial option negotiationWhen a Telnet connection is first established the AccuTerm and the host negotiate various operatingmodes. When this option is selected, the initial option negotiation is suppressed. This is necessary forsome Telnet servers which do not respond correctly to Telnet options (Advanced Pick and D3 turnkey ornailed Telnet).

Disable outbound coalescingNormally, TCP delays outbound messages for a short time so that multiple small messages may becombined into a single network packet. This prevents many small packets from clogging up the network.When this option is selected, messages are sent as soon as possible. This may improve throughput(especially when running GUI programs or performing file transfers), at the expense of increased network

AccuTerm 7 Help36

Copyright 2010-2011 Schellenbach & Assoc., Inc.

traffic.

Allow internationalized domain namesSelect this option to enable Internationalized Domain Names (IDN) for the host name. IDN relies upon astandardized mechanism known as "Punycode" for encoding Unicode domain names using only theASCII characters that are permitted by the global DNS system.

1.6.3.2 Device Settings: SSH

AccuTerm supports Secure Shell (SSH) connections to host machines over a TCP/IP networkconnection. Any SSH server on the network, including hosts on the Internet, can be accessed.AccuTerm implements both version 1 and version 2 of the Secure Shell protocol. Protocol selection isusually automatic and uses version 2 if it is supported by the host. Otherwise, it automatically falls backto version 1.

AccuTerm Secure Shell requires Windows 128 bit encryption. You can check your encryptioncapabilities by opening Internet Explorer and selecting "About Internet Explorer" from the Help menu. Ifthe Cipher Strength is less than 128 bits you will need to either upgrade to Internet Explorer 6 (or above),or install the High Encryption Pack for your version of Internet Explorer. Search Microsoft's site for "HighEncryption" for more information.

Host name or IP addressEnter the host name or IP address in this field. If the desired host name has been used previously whenconfiguring a Telnet session, you may select it from the drop-down list by clicking the drop-down arrowin this field.

Host typeIf your host is listed in the Host Type list, select it, otherwise just use the Default host type. Byselecting a host type from this list, certain advanced options are configured to be compatible with thespecified host type. For some host types, the port number and host terminal type are also adjusted.

PortIf the Port field is left blank, or set to "Default" AccuTerm will use TCP port 22 (the default port for SSH).If a different port is used for SSH on your host, enter that port number in this field.

Connect TimeoutWhen establishing a connection to a host computer, AccuTerm will wait up to the specified number ofseconds before giving up. If this field is left blank, or zero, the default timeout is 15 seconds.

SSH versionSelect the version of the SSH protocol that will be used by the connection. When you select "auto",AccuTerm will automatically select the highest version supported by the host. If you select SSH1 orSSH2, AccuTerm will only connect using the selected protocol. If the host does not support the selectedprotocol, the connection will fail and an error message will be displayed.

AuthenticationSelect the authentication method which will be use to validate the user with the host. AccuTermsupports "password", "interactive" and "public key" authentication. It is important to select anauthentication method that is compatible with the SSH server running on your host.

Private keyIf "public key" authentication has been selected, click the Select... button to open the Key Managementdialog. Use the Key Management dialog to create new keys, load existing keys and import keys created

Welcome to AccuTerm 7 37

Copyright 2010-2011 Schellenbach & Assoc., Inc.

on another system.

Advanced OptionsCheck the Show advanced options check-box to display the advanced Telnet options.

Preferred cipherIf you wish to select the cipher used to encrypt the SSH session, you can select it from this list. If"auto" is selected, the default cipher (triple DES) is used. Otherwise, you can choose triple DES,Blowfish, 128 bit AES or 256 bit AES.

Only use preferred cipherWhen this option is set, the cipher selected above must be supported by the host. If the preferred cipheris not supported by the host, the connection will be terminated and an error message displayed. Whenthis option is not set, if the preferred cipher is not supported by the host, a different, mutually supported,cipher (normally, triple DES) will be used.

Break keyNormally, AccuTerm sends CTRL+C when you press the CTRL+BREAK key. Alternatively, you can opt tosend the BREAK command or INT signal when the CTRL+BREAK key is pressed. In order to use theBREAK command, the SSH server on your host must implement the Session Channel Break Extensionspec (RFC 4335). In order to use the INT signal, the SSH server must implement signals, and mustrespond to the INT signal by interrupting or breaking the process. Not all SSH servers implement thesefeatures. To use a control character instead of a command or signal, select "control character" from thisdrop-down list and enter the decimal value of the control character to send in the code field.

Send keepalivesWhen the Send keepalives option is selected, AccuTerm sends a dummy message to the hostperiodically. This may prevent the host (or router) from detecting that the connection is idle and forcing adisconnect. Enter the desired interval in the every...sec field.

Disable outbound coalescing (advanced option)Normally, TCP delays outbound messages for a short time so that multiple small messages may becombined into a single network packet. This prevents many small packets from clogging up the network.When this option is selected, messages are sent as soon as possible. This may improve throughput(especially when running GUI programs or performing file transfers), at the expense of increased networktraffic.

Allow internationalized domain namesSelect this option to enable Internationalized Domain Names (IDN) for the host name. IDN relies upon astandardized mechanism known as "Punycode" for encoding Unicode domain names using only theASCII characters that are permitted by the global DNS system.

1.6.3.2.1 Key Management

Use the Key Management dialog to create public/private keys for SSH, or to load or import privatekeys. AccuTerm supports RSA public keys for both SSH 1 and 2, and DSA public keys for SSH 2.AccuTerm can import SSH 2 private keys that were created by OpenSSH. The public key file formatAccuTerm uses is also compatible with OpenSSH (www.openssh.org).

Creating a new keyClick the Create New Key button to create a new public/private key pair. After clicking the Create NewKey button, select the key type (RSA or DSA), and key length. The default length of 1024 bits is

AccuTerm 7 Help38

Copyright 2010-2011 Schellenbach & Assoc., Inc.

recommended. Enter a descriptive comment describing the key being created, and enter a password toprotect your private key. Although the password is optional, it is highly recommended since anyone whogains access to your private key file can impersonate your identity! The Save Key button will remaindisabled until the password has been confirmed.

Click the Save Key File button to create the new key and save the newly created key file. By default,AccuTerm will save the key in its standard key folder, located in the user's profile. You can select adifferent location, such as a removable USB drive, if desired.

Once your public/private key pair has been created, you need to place the public key on the serverwhich you want to connect to. Use the Export Key or Copy Key to Clipboard functions to retrieve yourpublic key so that it can be installed on the server.

Exporting the keyYou can save the public key to a file by clicking the Export Key button and selecting the Public Keyoption. Click the Export button to save the public key file. Browse to the folder where you want to storethe public key file and click the Save button. Once saved, you could attach the key to an emailmessage and send it to the server's administrator (it is a public key, so security is not a major issue).You could also save the public key file to a removable drive or diskette and deliver it to the serveradministrator.

The same process can be used to export the private key file. Note: exporting the private key may pose asecurity risk . If an unauthorized user obtains your private key he can impersonate you and gain accessto the host system using your identity! Use caution when making a copy of your private key.

Copying the key to the clipboardClick the Copy Key to Clipboard button to copy either the public key (recommended) or private key(not recommended) to the clipboard. The process is the same as described under Exporting the keyexcept that you do not need to supply a destination file.

Loading an existing keyIf your private key was saved to a different folder or to a removable drive or diskette, you can click the Load Existing Key button to load that key. Enter the password and click the Verify button to check thepassword. If the password is correct, the key fingerprint will be displayed. Click OK to use this key (inits current location). Otherwise, you can save the key in a different location by clicking the Save Keybutton.

Importing a keyImporting a key is exactly like loading an existing key, except for the file locations. AccuTerm canimport private keys created by OpenSSH.

Key fingerprintWhen you create a new key, or load or import an existing key, AccuTerm displays the "fingerprint" of thepublic key. You can use this fingerprint to ensure that your key is correct. Use a utility on the server toshow the fingerprint of the public key and compare to the fingerprint shown in AccuTerm.

OpenSSH exampleIf the host is using OpenSSH as the SSH server, and if you currently have access to the server viapassword authentication, you can set up public key authentication using the following steps:

1. Open an AccuTerm session and connect to the server. Log in using your password.2. Open the AccuTerm Settings dialog to create your new key pair. Select "public key" as theauthentication method.

Welcome to AccuTerm 7 39

Copyright 2010-2011 Schellenbach & Assoc., Inc.

3. Click the Select Key button to open the Key Management dialog.4. Click the Create New Key button and follow the steps above for creating a new key.5. Click the Copy Key to Clipboard button and choose the Public Key option. Click the Copy button.6. Click OK two times to dismiss the dialogs. Ignore the warning about changes not being effective.7. From a Unix/Linux prompt, change to your ~/.ssh directory. Edit the authorized_keys2 file usingyour favorite text editor. Start a new line in the authorized_keys2 file.8. From the AccuTerm Edit menu, choose Paste to paste the public key into the authorized_keys2file.9. Save the modified authorized_keys2 file.10. Save the modified AccuTerm session file. Close AccuTerm. Open AccuTerm and open the sessionfile you just modified.11. Enter your user ID.12. If you entered a password when you created your new key, you will prompted to enter the password.Enter the password (case sensitive).13. If the server accepts your key, you will be logged in.

1.6.3.3 Device Settings: Serial Port

PortAccuTerm supports serial ports from COM1 to COM127, at baud rates up to 115,000 baud. Althoughyou can select any port from 1 to 127, most computers only have one or two ports installed, and somemay not have any. The drop-down list contains all of the ports that AccuTerm was able to identify onyour computer.

Baud rateBaud rate is the speed that the serial port communicates with the host computer. AccuTerm supportsbaud rates from 300 to 115,000 baud. If your PC is connected directly to the host machine, you willmost likely use 9600 or 19200 baud. The speed that you use depends on the host computer. If youselect the wrong baud rate, you screen may appear garbled or you may get no response from the hostwhen you type on the keyboard.

Data bitsThis refers to the number of bits the serial port sends to represent the actual character. The options are7 or 8 bits (the default is 8 bits). This setting must match your host system.

Stop bitsThis is the number of bits that the serial port uses to separate each character sent. The options are 1 or2 stop bits (default is 1). This setting must match your host system.

ParityParity is an error checking mechanism performed by the serial port. The options are: None, Odd, Even,Mark and Space. The most common is None (this is the default). This setting must match your hostsystem.

Flow control (handshake)Computers can send information very quickly. However, there are situations where one computer cansend data faster than the other computer can process it. In these cases, the computer on the receivingend needs to inform the sending computer to suspend transmission until the slower computer is able tocatch up. A technique called “handshaking” is used to accomplish this task.

AccuTerm supports three methods of handshaking. The first and most common is. Xon/Xoff (or softwarehandshake). With this method, AccuTerm sends a special Xoff character (DC3) to the host system when

AccuTerm 7 Help40

Copyright 2010-2011 Schellenbach & Assoc., Inc.

it wants the host to stop sending characters. When the AccuTerm has caught up, it sends the Xoncharacter (DC1). AccuTerm normally uses “inbound” Xon/Xoff handshake; that is, AccuTerm can controlflow of data from the host, but the host cannot control the flow of data from AccuTerm. If you check the“bidirectional” option, then AccuTerm will use both “inbound” and “outbound” Xon/Xoff handshake allowingthe host to control the flow of data from AccuTerm as well.

The second handshake method supported by AccuTerm is DTR/DSR. This method is referred to ashardware handshake because it physically changes the voltages on the serial port to indicate whetherthe receiving computer is ready.

The third method, RTS/CTS, protocol works the same as DTR/DSR except it uses a different pair ofsignals (pins) on the serial port.

For DTR/DSR or RTS/CTS handshake to work, the cable which connects the PC and the host computermust connect the appropriate handshake signals at both ends. Physical cable wiring is beyond thescope of this reference.

This setting must match your host system.

Break keyNormally, AccuTerm sends a BREAK signal when you press the CTRL+BREAK key. Alternatively, you canuse a control character instead of the BREAK signal. If you select "control character", enter the decimalvalue of the control character to send in the code field (for CTRL+C, the decimal value is 3).

1.6.3.4 Device Settings: Modem

AccuTerm supports dial-up connections using modems which have been installed on your system.AccuTerm uses TAPI (a service built into Windows for supporting telephony) to communicate with yourmodem. By using TAPI, AccuTerm can share the modem with other TAPI enabled applications, likeWindows fax applications.

Modem NameTo use a modem connection, select a modem from the Modem Name list.

Auto AnswerIf you want AccuTerm to answer incoming calls, check the "Auto Answer" option.

Dialing OptionsTo modify the dialing properties for the selected modem, such as your current location, dialing prefixes,etc., click the "Dialing Options" button.

Override settings from Control PanelWhen this option not selected, the modem settings (baud rate, data bits, stop bits, parity andhandshake) are determined by the modem properties set in Control Panel (Phone and Modem Options).Select this option to override the Control Panel settings.

Baud rateBaud rate is the speed that the serial port communicates with the host or modem. AccuTerm supportsbaud rates from 300 to 115,000 baud. If your PC is connected directly to the host machine, you willmost likely use 9600 or 19200 baud. The speed that you use depends on the host computer.

Only connect at this speedSelect this option to lock the modem speed to the selected baud rate. When this option is not selected

Welcome to AccuTerm 7 41

Copyright 2010-2011 Schellenbach & Assoc., Inc.

the specified baud rate is the maximum connection speed. Note: not all modems support this option.

Data bitsThis refers to the number of bits the serial port sends to represent the actual character. The options are7 or 8 bits (the default is 8 bits). This setting must match your host system.

Stop bitsThis is the number of bits that the serial port uses to separate each character sent. The options are 1 or2 stop bits (default is 1). This setting must match your host system.

ParityParity is an error checking mechanism performed by the serial port. The options are: None, Odd, Even,Mark and Space. The most common is None (this is the default). This setting must match your hostsystem.

Flow control (handshake)AccuTerm supports two methods of handshaking for modem connections: software (Xon/Xoff) orhardware (RTS/CTS). Most modern modems work best with hardware (RTS/CTS) handshake.

Break keyNormally, AccuTerm sends a BREAK signal when you press the CTRL+BREAK key. Alternatively, you canuse a control character instead of the BREAK signal. If you select "control character", enter the decimalvalue of the control character to send in the code field (for CTRL+C, the decimal value is 3).

1.6.4 Terminal Settings

Terminal EmulationIn order for AccuTerm to work properly with terminal-based applications, the terminal type that AccuTermis emulating must match the terminal type the host application is configured or designed to use. Selectthe terminal type (emulation or personality) from the drop-down list. If you select the wrong type, yourscreen will probably be scrambled, and you should try a different type. The following terminal types aresupported by AccuTerm 7:

Wyse 50: emulates a Wyse 50 terminal with “Enhanced” enabled. Wyse 50 emulation may also beused for Wyse 30, 99, 125 and 350 terminals.

Wyse 60: emulates a Wyse 60 terminal with “Enhanced” enabled. Wyse 60 emulation is similar toWyse 50, but with non-embedded visual attributes (the visual attribute codes do not take a positionon the screen). Wyse 60 emulation may also be used for Wyse 150, 160 and 320 terminals.

ADDS Viewpoint A2: emulates the ADDS Viewpoint A2 terminal. This is the original A2 terminal,with no enhancements.

ADDS Viewpoint 60: emulates the ADDS Viewpoint 60 terminal. The Viewpoint 60 is similar to theA2, but uses embedded visual attributes (the visual attribute codes take a position on the screen).

Procomm VP60: emulates an ADDS Viewpoint 60 terminal, but with non-embedded visualattributes. This emulation is similar to the Viewpoint 60 emulation provided by Procomm.

Viewpoint A2 Enhanced: emulates a Wyse 50 terminal in ADDS Viewpoint mode with “Enhanced”enabled. This is basically a hybrid of Wyse 50 and ADDS Viewpoint A2. Viewpoint A2 Enhancedmay also be used for ADDS 2020 and 4000, and NCR 2900 terminals.

MDIS P30 (Prism): emulates a McDonnell Douglas Prism P30 terminal.

AccuTerm 7 Help42

Copyright 2010-2011 Schellenbach & Assoc., Inc.

VT52: emulates the DEC VT52 terminal.

VT100: emulates the DEC VT100 terminal. VT100 is a 7-bit emulation, and can also be used forapplications which require VT102 terminals.

VT220: emulates the DEC VT220 terminal. The VT220 emulation supports a super-set of the VT100commands, and includes a host-writable status line, protected characters, multiple character setsand multiple pages.

VT320: emulates the DEC VT320 terminal. The VT320 emulation supports a super-set of the VT220commands, and includes support for reporting and restoring various terminal states.

VT420: emulates the DEC VT420 terminal. The VT420 emulation supports a super-set of the VT320commands, and includes support for rectangle operations, left & right margins, and horizontal splitscreen.

ANSI BBS: emulates the old MS-DOS ANSI.SYS device driver. This emulation may be useful whenconnecting to bulletin board systems.

Linux Console: emulates the Linux console, including function keys and colors.

SCO Console: emulates the SCO Unix console.

Pick PC Monitor: emulates the original Pick PC Monitor (“mm-mon” or “I” terminal type), includingcolor and function keys.

Tektronix 4014: emulates the Tektronix 4010/4014 terminals. Color enhancements as implementedin the CIT467 terminal (from CIE Electronics) are included.

Tektronix 4100: partially emulates the Tektronix 41xx terminals.

TTY Emulation: emulates basic TTY functions.

Host terminal type When a Telnet or Secure Shell session is initiated, the contents of the Host terminal type field ispassed to the host. The host may use this information to set its TERM environment variable or setting.Generally, when you change the Terminal emulation setting, the Host terminal type is automaticallyupdated. The two fields are similar, but normally are not identical. The Host type setting (Telnet orSecure Shell) may influence the Host terminal type setting.

AnswerbackThe contents of this field are sent to the host when the application sends a "send answerback"command to AccuTerm. Wyse and VT emulations support the answerback command. When theanswerback message is sent to the host under Wyse emulation, an ACK control character follows themessage. Under VT emulation, no terminator is sent.

Control characters may be entered into the Answerback field by prefixing the character with a caret (^).

Terminal OptionsCertain terminal types support additional settings shown in the Terminal Options panel.

Send 8 bit controlsIf this option is selected, then 8-bit control codes will be transmitted to the host. If the option is not set(the default), equivalent 7-bit escape sequences will be transmitted to the host. This option applies to theVT220, VT320, VT420 and Linux Console emulations.

Welcome to AccuTerm 7 43

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Allow application modeWhen this option is selected (the default), commands that switch the numeric keypad keys and cursorkeys into "application mode" are emulated. When the option is not selected, those commands areignored, preventing the terminal from switching to "application mode". This option is useful when the hostor application erroneously sends the command to enter application mode, and the application isexpecting normal numeric or cursor keys. This option applies to the VT emulations (except VT52) andLinux Console emulation.

Keypad sends application codesWhen this option is selected, the numeric keypad keys send special application codes. When theoption is not set (the default), the numeric keypad keys send decimal numbers. This option applies tothe VT emulations (except VT52) and Linux Console emulation.

Cursor keys send application codesWhen this option is selected, the cursor keys send special application codes. When the option is notset (the default), the cursor keys send normal cursor codes. This option applies to the VT emulations(except VT52) and Linux Console emulation.

Backspace key sends DELWhen this option is selected, the BACKSPACE key sends the DEL (delete) control code. When the option isnot set (the default), the BACKSPACE key sends the BS (backspace) control code. This option applies tothe VT emulations (except VT52) and Linux Console emulation.

Auto-print works just like VT terminalWhen this option is selected, the "auto print" slave printer function works the same as a real VTterminal. That is, when AccuTerm is in "auto print" mode, the entire screen line that the cursor is on isprinted when AccuTerm receives a CR, LF or FF control code. If this option is not set, then text is printedas it is received from the host (similar to Wyse auto-print mode).

1.6.4.1 Screen Settings

Use the Screen Settings panel to specify the size of the terminal screen, the number of screen pages,the number of history rows, the status line and other options.

Screen SizeThere are two separate screen sizes that AccuTerm supports: normal and extended. These sizes areused to emulate the 80 and 132 column modes of the Wyse and VT terminals. AccuTerm has taken theextended and normal modes one step further: with AccuTerm you can define both the normal andextended modes to be any number of columns or rows (up to a maximum of 240). You can select whichscreen size is active when the session is first opened by checking the Active box for the desired size.

You will probably leave these settings at their default settings of 80 columns by 24 rows for normal modeand 132 columns by 24 rows in extended mode. If you have software that supports other screen sizes,you can experiment with these settings until you find a size that you like.

The number of rows may change if you change terminal emulations. The console terminal emulationsuse 25 rows with no status line; others use 24 rows with one or more status lines.

When AccuTerm switches between the normal and extended modes, one of two things will happen:either the font will change size to fit the visible screen, or scroll bars will be displayed if the full screenwill not fit within the session window at the selected font size (see Fonts).

AccuTerm 7 Help44

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Screen pagesSome of the terminals which AccuTerm emulates support multiple addressable pages. With AccuTerm,you can have up to 25 pages.

History rowsAccuTerm supports a "history" or "scrollback" buffer, which saves lines which have scrolled off of theterminal screen. To use this feature, specify how many rows (up to 10,000) are to be saved. When thehistory buffer has been enabled (by setting the number of rows), use the vertical scroll bar, mouse wheel,or keyboard commands to scan history.

You can use CTRL+SHIFT+PGUP, CTRL+SHIFT+PGDN, CTRL+SHIFT+UP, CTRL+SHIFT+DOWN, CTRL+SHIFT+HOME, andCTRL+SHIFT+END to scan the history.

Status & message linesSome of the terminals that AccuTerm can emulate display status, function key labels or host messageson the top or bottom lines of the screen. Depending on the terminal emulation selected, you may be ableto adjust the number of status lines to use.

For Wyse and ADDS emulations, up to 3 status lines are available: a host message line at the top of thescreen, and a "shifted" label line and "unshifted" label line at the bottom of the screen. For VTemulations, only a single status line is available for displaying a message from the host at the bottom ofthe screen. For the console emulations, the status line is not supported.

No message or status line: select if you do not want any status or message lines.Shared message & status line: select to use a single, shared line at the bottom of the screen. Ifthe native terminal supports more than one line (Wyse and ADDS Viewpoint), the bottom row of thescreen displays the most recently used line. The line is shared between label line, shifted label lineand host message line.Split message & status lines: select if you want two separate status lines. The host message lineis the top row of the screen display, and the label line is displayed on the bottom row. If the shiftedlabel line is programmed, pressing the SHIFT key displays the shifted label line. Releasing the SHIFT

key displays the unshifted label line.Separate message, status & shift lines: select if you want three separate status lines. The hostmessage line is the top row of the screen display, and the shifted and unshifted label lines aredisplayed on the bottom two rows.

Show scrollbarSelect this option if you would like a vertical scroll bar at the right edge of the screen window. Thevertical scroll bar is useful when scanning history, or if the window is too small to display the completescreen.

Allow Tektronix graphicsChecking this box enables the Tektronix 4010/4014/4100 graphic terminal emulation. If the Tektronixgraphics mode is enabled, AccuTerm will automatically switch to the Tektronix graphic emulation whenit receives the appropriate command from the host computer. AccuTerm will return to the previousemulation mode when graphics mode is terminated.

Automatic line wrapWhen this option is checked, automatic line-wrap is enabled. When the cursor reaches the end of a line,typing another character normally causes the cursor to move to the beginning of the next line. When thisoption is not set, the cursor does not move.

Welcome to AccuTerm 7 45

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Cursor styleAccuTerm supports either a blinking block or blinking underscore for the terminal screen cursor.

Protected attributeWyse 50 and Wyse 60 terminals use a visual attribute to identify "protected" characters. To change the"protected" attribute, click the drop-down arrow and select the desired attribute.

1.6.4.1.1 Color Settings

Most of the terminals which AccuTerm emulates do not support color. Instead, they have visualattributes like normal, reverse, dim, blink, underline, etc. While AccuTerm supports these visualattributes, it also supports color, even for terminals without native color support. This is done byassigning a foreground (text) and background color to each of the visual attributes that the nativeterminal supports.

Besides the visual attributes and colors, AccuTerm also supports "Visual Styles". This is a feature thatautomatically surrounds rectangular blocks on the terminal screen with a thin border. The borderresembles the border that Windows uses for text fields, lists, buttons and frames. Effective use of VisualStyles can make an ordinary text screen appear very Windows-like.

PreviewThe Preview window displays a sample screen with commonly used attributes using the current colorsettings. To choose a different color for any attribute in the preview window, click on the name of theattribute you would like to change. A drop-down list showing all possible color combinations will bedisplayed. Click an item in the list to change the foreground and background color of the attribute.

ThemeThe Theme buttons provide an easy way to select one of the built-in color themes. Themes consist ofthe palette colors, attribute colors and Visual Styles. To preview any of the built-in themes, hover themouse over one of the theme buttons. The Preview panel temporarily changes to the theme under themouse so you can see the effect without actually changing the current settings. To select one of thebuilt-in themes, click the theme's button.

Some of the built-in themes utilize AccuTerm's "Visual Styles" feature which can make character-basedscreens look like Windows. This effect requires careful use of the visual attributes by the application.Each rectangular block of characters on the screen with a common visual attribute will be enclosed in athin border, if one is defined for that attribute. Visual Styles supports 3 border styles: inset, raised andflat.

The built-in themes are:

Default colors: uses a palette of 8 dark and 8 light colors. The dark colors are a bit darker than thedark legacy colors and the light colors are a bit lighter. The "normal" color (this is the color that thescreen displays any time it is cleared) is light gray with black text.

Legacy colors: uses a palette of 8 dark and 8 light colors. The palette is essentially the same asthe original VGA palette. This is the palette that all prior versions of AccuTerm have used. The"normal" color is dark blue with yellow text.

White on Black: resets the palette to the 16 default palette colors and assigns combinations ofblack, light gray, dark gray and black to each of the visual attributes. The normal color is black withlight gray text.

AccuTerm 7 Help46

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Black on White: similar to White on Black, except that the normal color is light gray with blacktext.

Green Screen: resets the palette to the default palette, except that the Olive color is a mediumshade of green. Assigns combinations of light green, medium green, dark green and black to eachof the visual attributes. The normal color is black with medium green text.

Reverse Green Screen: similar to Green Screen, except that the normal color is medium greenwith black text.

System colors: sets several colors in the palette to "system colors" defined in the Windows DisplayProperties. The normal background color is "Window background" and the normal text color is"Window text." The following palette colors are replaced by a system color:

Black = Window Text Color

White = Window Background Color

Dark Blue = Highlight Background Color

Olive = Highlight Text Color

Light Gray = 3D Light

Dark Gray = 3D Shadow

Other palette colors are set the same as the default colors.

Classic Windows: this theme enables AccuTerm's Visual Styles. It uses the same palette asSystem Colors and assigns an inset border style to the "reverse" and "dim reverse" attributes, sothat text displayed using these attributes resembles a typical Windows text field. A raised border isassigned to "underline" and "dim underline" which resembles a Windows command button. Thenormal background color is "3D face" and the normal text color is "Window text."

Modern Windows: this theme is similar to Classic Windows except that a flat border is assignedto "reverse" and "dim reverse". This is similar to the border that Windows XP and later uses for textfields.

Advanced Colors & StylesClick this button to open the Attribute Colors panel, which allows you to fine-tune the colors and bordereffects for each visual attribute.

Border StyleIf you are using Visual Styles (or the AccuTerm private programming command to draw borders), youmust select a border style. Choose "thin" for a one-pixel border, or "thick" for a two-pixel border. Whenexternal borders are selected, vertical border lines are drawn in adjacent character cells. Otherwise theyare drawn inside the character cell and sometimes overlap the left or right edge of the character; thinborders work best with smaller font sizes, but are less dramatic than thick borders.

Line DrawingAccuTerm supports the line and box drawing characters used by the native terminals. AccuTermsupports three line drawing styles: normal, flat and beveled. Choose "normal" to draw lines using thecurrent character color. Choose "flat" to draw lines using the "outer flat border" color. Choose "beveled"to draw 3D lines using the "outer highlight" and "outer shadow" colors.

Welcome to AccuTerm 7 47

Copyright 2010-2011 Schellenbach & Assoc., Inc.

See also:Palette Settings

1.6.4.1.1.1 Attribute Colors

The mapping of visual attributes to colors is displayed as a table with an entry for each possible attributecombination. Select an item from the attribute table to modify or view its properties. Each item has a background color, text color and border style. Sample text drawn using the selected colors andborder style is shown in the attribute table. The border style is only available if text border size is not"none".

Text border sizeThe text border size is used by "Visual Styles" and determines the thickness of the border drawnaround blocks of text. Choices are "thin" (1 pixel) or "thick" (2 pixels). The border is usually drawn insidethe character cell bounds. Sometimes, especially for wide characters, the pixels used to draw the borderoverlap the pixels used to draw the character. If this is the case, you can select "thin (ext)" or "thick(ext)", which draws the vertical lines used for the border in the character cell immediately to the left orright of the block. If you use this setting, be sure that your application does not use the characters to theleft & right of blocks, otherwise the border lines might overlap those characters.

To select a border style for any attribute, the text border size must not be "none".

Line draw styleMost of the terminals that AccuTerm emulates support some form of line drawing. AccuTerm supportsthis function and lets you choose the style of line to use when drawing lines: normal, beveled and flat.

Attribute effectsSince AccuTerm assigns colors to the visual attributes, some of the visual effects are not as importantas they were on a real terminal. You can disable the underline effect or the blinking effect is you like.The assigned colors will still be used for those attributes, but the actual underline or blink will bedisabled.

See also:Palette Settings

1.6.4.1.1.2 Palette Settings

AccuTerm uses a palette of 16 colors for the background and foreground (text) color of all characters onthe screen. There are also 6 colors used for drawing borders when using Visual Styles.

The drop-down list for each of the palette entries displays a list of the 16 standard VGA colors, thesystem colors (from Windows Display Properties), and a final item called "Custom Color". Click on anyitem in the list to select that item, or click on Custom Color to open a color selection dialog where youcan choose any shade you like for the palette entry.

Since it is possible for the application to request specific foreground and background colors, it isrecommended that the color chosen for a particular palette entry is close to the color name associatedwith that entry.

AccuTerm 7 Help48

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Note: selecting a theme on the Colors & Themes panel will replace all of the palette entries with colorscompatible with the selected theme.

1.6.4.1.2 Background Settings

AccuTerm has the ability to display a graphic image as the background (or wallpaper) for the terminalscreen. If you enable the use picture for screen background option, you can enter (or browse for) thename of a file to display as the screen background. A preview of the screen with the selectedbackground picture shows what the selected picture might look like with text written over the backgroundusing the currently selected "normal" colors.

Background color transparencyBecause detailed pictures can be distracting and might actually obscure the text displayed on thescreen, the background picture's transparency can be adjusted. Setting the background colortransparency to 0% uses the picture as the screen background. Setting it to 100% shows the normalbackground color. Any setting in between blends the picture with the normal background color.

Background picture scalingThe background picture will be scaled to fit the screen window. Three scale modes are available:

Stretch: the picture is stretched (or compressed) in both directions to fit the window size.Fit: the picture's aspect ratio is maintained. It is stretched (or compressed) in one direction to fitthe window. Any space not filled by the picture in the other dimension is left black.Crop: the picture's aspect ratio is maintained. It is stretched (or compressed) in one direction tofit the window. The other dimension is cropped to the window size.

Note: the background picture is only shown in areas of the screen that are "normal". Characters whichuse a visual attribute other than "normal" obscure the background picture.

1.6.4.2 Keyboard Settings

The Keyboard Settings panel is specify keyboard options and open the keyboard programming window.

Locking programmed keysMost terminals provide commands that allow the host to program the function keys. If you would likethe host to be able to reset and reprogram the keys, select the Unlocked – host can reset orreprogram keys option. If you would like the host to be able reprogram keys, but not reset them totheir default values, select the Locked – host cannot reset keys to defaults option. If you would liketo prevent the host from resetting or reprogramming keys, select the Locked – host cannot reset orreprogram keys option.

Map F11 through F20 to CTRL+F1 through CTRL+F10Some terminals (like Wyse 50 and 60) have more than 12 function keys on their native keyboard.Since the PC keyboard only has 12 function keys, AccuTerm allows you to map the native F11through F20 keys to PC keyboard CTRL+F1 through CTRL+F10 (and native SHIFT+F11 to SHIFT+F20 to PCCTRL+SHIFT+F1 through CTRL+SHIFT+ F10).

Note: for Wyse, the last native key is F16; for the VT terminals, the last native key if F20; for allothers,the last native key is F12. In the preceding paragraph, replace F20 with the last native key forthe terminal being emulated.

Start with Caps Lock onSometimes applications are designed for upper-case text. If you would like the CAPS LOCK key state tobe "on" when the session is opened, check this option.

Welcome to AccuTerm 7 49

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Program the KeyboardClick this button to open the keyboard programming window.

1.6.4.2.1 Keyboard Programming

The Keyboard Editor is used to manually program the keyboard. For real terminals, this is usuallylimited to the function keys F1 to F12. However, AccuTerm supports programming almost any key on thekeyboard.

Click on any key to view or edit the programming for that key. The programmed contents of the selectedkey is copied to the Key data field, and the key's name is shown in the Selected key field. The state ofthe Shift, Ctrl and Alt keys reflected by the corresponding check boxes. Clicking the SHIFT, CTRL, orALT keys on the keyboard editor toggles their state. The new state is reflected in the check boxes.

Key dataIf the content of the selected key is the default for that key, the Key data field is shown using normal

characters. If the content is not the default, it is shown in bold. Control characters are shown with a

caret (^) prefix. You can enter most control characters by simply holding the CTRL key while typing the

corresponding alpha key. For example to enter CTRL-M, hold the CTRL key and press the M key. ^M will

be added to the text in Key data field.

The carat ( )̂ and backslash (\) characters are used as special prefixes in keyboard programming. If youneed to enter either of these characters, just enter two of them (^̂ or \\).

The keys can be programmed with a character sequence which is transmitted to the host when the keyis pressed, or a script command, which is executed when the key is pressed. To program a scriptcommand, enclose the command in square brackets, for example:

[Beep]

AccuTerm 7 Help50

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Button bar key captionOne of AccuTerm's features is the ability to show a Function Key Button Bar at the bottom (or top) of theterminal window. The bar contains 12 buttons which can be clicked to perform the same action as thecorresponding function key F1 to F12. The caption displayed in the buttons on the Function Key ButtonBar can be customized by entering the desired text in this field.

Button bar help hintLike the button bar key caption, each of the buttons can have a custom help hint that is displayedwhen the mouse hovers over the button. Enter the desired help text in this field.

Reset to default...Clicking the Reset to default button opens a Reset Keys dialog where you can specify which keys youwant to reset: the current key, the normal (A-Z, 0-9, etc.) keys, cursor keys, function keys, function keycaptions or the entire keyboard. If any option except "current key" is selected, you can restrict the resetto the current key bank. In this case, only the keys with the same Shift, Ctrl and Alt state are reset.Click the Reset button to perform the action or Cancel to return to the Keyboard Editor.

1.6.4.3 Font Settings

FontThe Font drop-down list shows all of the available fonts installed on your computer that are suitable foruse with AccuTerm. In order for a font to be considered suitable, it must be fixed-pitch (most Windowsfonts are not fixed-pitch), and it must support the ANSI character set. The AccuTerm font is alwaysincluded in the font list, and is the default font. This font has been optimized to look good over a widerange of character sizes and screen resolutions. We recommend that you use this font, especially if youhave a low resolution screen (640 x 480).

SizeThe Size list lists all font sizes available for the selected font. Choose "auto" if you want the font toscale to fit the screen size. This is the default.

StyleSelect either "normal" or "bold" font style.

Keep legibleIf this option is checked, and the Size is set to "auto", AccuTerm will never scale a font smaller than 5pixels wide by 7 pixels high.

Character setSelect the character set encoding that is used by the application running on the host. Most terminalshave one or more native character sets - these are always included in the character set list and are themost common choice. The current Windows (ANSI) character set is also included in the character setlist. Select this set if your host application is using the same character set that Windows is using. Othercharacter sets may be shown in the list - these may not function correctly at this time as full support forinternational languages is not complete. For VT220, 320 & 420 emulations, the selected character set isused when AccuTerm receives the SCS command to select the UPSS.

You will need to select a font that supports all the characters in the selected character set. If theselected font is not appropriate you will receive a warning.

Euro characterIf your host application needs to display the Euro currency symbol, enter the ASCII value of the Eurosymbol, as used on your system. Note: for most character sets there is no standard value for this

Welcome to AccuTerm 7 51

Copyright 2010-2011 Schellenbach & Assoc., Inc.

symbol. Some possible values are 128 (Windows ANSI), 164 (Latin-1 currency and Latin-9 Euro) and213 (IBM modified code page 850).

1.6.4.4 Sound Settings

Terminal bellLike the margin bell of antique mechanical typewriters, terminals have the ability to "ring a bell", usuallyto get the attention of the operator. The ASCII BEL control code is universally used to "beep" the terminal.AccuTerm provides great versatility in customizing the sound generated by this command.

Enable terminal bell soundBy default, the "bell" sound is enabled. If your environment requires a silent terminal, you can disable thesound by un-checking this box.

Play Windows soundBy default, AccuTerm will play the wave file assigned to Windows “Default Beep” program event definedin the Sounds applet in Control Panel. If you would like to play the sound defined for a different programevent you can select the event from the drop-down list. Click the Test button to play the soundimmediately.

Play media fileIf you would like choose your own WAVE or MP3 file to use as the "bell" sound, select this option. Clickthe Browse... button to browse for the desired file.

Beep using PC speakerTo use a real "beep" as the "bell" sound, select this option and enter the frequency of the beep in Hz,and the duration in milliseconds. The default is 600Hz for 250ms. The frequency must be between 200Hzand 4000Hz. The duration must be between 100ms and 5000ms.

1.6.5 Printer Settings

AccuTerm 7 uses the printer in two ways: First, AccuTerm can print the contents of the terminal screen(Screen Print). The user can perform a Screen Print by using File Print Screen from the main menu,

by clicking the button on the toolbar or by using the keyboard shortcut ALT+G. The application onthe host can also send a command to AccuTerm to print the screen.

The other way AccuTerm uses the printer is as a "slave printer". Most of the terminals that AccuTermemulates allowed the user to attach a printer to a special port on the terminal. This printer was known asa "slave printer", which was accessed by the application program differently than a "system printer". Theport that the slave printer was attached to was often called an "auxiliary port", so "slave printer" issynonymous with "auxiliary printer" or "aux printer".

AccuTerm can direct data that it receives from the host to the Slave Printer either by receiving theappropriate command from the application or by using File Printer On from the main menu. TheALT+P keyboard shortcut can also be used to toggle the state of AccuTerm's Slave Printer. A panel inAccuTerm's status bar indicates the current state of the Slave Printer.

AccuTerm can print in two modes: text and graphics. Text is the mode used by “real” terminals. Thismode is different from normal Windows printing in that the Windows “printer driver” is not used. Forscreen printing, text mode sends the screen text to the printer. For slave printing, AccuTerm passes rawdata, including control characters and escape sequences from the host directly to the printer (or

AccuTerm 7 Help52

Copyright 2010-2011 Schellenbach & Assoc., Inc.

spooler). In text mode, the host computer is responsible for setting printer font sizes and pageorientation by sending the appropriate printer commands.

In graphics mode, AccuTerm prints an image of the screen on the printer, using the Windows printerdriver. When the screen is printed in graphics mode, the printed image includes text, line drawingcharacters, and may optionally include the screen background and colors. For slave printing, AccuTermunderstands CR (carriage return), LF (line feed) and FF (form feed) control characters, but other controlcharacters and escape sequences are ignored. You can select the font, paper size and page orientationused for slave printing in graphics mode. You can select the paper size and orientation used for screenprint in graphics mode.

AccuTerm can also use special print adapter scripts to perform custom processing of slave or screenprint jobs.

AccuTerm 7 has separate printer configurations for screen and slave printing. Both configurations containsimilar settings which are described in this topic.

Enable printingEnable or disable slave or screen printing by checking or un-checking this box.

Printer selectionSelect the printer to use for slave or screen printing from the Printer drop-down list. The first item in thelist is always the current default Windows printer. Select this item to use the Windows default printer forslave or screen printing. Even though the name of the current default printer is shown here, selecting thisoption will track changes to the default printer. If a specific printer is desired, select it from the drop-downlist.

Text modeSelect text mode if you want to send raw text to the printer. For slave printing, the print data can containcontrol codes and escape sequences to control the printer. For screen printing, the screen text is sentto the printer with CR LF after each line.

Eject page before / after (text mode only)Selecting either of these options causes a page eject before or after each print operation. These optionsare only available in text mode. Graphics mode always ejects a page after the print operation.

Graphics modeGraphics mode is normally used for screen printing since the printed output closely resembles theactual screen, including the font used on the screen. Graphics mode may be necessary for slave printingif the selected printer cannot use text mode. Many printers now only support graphics mode.

Page Setup (graphics mode only)Click this button to select the font, paper size and orientation used for screen or slave printing ingraphics mode.

Print background (screen print only)Select this option to print the screen background when printing the screen in graphics mode.

Print in color (screen print only)Select this option to print the screen in color. If the Print background option is also checked, then thescreen background is also printed in color.

Welcome to AccuTerm 7 53

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Use print adapter scriptAccuTerm can utilize print adapter scripts to process screen or slave print jobs. The print adapter scriptcan launch command-line print utilities such as Print Wizard (from Rasmussen Software) to processthe print job (file). To use a print adapter, select this option and choose the desired adapter script fromthe drop-down list.

You can create your own custom adapter scripts. Use the supplied PrintWizardPCL.atsc script as atemplate, and customize your script to process the print job to suite your own requirements.

Print WizardSeveral Print Wizard adapter scripts are supplied with AccuTerm 7. If you have Print Wizard installed onyour PC, you can select one of the Print Wizard adapter scripts for screen or slave printing.

Print Wizard PCL Converter: this adapter script can print jobs that contain Hewlett PackardPCL on most any Windows printer, even if the printer does not have native PCL support. This isquite useful if you use PCL-formatted reports and forms in your application, but have newerprinters without PCL (or even text) support.

Print Wizard Interactive: this adapter script will open the Print Wizard user interface wherethe operator can choose the disposition of the print job - save as PDF, email, fax or print.

Print Wizard Kiosk: this adapter script is similar to the Interactive script. The Print Wizardkiosk mode presents more options than the Interactive mode.

Printer job close timeout (slave printer only)Enter the number of seconds to wait after receiving a Printer Off command before closing the print job.Usually, when the host computer needs to print a report, it sends a Printer On command, sends theprinter data and then sends a Printer Off command. But some host programs send a Printer Oncommand, send some data to the printer, send a Printer Off command, and send some other data to thescreen, and then send another Printer On command, and send more data to the printer, etc. Because ofthis, AccuTerm has no way of knowing when the host is finished sending the print job. The only way itcan determine this is to wait for a set amount of time after the Printer Off command before closing thejob. If this field is set to the default of 5 seconds, AccuTerm waits 5 seconds after the Printer Offcommand has been received before closing the print job.

This causes a delay when printing under AccuTerm. If all your host programs always turn the slave porton, send all the data and then turn it off, you can reduce this number to 1 or 0. If you have programs thatare constantly turning the slave port on and off, you may need to adjust this number until things workcorrectly.

1.6.6 Clipboard Settings

Paste Options: end-of-lineWhen the clipboard is "pasted" to an AccuTerm session, AccuTerm transmits the clipboard text to thehost computer. The end of line options determine what AccuTerm does at the end of each line: sendCR (default), send LF, send CF+ LF, send TAB, do nothing, or send a user-defined character. To specify auser-defined character, select the user defined option and enter the ASCII code of the character to besent at the end of each line.

If you do not want the end-of-line character to be sent after the last (or only) line pasted, check the Donot send line-end after last (or only) line pasted option.

AccuTerm 7 Help54

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Paste Options: end-of-textAfter pasting the clipboard to an AccuTerm session, AccuTerm can send an optional end of textcharacter. Normally, AccuTerm does not transmit any character at this time, but you can select EOF(which is the SUB or CTRL+Z control code), or send a user-defined character. To specify a user-definedcharacter, select the user defined option and enter the ASCII code of the character to be sent at theend of a paste operation.

Interline delayAfter each line from the clipboard is sent to the host computer, AccuTerm will wait for the specified delaytime before sending the next line. The delay time is specified in milliseconds. Note: this is the samedelay setting as the ASCII file transfer.

Copy Options: Clear selection after copyNormally, if there is a selection rectangle shown on the AccuTerm screen, copying the selection to theclipboard leaves the selection intact after copying. Check this option if you would like to automaticallyremove the selection from the screen after copying it to the clipboard.

Copy / Paste shortcutAccuTerm supports standard Copy and Paste functions using the Edit menu or the context (right-click) popup menu. You can also choose shortcut keys for these functions: CTRL+INS / SHIFT+INS orCTRL+C / CTRL+V. However, if you select the shortcut you will no longer be able to use the normalfunction of the shortcut keys. For example, if you select CTRL+C / CTRL+V for your Copy / Pasteshortcut, you will not be able to send the CTRL+C control character anymore.

1.6.7 Mouse Settings

AccuTerm supports extended mouse functions which can used to add mouse functionality to yourcharacter-based applications. Two mouse extensions are provided: host mouse reporting, and mousepattern matching.

Allow mouse input for supported applicationsThis option determines whether host mouse reporting is enabled. When this option is enabled (thedefault), AccuTerm will enter mouse input mode when the host sends the enable mouse inputcommand.

Mouse pattern file nameTo use mouse pattern matching, enter the name of the desired mouse pattern file here, or clickBrowse... to browse for the pattern file. Note: several sample mouse pattern files are included withAccuTerm in the Samples folder under the main AccuTerm program folder. These files have a .mou fileextension.

See also:Mouse support

1.6.8 File Transfer Settings

Use the File Transfer Settings panel to modify how AccuTerm's file transfer functions work. There aresections for ASCII, Kermit and X/Y/Zmodem. It is generally not a good idea to change these settingsfrom their default values unless you have a good understanding of the protocol and the companion filetransfer program on the host computer.

Welcome to AccuTerm 7 55

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ASCII settingsWhen transferring a file from the PC to a host computer (upload) using the ASCII protocol, the each linemay be terminated with a CR, LF or CR LF combination. Select the appropriate end-of-line for the hostcomputer's ASCII upload program by checking the appropriate option.

ASCII is a "blind" protocol. The host computer cannot tell AccuTerm if it is ready to receive the nextline. In order to perform reliable ASCII uploads, you may need to specify an Interline delay time. Aftereach line is sent to the host computer, AccuTerm will wait for the specified delay time before sendingthe next line. The delay time is specified in milliseconds.

Note: the Interline delay setting also applies to the Edit Paste and Edit Paste From...commands.

Kermit settingsThe Kermit file transfer protocol is popular with minicomputer and mainframe systems. There have beenmany revisions of this protocol, and it may be necessary to modify some of these settings tocommunicate with another Kermit program.

Kermit defaultsWhen AccuTerm’s Kermit is negotiating with the host's Kermit program, any of the checked options willbe requested, and if the other Kermit is capable, the option will be used.

The "Quote eighth bit" option should be used when the communications path only supports 7 data bits,or when the other machine is not capable of processing eight bit data.

The "Compress data" option may be used to perform rudimentary data compression. Not all Kermitprograms perform data compression.

The "CRC block check" option instructs Kermit to use CRC error detection instead of the standardsimple checksum error check. This results in more reliable transfers, especially over noisy phone lines.Not all Kermit programs perform CRC error checking.

Timeout settingsWhen using any of the X/Y/Zmodem protocols, you can specify the number of seconds before a timeoutoccurs. If the other machine fails to respond within the number of seconds specified here, the protocolwill attempt to resend the previously sent message.

Automatic Zmodem downloadIf this option is set, then AccuTerm will automatically begin receiving files using the Zmodem protocolwhen the other machine begins sending files using the Zmodem protocol. The files are saved in the"Default download directory".

Default modeSelect Text or Binary as the default transfer mode (used only for Kermit and Zmodem protocols).When you select Upload or Download from the main menu, the default mode will be selected. Also,select whether to overwrite existing files when downloading. You can change any of these options in theUpload or Download panel before performing the transfer.

AccuTerm 7 Help56

Copyright 2010-2011 Schellenbach & Assoc., Inc.

1.6.9 TCL Rules

Several of AccuTerm's MultiValue tools (Upload Wizard, Download Wizard, wED Editor and GUIDesigner) require a special MultiValue server utility to function. The server utility is typically initiated fromthe command line (TCL, ECL, etc.), and settings in this panel define how AccuTerm can verify that thesession is "at TCL".

Prompt charactersIt TCL can be recognized by one or more particular prompt characters, check the Prompt characterscheckbox and enter these characters in this field. For example, many MultiValue systems use a colon( : ) as the TCL prompt. Some systems change the prompt if a select list is active, for example, to agreater-than-sign ( > ). In this example, to require the current prompt be either a colon or greater-than-sign for AccuTerm to issue a TCL command, enter ":" and click Add, then enter ">" and click Add.

Cursor row is and Cursor column isIt TCL can be recognized by the cursor position, check the Cursor row is and/or Cursor column ischeckbox, then enter the position (or range of positions) where the cursor must be before AccuTerm willissue a TCL command.

TCL check (command, response and timeout)When the correct prompt character and cursor position are found (as specified in the previous options),AccuTerm will attempt send the command shown in this field to the host to "run at TCL". AccuTermwaits for the specified response to be returned from the host. If the correct response is returned withinthe timeout period, AccuTerm assumes that the session is at TCL and AccuTerm can run other TCLcommands. The default TCL check program is "FTTCL", which is installed with the AccuTerm hostprograms. When you run FTTCL, it displays the text "**TCL**" on the screen so AccuTerm can verifythat the session is "at TCL".

Server commandOnce AccuTerm recognizes that the session is at TCL, it sends the Server command to the host toinitiate "server mode". This mode is required for various AccuTerm MultiValue tools to read and writedata from the host. The default server program is "FTSERVER" which is installed with the AccuTermhost programs.

See also:Installing the host programs

1.6.10 Window Settings

The Window Settings pane is divided into two sections: Session Window and Main Window. TheMain Window section is shown only when the Show advanced options check box is checked. Thissection is only available to users with administrator privileges, and only when AccuTerm has beenstarted using "run as administrator".

Session Window

Session title formatWhen AccuTerm displays the session window title, it may add a copy number or session ID to the titletext. The copy number is only added when more than one instance of a particular session file is open.You can select various formats for the title from this drop-down list.

Welcome to AccuTerm 7 57

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Session titleNormally, AccuTerm uses the session file name as the session window title. If you would like to enteryour own title text, enter it in this field.

Session icon

AccuTerm normally shows the standard AccuTerm 7 session icon in the session tab. If you wouldlike to display a different icon, click the Change... button and select the desired icon.

Main Window

Main window titleIt is possible to customize AccuTerm's main window title by entering the desired text in this field.

Main window icon

AccuTerm normally shows the standard AccuTerm 7 program icon in the main window title bar.The same icon is used in the Windows task bar and in the ALT+TAB window. If you would like to display adifferent icon, click the Change... button and select the desired icon.

Splash screenLike many other Windows applications, when AccuTerm starts up, it briefly shows a "splash screen"which contains a graphic image. The splash screen is shown while AccuTerm opens files and performsother preparatory tasks. You can disable this behavior by un-checking the Show splash screen option.You can also select a custom graphic to be used in the splash screen. If you select a custom splashgraphic image, its dimensions should be approximately 500x250 pixels.

1.7 Customizing the Menu and Toolbar

A custom AccuTerm 7 menu can be created for the current user (user's personal custom menu) or for allAccuTerm users (master menu). When the Menu Designer starts, you can select whether to create (ormodify) the current user's menu or, if you have administrator privileges, the master menu. When creatingor modifying the master menu, you can force the master menu to override any personal menus bychecking the override box in the Menu Properties pane. Otherwise, a user's personal custom menu haspriority over the master menu.

Menu StructureThe AccuTerm menu is a hierarchical structure of Bands and Tools. A band is a collection of relatedtools organized in a logical manner. There are different types of bands (menu, toolbar, status bar), aswell as different types of tools (menu item, toggle item, panel, etc). Bands contain tools which performactions.

Menu DesignerUse the Menu Designer to customize AccuTerm’s main menu, popup menu, toolbar and status bar.Use caution when modifying AccuTerm’s menu structure; it is possible to make AccuTerm non-functional. The menu designer allows you to add, remove and modify menu items, sub-menus, toolbarbuttons and status bar fields.

AccuTerm 7 Help58

Copyright 2010-2011 Schellenbach & Assoc., Inc.

To start the Menu Designer, use Tools Customize Menu from the main menu.

The Menu Designer displays the menu structure using a tree in the left pane of the designer windowand properties in the right pane. The root node in the tree is AccuTerm Menu & Toolbar. Under theroot are nodes for each band in the menu structure. Each menu, toolbar, status bar and session bar isconsidered a band. There can be only one Main Menu band and only one Session Bar band. It ispossible to have multiple Toolbar, Status Bar, and Context Menu bands, although having multiplesmay be confusing to the user.

Selecting a node (band or tool) in the menu tree structure causes the right pane of the designer windowto display the properties of that node. You customize the selected object by adjusting its properties.

Menu propertiesBand propertiesTool properties

NewThe New button creates a new band if the current selection is the root. The New button creates a newtool if the current selection is a band or Sub-Menu tool or Dropdown Button tool. Clicking the Newbutton displays a drop-down menu that allows you to choose the type of item to create.

DeleteThe Delete button deletes the currently selected item.

DefaultThe Default button resets the entire menu structure back to its default state. Any customizations arelost. You will receive a warning to confirm this action if you click this button.

CancelClick the Cancel button to close the menu designer and abandon any modifications you have made.

OKClick the OK button to close the menu designer and accept all modifications you have made.

1.7.1 Menu Properties

When the root node (AccuTerm Menu & Toolbar) is selected in the menu tree, the properties panedisplays the actual menu file name. If the master menu was selected from the designer startup page,the override status of the master menu is also displayed in the properties pane.

Master menu overrideSelecting the Master menu override option causes any existing personal custom menus to beignored, and prevents the user from creating or modifying his personal menu. If this option is notselected, the master menu is used unless the user has a personal menu. Users will be able to createand modify their personal menu.

1.7.2 Band Properties

NameSpecify the name of the band. The following band names are recognized by AccuTerm and should not bechanged: Menu, StatusBar, Toolbar, ContextMenu, SessionBar and TabCtx.

Welcome to AccuTerm 7 59

Copyright 2010-2011 Schellenbach & Assoc., Inc.

TypeDisplays the band type: Main Menu, Popup Menu, Toolbar, Status Bar or Session Bar. You cannotchange the band type; the type is determined when you create a new band using the New button.

StyleChoose the band style. Usually this is "Normal", but you can choose one of the other styles if you wantto display icons in the Session Bar and Status Bar, or display captions in a Toolbar.

TitleThe band Title is only used if a Toolbar band is "floating" - that is - not "docked" to an edge of the mainwindow. If you change the Dock position of a Toolbar to "floating", then this title is displayed at the topof the floating Toolbar window.

Dock positionYou can change the dock position of Toolbar and Status Bar bands. Normally, Toolbar bands are dockedat the top of the window, and Status Bar bands are docked at the bottom.

EnabledWhen a band is Enabled, the user can click on tools in that band. If it is disabled, tools on the band donot respond to user clicks or keyboard shortcuts.

VisibleIf you want the user to see the band, set the Visible property. If you clear this property, the band will behidden. The Visible state of most bands is updated by AccuTerm based on preferences or menuselections.

Large iconsThe Large icons property is set at runtime by AccuTerm. Do not alter this property here.

Auto wrapIf you check the Auto wrap property for a Toolbar band, and the window is not wide enough to display allof the Toolbar buttons, the Toolbar will "wrap" at the right edge of the window and show on two or morelines.

See also:Tool Properties

1.7.3 Tool Properties

IDThe ID property identifies each tool. Many IDs are built-in and can be selected from the dropdown list.When you create a new tool that does not duplicate the function of a built-in tool, you must specify aunique ID in the range of 10000 to 19999.

TypeThe tool Type depends on the type of band the tool is on:

Menu or Popup Menu

Menu Item: when the user clicks a Menu Item, an action is performed.

Sub-Menu: when the user clicks a Sub-Menu, another menu level is displayed.

AccuTerm 7 Help60

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Toggle Item: when the user clicks a Toggle Item, the item changes state (checked vs.unchecked). When a Toggle Item is "checked", it may display a different icon, or acheckmark if no icon has been designated. When a Toggle Item changes state, its action isperformed.

Group Item: a Group Item is like a Toggle Item, except that only one item in the group canbe "checked" at a time. A group is delimited by a menu item that has the Begin groupoption checked.

Toolbar

Normal Button: when the user clicks a Normal Button, an action is performed.

Dropdown Button: when the user clicks a Dropdown Button, another popup menu (sub-menu) is displayed.

Toggle Button: when the user clicks a Toggle Button, the button changes state (depressedvs. raised). When a Toggle Button is "checked", it may display a different icon from the"unchecked" state. When a Toggle Button changes state, its action is performed.

Group Button: a Group Item is like a Toggle Button, except that only one button in the groupcan be "checked" at a time. A group is delimited by a button item that has the Begingroup option checked.

Status Bar

Normal panel: displays text and/or icon in the Status Bar.

Num Lock panel: displays the state of the Num Lock key in the Status Bar.

Caps Lock panel: displays the state of the Caps Lock key in the Status Bar.

Scrl Lock panel: displays the state of the Scroll Lock key in the Status Bar.

Time panel: displays the current time in the Status Bar.

Date panel: displays the current date in the Status Bar.

Date/Time panel: displays the current time and date in the Status Bar.

Session Bar

A Session Bar does not have any design-time tools. The Session Bar buttons are createdautomatically.

StyleThe tool Style determines whether text, icon or both are displayed. You can also choose "normal",which will display the most common style for the tool and band type.

Caption

The tool Caption text is displayed in Menu and Status Bar tools. It can optionally be displayed for aToolbar button. For Menu tools, you can create an "accelerator" for the item by inserting an ampersand( & ) before the letter you want to use for the accelerator in the Caption.

AlignmentFor Status Bar tools, choose the text alignment: Left, Right or Center.

Welcome to AccuTerm 7 61

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Border styleFor Status Bar tools, choose the panel border style: Inset, Raised or None.

Panel sizeFor Status Bar tools, choose the panel size: Fixed Width, Fit Contents or Spring. If you choose FixedWidth, and set the Minimum Panel Width to zero, the panel will be sized using the text in the Captionproperty. If you choose Fit Contents, the panel will adjust size any time the Caption text is updated. Ifyou choose Spring, the panel size is like Fit Contents, but varies with window size. All Spring panels areresized when the window size changes.

Minimim panel widthSpecify the size of a Fixed Width panel, or the minimum size for a Fit Contents or Spring panel. Thisvalue is in pixels.

ShortcutFor Main Menu tools only, you can select a keyboard shortcut for that tool. This shortcut is usuallycombined with Ctrl, Shift and Alt modifier keys. Note that the shortcut overrides any other use of thekey. For example, if you designate Ctrl+C as a shortcut, AccuTerm will be unable to send the CTRL+C

control code when you press CTRL+C.

Tool tipTool tip text is displayed when you leave the mouse over a Toolbar tool or Status Bar panel.

ActionThe Action field determines what happens when the user clicks the tool. For built-in tools, the Action isthe same as the ID. For user-defined tools, you can either enter a string to send to the host, or a script,in this field. The syntax is exactly the same as function key programming.

EnabledWhen a tool is Enabled, the user can click on it. If it is disabled, the click is ignored. For built-in tools,AccuTerm will adjust this property depending on the program and session state.

VisibleIf you want the user to see the tool, set the Visible property. If you clear this property, the tool will behidden. For built-in tools, AccuTerm will adjust this property depending on the program and sessionstate.

CheckedThis is the initial state of a Toggle Item, Group Item, Toggle Button or Group Button. For built-in tools,AccuTerm will adjust this property depending on the program and session state.

Begin groupIf the Begin group property is set, there will be a separator before the menu item or toolbar button. Thisproperty is also used to identify which buttons belong to a group of Group Items or Group Buttons.

Select Image...Click the Select Image button to open the Image Selection dialog to choose an icon for a button or menuitem.

See also:Band Properties

AccuTerm 7 Help62

Copyright 2010-2011 Schellenbach & Assoc., Inc.

1.7.4 Image Selection

When you click the Select Image... button in the Tool properties panel, the Image Selection dialogis displayed. Use this dialog to select an icon to display for the tool. You can select both normal (un-checked) and checked icons. For each tool, the image can be one of the built-in icons, or you canspecify a file name for the image.

Image sourceChoose the image source, or specify that the tool does not have an icon.

Normal imageCheck this box if the tool has a normal (un-checked) icon. Enter the image file name (if the tool's icon isloaded from a file at runtime), or the image ID if the tool uses a built-in image. Click the Browse buttonto browse for image files or built-in images.

Checked imageCheck this box if the tool has a checked icon that is displayed when the tool is in its "checked" state.Enter the image file name (if the tool's icon is loaded from a file at runtime), or the image ID if the tooluses a built-in image. Click the Browse button to browse for image files or built-in images.

1.8 Auto Dialer

The AccuTerm Auto Dialer gives you an easy way to store and dial phone numbers. The Phonedirectory list contains all the phone numbers in the current directory file. You can have as many phonenumbers in a directory file as you want. You can also have any number of directory files. The defaultdirectory file name is set in Files & Folder Settings.

To access the Auto Dialer, select the Tools Dialer... from the main menu or click the buttonon the toolbar.

Note: the Auto Dialer is only available if the current session is configured to use a Modem for itsconnection.

DialingUsing the Auto Dialer is very simple. To dial a number, double click an entry in the phone directory, orhighlight the desired number in the phone directory list then click the Dial button.

If you want to dial a number which is not in the directory, simply enter the desired phone number in the Number field, then click Dial.

Hanging UpTo terminate a connection, click the Hang Up button.

Adding a new entryTo add a new entry to the directory, click on the New button. Enter a phone number and optionaldescription, then click the Add button.

Deleting an entryTo delete the selected entry, click the Delete button.

Modifying an entryTo change an existing description or number, select the entry you want to change, modify the

Welcome to AccuTerm 7 63

Copyright 2010-2011 Schellenbach & Assoc., Inc.

description or number and click the Edit button.

Creating a new directory fileTo create a new phone directory file, click the Change Directory button. From the Open PhoneDirectory File dialog, select the drive and directory for the new phone directory file, and enter the newphone directory file name. Click OK to create the new phone directory file.

Changing directory filesTo select a different phone directory file, click the Change Directory button, then select the new phonedirectory file. Click OK.

Changing dialing optionsTo change the dialing options such as your current location, dialing prefix, credit card information, etc.,click the Dialing Options button.

Directory file formatPhone directory entries are stored in a standard tab delimited ASCII file with a file extension of .dat. Thename is the first field and the phone number is the second field. Each entry has it’s own line. Manyapplications have the ability to export data to ASCII files so it may be possible to use your existingphone directories from other applicatoins with the Auto Dialer.

1.9 File Transfer

AccuTerm has the ability to transfer files between your computer and the host computer using one of thefive built in file transfer protocols: ASCII, Kermit, Xmodem, Ymodem and Zmodem. The manual (non-MultiValue) file transfer features are accessed from the Tools Upload or Tools Download fromthe main menu.

AccuTerm also includes a library of file transfer utility programs for use with MultiValue based hostsystems. For users of MultiValue based systems, using these utilities is the recommended method ofexchanging data between your PC and the host system. If you have the MultiValue host programsinstalled, you can use the File Transfer Wizard to guide you through the file transfer process.

See also:Manual UploadManual DownloadMultiValue File Transfer WizardMultiValue File Transfer Programs (installation and use)

1.9.1 File Download

Download transfers a file (or files) from the host computer (remote machine) to your workstation.Downloads may use any of the supported protocols. Usually, to perform a file download, you would startthe sending program on the remote machine while in normal terminal emulation mode. Then after theremote sending program has been started, use Tools Download from the main menu to open theDownload dialog, select the appropriate protocol, select the destination directory (and file name ifusing Kermit or Xmodem), then press ALT+L or click the Download button.

If you want to select the destination directory, but not initiate the transfer immediately, you can click the OK button instead. In this case, all of your selections remain until the next time you open theDownload dialog.

AccuTerm 7 Help64

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Note: if you are using a MultiValue-based host system (D3, Pick , UniVerse, Unidata, QM, jBase, etc.),AccuTerm includes a library of MV/BASIC programs which can be installed on the host. When thesehost-based programs are used, they greatly simplify the exchange of data between the host computerand the workstation. See MultiValue File Transfer and Server Programs for details on installing and usingthese programs.

Directory and File SelectionClick the Browse button to select the destination directory. If you have selected a protocol whichrequires a file name (ASCII or Xmodem), then you also need to specify a file name for the downloadedfile.

ProtocolSelect the protocol to be used for downloading the selected files by clicking the appropriate optionbutton: ASCII, Kermit, Xmodem, Ymodem or Zmodem. For details about each of the protocols, seethe discussion in the previous section.

ModeWhen the protocol is set to ASCII, the mode is text; when it is set to Xmodem or Ymodem, the modeis binary. When using Kermit, you can select either text or binary mode. The mode for Zmodemtransfers is determined by the sender.

When text mode is selected lines are terminated with a CR LF. When binary mode is selected, the filesare transferred without alteration.

OverwriteCheck this box to allow existing files to be overwritten. Note: Kermit and Ymodem always overwrite.When Zmodem is selected, the sender controls the action to take if a file exists.

1.9.2 File Upload

Upload transfers a file (or files) from the workstation to a remote machine (host). Uploads may use anyof the supported protocols. Usually, to perform a file upload, you would first start the receiving(download) program on the remote machine while in normal terminal emulation mode. Then after theremote receiving program has been started, use Tools Upload from the main menu to open theUpload dialog, select the appropriate protocol, select the file(s) to upload, then press ALT+L or click theUpload button.

If you want to select items to upload, but not initiate the transfer immediately, click the OK buttoninstead of the Upload button. In this case, all of your selections remain until the next time you openthe Upload dialog.

Note: if you are using a MultiValue-based host computer (D3, Pick , UniVerse, Unidata, QM, jBase,etc.), AccuTerm includes a library of MV/BASIC programs which can be installed on the host. Whenthese host-based programs are used, they greatly simplify the exchange of data between the hostcomputer and the workstation. See MultiValue File Transfer and Server Programs for details on installingand using these programs.

File SelectionClick the Browse button to select the file(s) to upload. If you have selected a protocol which can uploadmore than one file (Kermit, Ymodem, or Zmodem), you can select multiple files, otherwise select onlya single file.

Welcome to AccuTerm 7 65

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ProtocolSelect the protocol to used for uploading the selected files by clicking the appropriate option button: ASCII, Kermit, Xmodem, Ymodem or Zmodem.

The ASCII protocol by its nature has no error checking. This protocol should only be used when there isa local, error free connection, or when the host system does not support any of the other protocols. The ASCII protocol only sends text files, and it is not a "batch" protocol - you can only send one file.You can adjust the line termination to CR, LF or CR LF by selecting the desired option in the File Transfercategory of the Settings dialog box (Tools Settings menu). You can also set the inter-line delaytime in the same section (this is the amount of time AccuTerm waits between lines when sending a file).

The Kermit protocol provides error detection and correction. Kermit is a "batch" protocol, so you cansend multiple files. Kermit can send either text or binary files; text files are converted to the formatrequired on the receiving machine. Kermit is slower than X/Y/Zmodem, but is the most portableprotocol. It often succeeds when the other protocols fail. Several options may be set in the FileTransfer category of the Settings dialog box. These include the retry limit, timeout period, end of linecharacter, eighth bit quoting, data compression and block check type (checksum or CRC).

Xmodem is a binary protocol which includes error checking. Xmodem is not a "batch" protocol; youcan only send one file using Xmodem, and you need to specify the file name to the receiving program.Files transferred using Xmodem "grow" to the next multiple of 128 bytes. The Xmodem protocolrequires an 8 bit data path, and full 8 bit transparency (you cannot use Xon/Xoff handshaking whenusing Xmodem). You can set the Xmodem timeout period in the File Transfer category of the Settingsdialog box.

Ymodem is a binary protocol which includes checksum or CRC error checking. Ymodem is availablein several "flavors"; the "flavor" used by AccuTerm is Ymodem-G (1K blocks, batch oriented). The Ymodem protocol requires an 8 bit data path, and full 8 bit transparency (you cannot use Xon/Xoffhandshaking when using Ymodem). You can set the Ymodem timeout period in the File Transfercategory of the Settings dialog box.

Zmodem is a sophisticated file transfer protocol which is popular on PCs and Unix basedminicomputers. Zmodem provides robust CRC error checking, several options for existing files and textfile conversion. If the receiving machine uses the "rz" program, AccuTerm will send the "rz" commandbefore sending the files, to automatically invoke the receiver’s Zmodem program. The Zmodemprotocol requires an 8 bit data path, but full 8 bit transparency is not normally required (you can use Xon/Xoff handshaking when using Zmodem). You can set the Zmodem timeout period in the File Transfercategory of the Settings dialog box.

ModeWhen the protocol is set to Kermit or Zmodem, a Mode frame is displayed. You can select text orbinary mode. When text mode is selected the line termination is adjusted to match that of thereceiving machine. When binary mode is selected, the files are transferred without alteration. ASCIIalways transfers text files, and Xmodem and Ymodem always transfer in binary mode.

OverwriteWhen the Zmodem protocol is selected, another frame, Overwrite, is displayed. When using Zmodem,the sender controls the action to take if a file exists on the receiving machine. Select never if you wantto preserve all existing files. Select always to overwrite existing files. Append will append ontoexisting files. The newer option replaces existing files only if the file being sent is newer than theexisting file. The update option overwrites existing files; non-existing files are not transferred. Use theresume option for crash recovery after aborted transfers - if a file does not exist on the receivingmachine, it is sent; if a file exists, but it is shorter than the file on the sending machine, the remainder of

AccuTerm 7 Help66

Copyright 2010-2011 Schellenbach & Assoc., Inc.

the file is sent; if a file exists, but it is the same length or longer, it is skipped. Note: the resume optionmay only be used if the transfer mode is binary.

1.9.3 Import & Export MultiValue Data

To make the most effective use of AccuTerm with your MultiValue based host system, you shouldinstall the AccuTerm host programs. These programs implement the Kermit and ASCII file transferprotocols, coordinate the transfer of data between your computer and the host, import and export datain a variety of formats and provide a simple host-to-host transfer facility. See Installing MultiValueHost Programs for information on installing the host programs.

In order to understand how to best use AccuTerm’s MultiValue file transfer features, the differencesbetween the PC and MultiValue file systems must be examined. Traditional PC files may beprograms, documents or data files; in the typical MultiValue system, programs and documents arestored as individual items (records) in a file, whereas a data file is collection of related items (records)in a file, with an associated file dictionary.

When exchanging data between your computer and your MultiValue host, it is important to realize thedifference between “document files” and “data files”.

MultiValue File Transfer WizardUse the File Transfer Wizard to simplify the process of uploading or downloading data and documentsbetween your PC and MultiValue host. The wizard uses a series of simple questions to guide youthrough the file transfer process. You can use the wizard to help you upload or download data ordocument files.

MultiValue File Transfer UtilitiesWhen transferring “document files” between the PC and MultiValue host, use AccuTerm’s FT utility.This utility transfers MultiValue items to PC files and vice versa. The key concept is that eachMultiValue item becomes a separate file on the PC.

When transferring “data files” between your PC and your MultiValue host, use the FTD utility. Thisutility transfers a set of MultiValue items to a single PC file and vice versa. The key concept is that aset of items on the host becomes a single file on the PC.

You can also use AccuTerm to trasnfer data between two MultiValue hosts. The FTPICK utility isused to transfer data from one MultiValue machine to another, either directly (using two concurrentAccuTerm sessions), or using an intermediate PC file.

Kermit is the recommended file transfer protocol because of the automatic error detection andcorrection. Also, even with the increased overhead ensuing from Kermit, because the sender andreceiver are synchronized and no time delays are required, the Kermit protocol usually performsbetter than the ASCII protocol when receiving a file.

MultiValue File Transfer Functions:

Installing MultiValue Host ProgramsUpdating the MultiValue Host ProgramsDownloading documents to your PCUploading documents from your PCDownloading data files to your PC (export)Uploading data files from your PC (import)Transferring data between two MultiValue hosts

Welcome to AccuTerm 7 67

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Integrating file transfer functions into MultiValue applications

1.10 Data Capture

Initiating Data Capture

AccuTerm is capable of capturing data to a file data. The source of the captured data can be either theentire stream of characters received by the workstation (possibly filtering out control characters), or thedata which would normally be printed to the slave printer. To start data capture, select Tools

Capture from the main menu or click the button on the toolbar. Select the capture file andoptions in the Begin Capture dialog.

Capture to FileEnter the capture file name in this field, or click the Browse button to select the directory and file.

ModeSelect New file only, Overwrite, Append, or Clipboard by clicking the appropriate option button. Ifyou select Overwrite or Append and the file does not exist, AccuTerm will create the file. If youselect New file only and the file does exist, a warning will be displayed. If you select a file or folder forwhich you do not have the necessary permissions to update, a warning will be displayed.

SourceSelect the data source to be captured as Received data or Printed data. If Received data isselected, all data received by AccuTerm (except when a file transfer is occurring) will be captured to thespecified file. This includes all control characters and escape sequences. If Printed data is selected,all data which would normally be printed to the slave printer port is captured to the selected file, and notprinted.

FilterSelect the Text only (strip control codes) option if you want control characters filtered out of thecaptured data.

To initiate the data capture, click the Start Capture button.

Terminating Data CaptureIf data capture is already in effect (as indicated in the status bar), selecting Tools ? Capture or clicking

the button on the toolbar will display the End Capture dialog. Click the End Capture button toterminate the capture operation and close the capture file, or click the Continue button to resumecapturing.

Data capture can also be controlled by the host using AccuTerm private escape sequences. See AccuTerm Programming for details.

1.11 Troubleshooting

Common problems and solutions are described here. If you cannot find the solution to your problem, youshould visit AccuSoft's web site and check the FAQs (frequently asked questions) to see if a solution isavailable. Otherwise, you can send an email to [email protected].

AccuTerm 7 Help68

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Unanticipated ErrorsIf AccuTerm encounters an unanticipated error condition, the "Unanticipated Error" dialog box will bedisplayed showing the error source and description. You can choose to Ignore the error, Retry the failingoperation, or Fail (terminates the failing operation).

When an unanticipated error occurs, a log of the error is written to the main program directory (atwin70.log). If you have email capabilities, you can email this log file to [email protected] along with adescription of the conditions surrounding the error (What you were doing when the error occurred? Whatversion of Windows? Any other programs open?).

Modem ProblemsMost modem problems are caused by incompatible modems (hardware) or by incorrect settings on oneor both of the modems involved (your modem and the host computer modem). Some common problemsare outlined here.

Unable to connectIf you attempt to dial and you hear the typical modem noises, but eventually you receive an errorindicating that the connection failed, your modem may not be compatible with the remotemodem. Try adjusting the baud rate, data bits, stop bits, parity and handshake on your modem(Tools->Settings->Connection, click the "Override port settings" option). Set these options tomatch the port on the host computer. Typical settings are 9600 baud, 8 data bits, 1 stop bit, noparity and Rts/Cts handshake.

Garbled charactersIf you are able to connect, but get garbled characters displayed on your screen, then it is likelythat the baud rate of the remote modem is incorrect. This may be caused by the two modemsnegotiating a higher baud rate than the host computer port is set to. Most host computers arenot capable of adjusting thier baud rate on the fly. Try to set your baud rate to match the hostport baud rate (Tools->Settings->Connection, click the "Override port settings" option). Also, trychecking the "Connect only at this speed" option.

If you are unable to resolve the problem by changing settings on your end, it may be necessaryto adjust the settings of the remote modem. In order to do this you normally need to disconnectthe remote modem from the host and connect it to a dumb terminal (or PC running AccuTerm).Refer to the remote modem documentation for instructions on setting the modem serial portbaud rate to a fixed rate, and saving this setting to non-volatile memory. Reconnect the remotemodem to the host and see if this resolves your problem.

Disconnects immediately after connectingSometimes a modem will successfully connect to the remote system, and then disconnectimmediately. One of the causes for this is using incompatible error correction protocol. Often,disabling error correction will solve this. You need to change this setting in Control Panel (Start->Settings->Control Panel->Modems). Click the Properties button. Select the Connection tab.Click the Advanced button).

Network ProblemsMost network problems are caused by incorrect network settings or a network failure. AccuTerm 7 onlylets you specify the host name or IP address and optional host port number. Other network settings arebeyond the scope of this document.

Welcome to AccuTerm 7 69

Copyright 2010-2011 Schellenbach & Assoc., Inc.

If you receive a "Timeout" error when attempting to open a network connection, the host computer youare attempting to connect to may not be responding. AccuTerm's default timeout is 15 seconds, whichis sufficient for most hosts even across the Internet.

If you receive a "Host unreachable" error then the IP address or subnet mask of your machine may beincorrect. Also, check the IP address of the host you are attempting to connect to.

If your connection drops after an idle period, it may be caused the an "idle timeout" on the host (or arouter). If this happens, you may be able to enable the"keepalive" option for your network connection.

1.12 Contacting AccuSoft

AccuSoft Enterprises customer service department may be reached by phone, fax, email or the web.

AccuSoft Enterprises8041 Foothill Blvd.Sunland, CA 91040USA

Phone: 1 (818) 951-1891

Fax: 1 (818) 951-3606

Email: [email protected]

Web: www.asent.com

Top Level IntroThis page is printed before a new

top-level chapter starts

Part

II

AccuTerm 7 Automation 71

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2 AccuTerm 7 Automation

2.1 Macro Recorder

Recording a MacroYou can use the Macro Recorder to create an AccuTerm macro by recording a sequence of actions,including sending keystrokes to the host and waiting for responses from the host. To start recording anew macro, use Tools Macro Record New Macro from the main menu. When you are finished

recording the macro, click the button on the Macro Recorder toolbar. You can temporarily

suspend recording by clicking the button on the Macro Recorder toolbar. To resume recording,

click the button.

When you are finished recording a macro, the Save Macro dialog will be displayed. Here you can giveyour recorded macro a name (up to 32 characters, letters, numbers or underscore characters only,beginning with a letter), a short description (up to 32 characters) which is displayed in the Tools Macro Run Macro sub-menu, a detailed description and a shortcut key.

The recorded macro is saved in the "AccuTerm Macros.atsc" script file when you click the Save button.If you do not have a macro script file open yet, you will be prompted to select the file name for yourmacro file. When you start AccuTerm, the macro script file (if it exists) is automatically loaded.

Macros are recorded as a sequence of Visual Basic for Applications (VBA) statements.

Running a MacroTo run a macro, select the desired macro from Tools Macro Run Macro menu. Alternatively, ifthe macro has a shortcut key assigned to it, simply press the shortcut key combination to run themacro.

Editing a MacroYou can edit your recorded macros by selecting Tools Macro Edit Macros... from the mainmenu.The macro script will be displayed in the macros tab of the AccuTerm Script Editor window. Macrosare written using Visual Basic for Applications (VBA) language. For more information about VBAscripting, see the Scripting.

2.2 Scripting

AccuTerm 7 includes a powerful scripting language based on the popular Microsoft Visual BasicProgramming System, Applications Edition (VBA). The language has been enhanced to allow your scriptto control almost every aspect of AccuTerm’s operation.

Script EditorAlthough the Script Editor is not the only way to create and use VBA scripts with AccuTerm, it is aconvenient place to learn about AccuTerm's scripting features. To access the Script Editor, use Tools

Script Editor from AccuTerm's main menu.

The Script Editor window has a standard Windows menu and toolbar with tabs for each of the two scriptfiles that AccuTerm supports: Main Script and Macro. User-created script files are loaded into the Main

AccuTerm 7 Help72

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Script tab; recorded macros are loaded into the Macro tab.

To quickly locate a function or subroutine in the code pane of the script editor, select it from the Procdrop-down list. If you would like the Run command (or the Debug Step Into) to begin execution withthe selected procedure, check the Run selected procedure check-box (normally Run beginsexecution with Sub Main() ).

Creating a ScriptScripts are created by entering VBA statements into the script code window. Scripts usually begin with Sub Main() and end with End Sub. Enter any valid VBA statements between the Sub Main() and End

Sub statements.

You can create other subroutines and functions which are called by your Main() subroutine (or from

function keys, popup menus, host commands, etc). Subroutines begin with the Sub keyword followed by

the name of the subroutine. If the subroutine requires arguments, enclose them in parentheses. The laststatement in a subroutine is End Sub.

Functions are similar to subroutines, and begin with the Function keyword, and end with the End

Function statement. Functions return a value; simply assign the return value to the function name within

your function code.

Certain declarations must be placed before the Main() subroutine. Declare global variables (using the

Global keyword), DLL functions (using Declare Function or Declare Sub), and user-defined data

types (using Begin Type and End Type) before Sub Main(). Within a subroutine or function, declare

any local variables using the Private, Dim or Static statement.

In addition to local references to subroutines and functions defined in your script, those subroutines andfunctions may also be called from outside of your script in three ways: First, they may be called byscript commands sent by the host (see AccuTerm Programming). Second they may be called by scriptcommands programmed into function keys (see Keyboard Settings). Third, they may be called by scriptcommands executed in response to custom menu and toolbar actions (see Tool Properties).

Saving a Script File

After the script has been created or modified, save the script by clicking the button or use File Save or File Save As from the Script Editor menu.

Loading a Script File

To load a script file, click the button use select File Open from the Script Editor menu.

Loading and Running a Script FileTo load and run a script file, use File Run from the Script Editor menu. Enter or browse for the nameof the script file to run, and click the OK button. Note: execution always begins with Sub Main().

Closing the Script WindowSelect the File Close from the Script Editor menu to close the script window. If there are anyunsaved changes to the current script, you will be prompted to save changes.

AccuTerm 7 Automation 73

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Instead of closing the Script Editor window, you can hide it by using Window Hide or activate themain AccuTerm window by using Window AccuTerm 7.

Printing a ScriptSelect File Print from the Script Editor menu to print the current script. Select File Print Setupto select the printer used to print the script.

Editing ScriptsThe Script Editor Edit menu provides many editing functions such as Undo, Redo, Cut, Copy, Paste,Delete, Select all, Indent, Outdent, Find and Replace. The font used in the script window may bechanged by using Edit Font, and the dialog editor may be invoked by using Edit User Dialog.

See also:AccuTerm Object Reference Running a Script Debugging a Script Controlling AccuTerm with Scripts Script Editor Reference Script Language Reference Script Language Extensions

2.2.1 Running a Script

To run a script from the Script Editor, create a new script or load an existing script into the script

window. Then use Run Start (resume) from the Script Editor menu or click the toolbar buttonor press the F5 key (to single step the script, see Debugging a Script.) To terminate the script, use Run

End from the menu or click the toolbar button. To suspend execution, use Run Pause from

the menu or click the button on the toolbar. To resume execution, use Start (resume) or click

the button.

Unless the Run selected procedure check-box is checked, script execution begins with Sub Main().

Running a Script from the Command LineTo run a script from the command line, append the name of the script file to the target or command line(click the AccuTerm icon with the right mouse button, then select Properties). When AccuTerm starts,it loads the script into a hidden script window, and executes its Main subroutine. You can use a

command line script to open up a number of sessions, the log a user on, etc.

You can the file association for AccuTerm's script files (.atsc) to start AccuTerm from a script file (or ashortcut to a script file). This is essentially the same as running a script from the command line.

Running a Script from a Layout File

AccuTerm 7 Help74

Copyright 2010-2011 Schellenbach & Assoc., Inc.

You can run a script automatically when opening a layout file. To save a script with a layout file, open allsessions to be included in the layout file. Open the script window, then load the script you want toautomatically run. Return to the main AccuTerm window, and select File Save Layout. When thelayout file is opened next, the script file will be loaded and its Sub Main() will be executed. Note: whenopening a layout file, all sessions are opened before executing the script.

Running a Script from a Function KeyTo run a script from a function key, simply program the function key (see Keyboard Programming) withscript statements enclosed in brackets [ ]. Multiple statements can be separated by a colon ( : ). A

script stored in a function key can contain a maximum of 250 characters. If a more complex script is tobe executed from a function key, create it as a separate script file and use the Chain statement in thefunction key to run the script file. For example:

[Chain "MyComplexScript.atsc"]

Running a Script from a Menu or ToolbarRunning a script from a menu item or toolbar button is similar to running a script from a function key. Inthe Menu Designer, set the Action property of the menu or toolbar item to the desired script statementsenclosed in brackets [ ].

Running a Script from the Host ComputerTo run a script from the host system, send the private AccuTerm command:

ESC STX P script CR

orESC STX R script CR

See AccuTerm Programming for details.

2.2.2 Debugging a Script

The Script Editor menu and toolbar provide functions for executing, interrupting, resuming and singlestepping a script, and for setting breakpoints and watch expressions.

Run Start (resume) ( or F5) begins execution at Sub Main or resumes execution at the currentstatement. If the Run selected procedure box is checked, then the procedure in the Proc drop-downlist is started instead of Sub Main.

Run Pause ( or CTRL+BREAK) will interrupt execution and enter Break mode.

Debug Step Into ( or F8) will execute the next statement and then enter Break mode. If thenext statement calls into a subroutine or function, Step Into will Break in the called procedure.

Debug Step Over ( or SHIFT+F8) is the same as Step Into except that when it reaches a callinto a subroutine or function, it will not step into the called procedure. The procedure will run, and Breakmode will be entered at the next statement in the current procedure.

AccuTerm 7 Automation 75

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Debug Step Out ( or CTRL+F8) causes a called procedure to continue running and enter Breakmode when the called procedure returns.

Debug Toggle Breakpoint ( or F9) sets or clears a breakpoint at the current statement. Linescontaining breakpoints are marked with a large dot in the left margin.

Debug Add Watch adds a watch expression based on the variable or function at the cursor position.Use Step Into to start the script before adding a Watch expression, otherwise a warning is displayed.To remove a watch expression, click on the Watch tab, select the expression you want to delete, andpress the DELETE key.

Debug Quick Watch ( ) will show the value of a variable or expression in the Immediatewindow. Position the cursor on the desired expression, then use the menu or toolbar button to view thevalue.

2.2.3 Controlling AccuTerm with Scripts

From a script’s perspective, AccuTerm consists of a set of objects which can be manipulated. The mainobject, AccuTerm , may be used to control the general settings of AccuTerm - those items which are setin the General Options or Files & Folders category of the Settings dialog box. The Session object isthe most useful object for controlling AccuTerm. Using the Session object, you can change any of thesession Settings, communicate with the host system, manipulate the screen, etc. The AccuTermObject Reference describes the object structure used to control AccuTerm.

There are several built-in objects which can be referenced while executing scripts. These are the AccuTerm object, the Sessions collection, the ActiveSession object, and the InitSession object.

AccuTerm object

The AccuTerm object is the top-level application object, and is described in detail in the nexttopic.

Sessions collection

The Sessions collection is a collection Session objects. There is one Session object in thecollection for each currently open session. The first session in the collection is Sessions(0). Sessions is simply a shortcut for AccuTerm.Sessions. The Session object type is describedin detail in the next topic.

ActiveSession object

The ActiveSession object is an object of type Session, which refers to the currently activesession. The currently active session is the session whose title bar is highlighted.

InitSession object

The InitSession object is an object of type Session, which refers to the session whichinitiated execution of the current script. This may not be the same as ActiveSession, sincescript execution could be initiated from a non-active session under host program control.

AccuTerm 7 Help76

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.2.4 Script Language Extensions

Several new statements have been added to the VBA language used by AccuTerm. These extensionsimplement features which may be useful in AccuTerm scripts.

AppActivate statement AppClose statement AppFind function AppGetActive function AppGetPosition statement AppGetState function AppHide statement AppList statement AppMaximize statement AppMinimize statement AppMove statement AppRestore statement AppSetState statement AppShow statement AppSize statement Chain statementCommon collection FileExists function Item function ItemCount function Line function LineCount function OpenFileName function Pause statement Random function SaveFileName function Sleep statement Word function WordCount function

2.2.4.1 Extensions

2.2.4.1.1 AppActivate statement

Syntax:AppActivate( title$ )

Description:Activates the application identified by title$. If no window exists with title$, the first window with a titlethat begins with title$ is activated. If no window matches, an error occurs.

2.2.4.1.2 AppClose statement

Syntax:AppClose names$

AccuTerm 7 Automation 77

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:Closes the named application. The names$ parameter is a String containing the name of the application.If the names$ parameter is absent, then the AppClose statement closes the active application.

2.2.4.1.3 AppFind function

Syntax:AppFind( name$ )

Description:Returns a String containing the full name of the application matching the partial name$.

2.2.4.1.4 AppGetActive function

Syntax:AppGetActive( )

Description:Returns a String containing the name of the active application.

2.2.4.1.5 AppGetPosition statement

Syntax:AppGetPosition X, Y, width, height [, name$ ]

Description:Retrieves the position of the named application. X, Y, width, height are integer variables into which theapplications position and size are stored. Name$ is the name of the application whose size is beingretrieved. If name$ is not specified, then the currently active application is assumed.

2.2.4.1.6 AppGetState function

Syntax:AppGetState( name$ )

Description:Returns an Integer specifying the state of the top-level window.

2.2.4.1.7 AppHide statement

Syntax:AppHide name$

Description:Hides the named application.

AccuTerm 7 Help78

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.2.4.1.8 AppList statement

Syntax:AppList AppNames$()

Description:Fills an array with the names of all open applications. The AppNames$ parameter must specify either azero- or one-dimensioned dynamic String array. The array will be redimensioned to match the number ofopen applications. After calling this function, you can use LBound and UBound to determine the new sizeof the array.

2.2.4.1.9 AppMaximize statement

Syntax:AppMaximize name$

Description:Maximizes the named application.

2.2.4.1.10 AppMinimize statement

Syntax:AppMinimize name$

Description:Minimizes the named application.

2.2.4.1.11 AppMove statement

Syntax:AppMove X, Y [, name$ ]

Description:Sets the upper left corner of the named application to a given location.

2.2.4.1.12 AppRestore statement

Syntax:AppRestore name$

Description:Restores the named application.

2.2.4.1.13 AppSetState statement

Syntax:AppSetState newstate [, name$ ]

Description:Maximizes, minimizes, or restores the named application, depending on the value of newstate. Theapplication is maximized if newstate is 1, minimized if newstate is 2 and restored if newstate is 3.

AccuTerm 7 Automation 79

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.2.4.1.14 AppShow statement

Syntax:AppShow name$

Description:Shows the named application.

2.2.4.1.15 AppSize statement

Syntax:AppSize width, height [, name$ ]

Description:Sets the size of the named application.

2.2.4.1.16 Chain statement

Syntax:Chain filename [arguments]Chain filename | macroname [arguments]

Description:This statement transfers control to the specified script file. Filename is a string expression, and maycontain a complete path name. If macroname is present, it must be separated from filename by avertical bar ( | ) and execution begins with subroutine macroname. Otherwise, execution begins with SubMain() in the new script file. Optional arguments may be appended to the filename string separated bya space character. The arguments may e retrieved in the chained-to script by using the Command()function. Execution never returns to the calling script. Note: both filename and macroname and optionalarguments are contained in a single string expression, such as:

Chain "C:\ATWIN\SCRIPTS\MYSCRIPT.SCR|FOO IMAGE XX.JPG"

2.2.4.1.17 Command() function

Syntax:Command()

Data type: string

Description:This function returns the command line. If the script was invoked from another script using the Chainstatement, the command line is taken from the Chain statement argument.

2.2.4.1.18 FileExists function

Syntax:FileExists( name$ )

Description:Returns True if file exists, otherwise returns False.

AccuTerm 7 Help80

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.2.4.1.19 Item function

Syntax:Item( text$, first, last [, delimiter$ ] )

Description:Returns all the items between first and last within the specified formatted text list. Items are substringsof a delimited text string. Items, by default, are separated by commas and/or end-of-lines. This can bechanged by specifying different delimiters in the delimiter$ parameter.

2.2.4.1.20 ItemCount function

Syntax:ItemCount( text$ [, delimiter$ ] )

Description:Returns an Integer containing the number of items in the specified delimited text. Items are substrings ofa delimited text string. Items, by default, are separated by commas and/or end-of-lines. This can bechanged by specifying different delimiters in the delimiter$ parameter.

2.2.4.1.21 Line function

Syntax:Line( text$, first, last )

Description:Returns a String containing a single line or a group of lines between first and last.

2.2.4.1.22 LineCount function

Syntax:LineCount( text$ )

Description:Returns an Integer representing the number of lines in text$.

2.2.4.1.23 OpenFileName function

Syntax:OpenFileName( [ title$ [, extension$ ]] )

Description:Displays a dialog box that prompts the user to select from a list of files, returning the full pathname ofthe file the user selects or a zero-length string if the user selects Cancel. If title$ is specified, then it isused as the title of the dialog box, otherwise, “Open” is used. If extension$ is specified, then it specifiesa list of file types and extensions - type:ext[,ext][;type:ext[,ext]]… where type is a description of the typeof file, and ext is the extension pattern. For example, to display “All Files” and “Documents”, theextension$ argument might be: "All files:*.*;Documents:*.txt,*.doc"

AccuTerm 7 Automation 81

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.2.4.1.24 Pause statement

Syntax:Pause Seconds

Description:This statement causes the script to pause for the specified number of seconds. While the script ispaused, normal terminal functions are operational, including any file transfers in progress.

2.2.4.1.25 Random function

Syntax:Random(min , max)

Description:Returns a Long value greater than or equal to min and less than or equal to max.

2.2.4.1.26 SaveFileName function

Syntax:SaveFileName( [ title$ [, extension$ ]] )

Description:Displays a dialog box that prompts the user to select from a list of files, returning the full pathname ofthe file the user selects or a zero-length string if the user selects Cancel. If title$ is specified, then it isused as the title of the dialog box, otherwise, “Save As” is used. If extension$ is specified, then itspecifies a list of file types (see OpenFileName for details).

2.2.4.1.27 Shell function

Syntax:Shell( command$, [WindowType ])

Description:Executes a Windows or DOS command. If command specifies a file or URL, the file or URL is openedusing the default application defined for that file. The return value is non-zero if the function succeeds.The WindowType argument is optional and specifies the window state of the executed program:0=hidden, 1=normal, 2=minimized (default), 3=maximized, 4=normal but not activated, 6=minimized butnot activated.

2.2.4.1.28 Sleep statement

Syntax:Sleep millieconds

Description:This statement causes the script to pause for the specified number of milliseconds. While the script ispaused, normal terminal functions are operational, including any file transfers in progress.

AccuTerm 7 Help82

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.2.4.1.29 Word function

Syntax:Word( text$, first, last )

Description:Returns a String containing a single word or a group of words between first and last.

2.2.4.1.30 WordCount function

Syntax:WordCount( text$ )

Description:Returns an Integer representing the number of words in text$. Words are separated by spaces, tabs, andend-of-lines.

2.3 Object Reference

AccuTerm 7 exposes a rich COM/OLE/ActiveX object structure. This allows AccuTerm to act as anAutomation Server to any number of client applications. AccuTerm’s objects are arranged in a hierarchy,with the AccuTerm application object at the top. The object hierarchy is shown in diagram below.

PropertiesTo reference a property, simply append a period (.) followed by the property name to an object variable ofthe appropriate type. To get the value of a property, assign the property reference to a variable of theappropriate type; to set the value, assign an appropriate expression, constant or variable to the propertyreference.

MethodsA method is a subroutine or function call. To reference a method, simply append a period (.) followed bythe method name to an object variable of the appropriate type. Function methods return a value; forthese methods, assign the result to a variable of the appropriate type. Some methods accept one ormore arguments separated by commas. If the method also returns a value, enclose the argument list in

AccuTerm 7 Automation 83

Copyright 2010-2011 Schellenbach & Assoc., Inc.

parentheses. Optional arguments are shown enclosed in brackets [ ]; the brackets are not part of thesyntax.

EventsCertain of AccuTerm’s objects have the ability to fire events. To use events, the client application mustbe capable of responding to events. For example, to use the Session object’s DataReady event, thefollowing declaration is required in a VB form or class:

Dim WithEvents objSession As AccuTermClasses.Session

Type LibraryAccuTerm 7 includes a type library, ATWIN70.TLB, which contains information about AccuTerm’s publicobjects, including their properties, methods, events, arguments and constants. When specifying theobject type in a declaration, always use the type library as a reference. This will ensure compatibilitywith future versions of AccuTerm. For example, to declare a VB object variable as type “AccuTerm”, usethe following declaration:

Dim obj As AccuTermClasses.AccuTerm

See also:AccuTerm objectMenu objectScreenBlock objectServer objectSession objectSessions collectionSettings objectAccuTerm constants

2.3.1 The AccuTerm Object

The AccuTerm object is AccuTerm’s top-level application object. To access the AccuTerm object of arunning instance of AccuTerm, use the following syntax:

Dim obj as ObjectSet obj = GetObject(, "ATWin32.AccuTerm")

To create a new instance of AccuTerm, use:

Dim obj as ObjectSet obj = CreateObject("ATWin32.AccuTerm")

The properties and methods of the AccuTerm object are described in the following pages. Use theseproperties and methods to control the overall application. The AccuTerm object contains the Sessionscollection, which has one element for each open session. The ActiveSession property may be used toobtain a reference to the Session object which is currently active.

AccuTerm propertiesActiveSession property AutoClose property Common property CustomMouseTable property

AccuTerm 7 Help84

Copyright 2010-2011 Schellenbach & Assoc., Inc.

FuncBarPos propertyFuncBarStyle propertyFuncBarVisible propertyHeight property Left property Menu property NoCloseWarning propertyNoConnectWizard propertyNoWelcomePage propertyPhoneBookName property ProductLicenseType property ProductName property ProductRelease property ProductSerialNumber property RecentListSize propertyRegisteredCompany property RegisteredLocation property RegisteredUser property SesionBarVisible propertySessions property SingleInstance property StatusLineVisible property ToolbarVisible property Top property Visible property Width property WindowState property

AccuTerm methodsActivate method Arrange method Close method Hide method Move method Resize method SettingsDialog methodShow method Terminate method

2.3.1.1 AccuTerm properties

2.3.1.1.1 ActiveSession property

Syntax:Set object = AccuTerm.ActiveSession

Data type: Session object

Description:The ActiveSession object is an object of type Session, which refers to the currently active session.The currently active session is the session whose title bar is highlighted.

AccuTerm 7 Automation 85

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.1.1.2 AutoClose property

Syntax:AccuTerm.AutoClose

Data type: boolean

Description:If non-zero, then when the last open session is closed, AccuTerm will terminate.

See also:Session AutoClose property

2.3.1.1.3 Common property

Syntax:AccuTerm.Common

Data type: collection object

Description:Returns a reference to the Common collection object. The Common collection may be used to save globalvariables so that they may be shared between different instances of scripts and OLE clients.

2.3.1.1.3.1 Common collection

Syntax:Common.ClearCommon(key) = valuevariable = Common(key)

Description:The Common collection is used to store values which may be saved between script executions, or sharedwith between several running scripts. That is, one session can set a value in the Common collection,which another session can retrieve it. Items stored in the Common collection are referenced by "keys".The key is a string argument. The values stored in the Common collection are variants, and thus cancontain any data type. The Common collection can be reset by using the Clear method.

2.3.1.1.4 CustomMouseTable property

Syntax:AccuTerm.CustomMouseTable

Data type: string

Description:This is the file name of the global mouse table file. See Mouse Pattern Matching for more information onusing a custom mouse table.

See also:Session CustomMouseTable property

AccuTerm 7 Help86

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.1.1.5 FuncBarPos property

Syntax:AccuTerm.FuncBarPos

Data type: integer

Description:Set to zero to show the function key bar at the bottom of the window, or 1 to show the bar at the top ofthe window.

2.3.1.1.6 FuncBarStyle property

Syntax:AccuTerm.FuncBarStyle

Data type: integer

Description:Set to 1 to display the function key number as a tiny number in the corner of the function key buttons, or0 to not display the key number.

2.3.1.1.7 FuncBarVisible property

Syntax:AccuTerm.FuncBarVisible

Data type: boolean

Description:Set to True (non-zero) to display AccuTerm’s function key bar, otherwise set to False (zero).

2.3.1.1.8 Height property

Syntax:AccuTerm.Height

Data type: long

Description:This is the application window height in pixels.

2.3.1.1.9 LargeIcons property

Syntax:AccuTerm.LargeIcons

Data type: boolean

Description:Set to True (non-zero) to show large icons in the toolbar, otherwise small icons are used.

AccuTerm 7 Automation 87

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.1.1.10 LayoutFilename property

Syntax:AccuTerm.LayoutFilename

Data type: string

Description:This is the file name of the currently open layout file, or null if no layout is open. This property is read-only.

2.3.1.1.11 Left property

Syntax:AccuTerm.Left

Data type: long

Description:This is the horizontal position of the application window in pixels.

2.3.1.1.12 Menu property

Syntax:Set menu_object = AccuTerm.Menu

Data type: menu object

Description:This returns a reference to the application Menu object, which may be used to customize AccuTerm’smenus and toolbars.

See also:Menu Object

2.3.1.1.13 NoCloseWarning property

Syntax:AccuTerm.NoCloseWarning

Data type: integer

Description:Set to True (non-zero) to suppress the disconnect warning when closing a session.

2.3.1.1.14 PhoneBookName property

Syntax:AccuTerm.PhoneBookName

Data type: string

AccuTerm 7 Help88

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:This is the file name of the Auto Dialer phone directory.

2.3.1.1.15 ProductLicenseType property

Syntax:AccuTerm.ProductLicenseType

Data type: integer

Description:This read-only property returns the product license type: 1=single user, 2=site license, 3=enterpriselicense, 9=demonstration version.

2.3.1.1.16 ProductName property

Syntax:AccuTerm.ProductName

Data type: string

Description:This read-only property returns the string “ACCUTERM/WIN32”.

2.3.1.1.17 ProductRelease property

Syntax:AccuTerm.ProductRelease

Data type: string

Description:This read-only property returns the current release of AccuTerm 7.

2.3.1.1.18 ProductSerialNumber property

Syntax:AccuTerm.ProductSerialNumber

Data type: long

Description:This read-only property returns the serial number of AccuTerm 7.

2.3.1.1.19 RecentListSize property

Syntax:AccuTerm.RecentListSize

Data type: integer

AccuTerm 7 Automation 89

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:Specifies the number of entries in the recent file list.

2.3.1.1.20 RegisteredCompany property

Syntax:AccuTerm.RegisteredCompany

Data type: string

Description:This read-only property returns the registered company name.

2.3.1.1.21 RegisteredLocation property

Syntax:AccuTerm.RegisteredLocation

Data type: string

Description:This read-only property returns the registered location.

2.3.1.1.22 RegisteredUser property

Syntax:AccuTerm.RegisteredUser

Data type: string

Description:This read-only property returns the registered user name.

2.3.1.1.23 SessionBarVisible property

Syntax:AccuTerm.SessionBarVisible

Data type: integer

Description:Set to True (non-zero) to display AccuTerm’s session bar, otherwise set to False (zero).

2.3.1.1.24 Sessions property

Syntax:AccuTerm.Sessions

Data type: collection of session objects

Description:

AccuTerm 7 Help90

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Returns a reference to the Sessions collection. This collection has one member for each open session.The first session is Sessions(0).

2.3.1.1.25 SingleInstance property

Syntax:AccuTerm.SingleInstance

Data type: integer

Description:Set to True (non-zero) to allow only one instance of AccuTerm. To allow multiple instances, set to False(zero).

2.3.1.1.26 StatusLineVisible property

Syntax:AccuTerm.StatusLineVisible

Data type: integer

Description:Set to True (non-zero) to display AccuTerm’s status line, otherwise set to False (zero).

2.3.1.1.27 ToolbarVisible property

Syntax:AccuTerm.ToolbarVisible

Data type: integer

Description:Set to True (non-zero) to display AccuTerm’s tool bar, otherwise set to False (zero).

2.3.1.1.28 Top property

Syntax:AccuTerm.Top

Data type: long

Description:This is the vertical position of the application window in pixels.

2.3.1.1.29 TrackKeyboardState property

Syntax:AccuTerm.TrackKeyboardState

Data type: integer

Description:

AccuTerm 7 Automation 91

Copyright 2010-2011 Schellenbach & Assoc., Inc.

If this property is True, AccuTerm tracks the state of the CapsLock and ScrollLock keys. When trackingis enabled, the state of these keys is saved and restored when the user switches to and from theAccuTerm application.

2.3.1.1.30 Visible property

Syntax:AccuTerm.Visible

Data type: boolean

Description:Set to True (non-zero) to make AccuTerm’s main window visible. Set to False to hide AccuTerm’s mainwindow.

2.3.1.1.31 Width property

Syntax:AccuTerm.Width

Data type: long

Description:This is the application window width in pixels.

2.3.1.1.32 WindowState property

Syntax:AccuTerm.WindowState

Data type: integer

Description:This is the state of AccuTerm’s main window. Set to 0 for normal, 1 for minimized or 2 for maximized.

See also:Session WindowState property

2.3.1.2 AccuTerm methods

2.3.1.2.1 Activate method

Syntax:AccuTerm.Activate

Description:Makes AccuTerm the active application.

See also:Session Activate method

AccuTerm 7 Help92

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.1.2.2 Arrange method

Syntax:AccuTerm.Arrange [style]

Description:Arranges AccuTerm session windows. Set style to 0 for cascade, 1 for tile horizontal, 2 for tile verticaland 3 to arrange icons.

2.3.1.2.3 Close method

Syntax:AccuTerm.Close [prompt]

Description:Closes AccuTerm. If prompt is True (non-zero) and any changes have been made to sessionconfiguration settings, the user will be prompted save the changed settings.

This method is the same as the Terminate method, but is not available when using late binding.

See also:Terminate method Session Close method

2.3.1.2.4 Hide method

Syntax:AccuTerm.Hide

Description:This method makes AccuTerm’s main window invisible.

See also:Session Hide method

2.3.1.2.5 Move method

Syntax:AccuTerm.Move left [, top [, width [, height ]]]

Description:Repositions and resizes AccuTerm’s main window. The positions and dimensions are specified in pixels.

See also:Session Move method

2.3.1.2.6 OpenLayout method

Syntax:AccuTerm.OpenLayout filename

Description:

AccuTerm 7 Automation 93

Copyright 2010-2011 Schellenbach & Assoc., Inc.

This method opens the specified layout file. When using this method to open a layout file, any scriptattached to the layout file is ignored.

2.3.1.2.7 Resize method

Syntax:AccuTerm.Resize width,height

Description:Resizes AccuTerm’s main window. The dimensions are specified in pixels.

See also:Session Resize method

2.3.1.2.8 SaveLayout method

Syntax:AccuTerm.SaveLayout [filename]

Description:This method saves the current layout in the specified layout file. If filename is not specified, the currentlyopen layout file is used. If there is no currently open layout file, the user is prompted for a file name.

2.3.1.2.9 SettingsDialog method

Syntax:AccuTerm.SettingsDialog [InitSel, [Categories ]]

Description:This method displays AccuTerm's Settings dialog box. You can specify the initially selected item InitSel

(see table below), and a list of Categories to show in the categories tree. The Categories list is a stringwith a single letter for each main category to display. Letters which may be used for InitSel orCategories are:

Categorycode

Tab code(2K2)

Category

O G General Options

A G Files & Folders

D D Connection

T T Term Type

S S Screen

C C Colors & Palette

B C Background

K K Keyboard

F F Font & Character Set

P P Printer

Q M Clipboard

H M Mouse

E M Sound

X X File Transfer

AccuTerm 7 Help94

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Categorycode

Tab code(2K2)

Category

W G Windows

R R TCL Rules

For compatibility with AccuTerm 2K2, you can use the alternative Tab code in place of the newCategory code, as shown in the table above. If you do not specify a value for InitSel, the previouslyactive category is initially selected. If you do not specify a value for Categories, all available categoriesare displayed.

2.3.1.2.10 Show method

Syntax:AccuTerm.Show

Description:Makes AccuTerm’s main window visible.

See also:Session Show method

2.3.1.2.11 Terminate method

Syntax:AccuTerm.Terminate [prompt]

Description:Closes AccuTerm. If prompt is True (non-zero) and any changes have been made to sessionconfiguration settings, the user will be prompted save the changed settings.

This method is the same as the Close method, and is available when using late binding.

See also:Close method Session Close method

2.3.2 The Menu Object

Both the AccuTerm object and each session object contain a Menu object. The menu object is the rootobject of AccuTerm’s menu structure. When no sessions are open, the menu object member of theAccuTerm object is the operational menu. When any session is open, the menu object member of theactive session is the operational menu. The menu object contains a number of MnuBand objects, whichcontain MnuTool objects.

Menu propertiesCount property Item propertyMnuBands property

See also:

AccuTerm 7 Automation 95

Copyright 2010-2011 Schellenbach & Assoc., Inc.

AccuTerm Menu property Session Menu property

2.3.2.1 Menu properties

2.3.2.1.1 Count property

Syntax:menu.Count

Data type: integer

Description:This read-only property is the number of MnuBand objects contained in the menu.

2.3.2.1.2 Item property

Syntax:menu.Item( toolID )

Data type: MnuTool object

Description:This array property returns a reference to a MnuTool object for the specified toolID. Each menu item,toolbar button, and status bar field has a toolID that identifies the tool (see Customizing the Menu andToolbar for more information). You can use this property to customize menu tool properties from a script.

2.3.2.1.3 MnuBands property

Syntax:menu.MnuBands( index )

Data type: array of MnuBand objects

Description:This read-only property array returns a MnuBand object corresponding to the specified one-based index.

2.3.2.2 The MnuBand Object

A Menu object contains zero or more MnuBand objects. Examples of MnuBand objects are the mainmenu, the toolbar, the status bar and popup menus. A MnuBand object contains zero or more MnuToolobjects.

MnuBand propertiesBandType property Caption property Count property DockingArea property MnuTools property Name property Visible property

AccuTerm 7 Help96

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.2.2.1 MnuBand properties

2.3.2.2.1.1 BandType property

Syntax:mnuband.BandType

Data type: integer

Description:This property is the type of band: 0 = toolbar, 1 = main menu, 2 = popup menu, 3 = status bar, 4 =session bar.

2.3.2.2.1.2 Caption property (MnuBand)

Syntax:mnuband.Caption

Data type: string

Description:This property is the type of band: 0 = toolbar or status bar, 1 = main menu, 2 = popup menu or sub-menu.

2.3.2.2.1.3 Count property (MnuBand)

Syntax:mnuband.Count

Data type: integer

Description:This read-only property is the number of MnuTool objects contained in the band.

2.3.2.2.1.4 DockingArea property

Syntax:mnuband.DockingArea

Data type: integer

Description:This property specifies the position of the toolbar or status bar: 1 = top, 2 = bottom, 4 = left, 8 = right.

2.3.2.2.1.5 MnuTools property

Syntax:mnuband.MnuTools( index )

Data type: array of MnuTool objects

AccuTerm 7 Automation 97

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:This read-only property array returns a MnuTool object corresponding to the specified one-based index.

2.3.2.2.1.6 Name property

Syntax:mnuband.Name

Data type: string

Description:This read-only property is the name of the MnuBand object.

2.3.2.2.1.7 Visible property (MnuBand)

Syntax:mnuband.Visible

Data type: boolean

Description:This property is True if the band is visible.

2.3.2.3 The MnuTool Object

The MnuTool object is at the lowest level of the Menu object hierarchy, and contains properties for thecaption, icon, state and action of a menu item, toolbar button or status bar field.

MnuTool propertiesAction property Caption property Checked property Enabled property ToolID property ToolTipText property Visible property

2.3.2.3.1 MnuTool properties

2.3.2.3.1.1 Action property

Syntax:mnutool.Action

Data type: string

Description:This property contains the action to perform when the menu item or button is clicked. All built-in menuitems have a default action associated with them, but an optional action can be specified by setting thisproperty. Set this property to null to perform the default action. Otherwise, to execute a macro, enclose

AccuTerm 7 Help98

Copyright 2010-2011 Schellenbach & Assoc., Inc.

the macro statement in square brackets ( [ ] ). To transmit a character sequence to the host, set this

property to the desired sequence.

2.3.2.3.1.2 Caption property (MnuTool)

Syntax:mnutool.Caption

Data type: string

Description:This property is the caption displayed in the higher-level menu item. The caption is not displayed in atoolbar.

2.3.2.3.1.3 Checked property

Syntax:mnutool.Checked

Data type: boolean

Description:Set this property to True to display a checked box next to the caption in popup menus or sub-menus.

2.3.2.3.1.4 Enabled property

Syntax:mnutool.Enabled

Data type: integer

Description:Set this property to True to enable a menu item. If this property is False, the item is disabled and isdisplayed in a gray color.

2.3.2.3.1.5 ToolID property

Syntax:mnutool.ToolID

Data type: long

Description:This property is the tool ID.

2.3.2.3.1.6 ToolTipText property

Syntax:mnutool.ToolTipText

AccuTerm 7 Automation 99

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: string

Description:This property is the text which is displayed in a floating window when the cursor is paused over a menuitem or toolbar button.

2.3.2.3.1.7 Visible property (MnuTool)

Syntax:mnutool.Visible

Data type: boolean

Description:This property is True if the tool (menu item or toolbar button) is visible.

2.3.3 The ScreenBlock Object

The ScreenBlock object is created by the Session.GetBlock method, and is used to preserve andrestore the contents of a portion of the terminal screen. The Session.SetBlock method restores thecontents of the ScreenBlock object back onto the terminal screen.

See also:GetBlock method SetBlock method

2.3.4 The Server Object

The Server object, in conjunction with the FTSERVER host program, provides a simple method forperforming common host database operations, including reading and writing files, executing commands,calling BASIC subroutines and converting data. The Server object can be used in any ActiveX enabledclient application, such as Microsoft Word, Excel, and Visual Basic.

Server methodsAddItem methodCallSub functionConnect functionDeleteItem methodDisconnect methodDownload methodExecute functionExport methodFileExists functionIConv functionImport methodIsConnected functionItemExists functionOConv functionReadItem functionReadnext function

AccuTerm 7 Help100

Copyright 2010-2011 Schellenbach & Assoc., Inc.

UnlockItem methodUpload methodWriteItem method

Server propertiesAccountName propertyErrorMode propertyLastError propertyLastErrorMessage propertyMDName propertyServerID propertyServerName propertyUnicodeDelimiters propertyUserName property

2.3.4.1 Server properties

2.3.4.1.1 AccountName property

Syntax:Server.AccountName

Data type: string

Description:Returns the name of the account the server object is connected to.

2.3.4.1.2 ErrorMode property

Syntax:Server.ErrorMode

Data type: integer

Description:Set to 0 to ignore errors, 1 to raise an error to the calling application, 2 to display error message dialogbox

2.3.4.1.3 LastError property

Syntax:Server.LastError

Data type: integer

Description:Returns any error number from the previous operation, or zero if no error.

AccuTerm 7 Automation 101

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.4.1.4 LastErrorMessage property

Syntax:Server.LastErrorMessage

Data type: string

Description:Returns any error message from the previous operation, or null if no error.

2.3.4.1.5 MDName property

Syntax:Server.MDName

Data type: string

Description:Returns the file name of the master dictionary (MD or VOC).

2.3.4.1.6 ServerID property

Syntax:Server.ServerID

Data type: string

Description:Returns a unique identifier for the server object.

2.3.4.1.7 ServerName property

Syntax:Server.ServerName

Data type: string

Description:Returns the server name assigned using FTSETUP.

2.3.4.1.8 UnicodeDelimiters property

Syntax:Server.UnicodeDelimiters

Data type: integer

Description:Set to 1 to convert system delimiter characters to Unicode, or 0 to use traditional character values forsystem delimiters. When Unicode delimiters are specified, AM is U+F8FE, VM is U+F8FD and SVM isU+F8FC.

AccuTerm 7 Help102

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.4.1.9 UserName property

Syntax:Server.UserName

Data type: string

Description:Returns the name of the user logged on to the host.

2.3.4.2 Server methods

2.3.4.2.1 AddItem Method

Syntax:Server.AddItem file, ID, data

Description:Writes a new item to the Pick database. If the item already exists, error 223 is returned.

2.3.4.2.2 CallSub method

Syntax:Result = Server.CallSub (SubName [, function [, data]] )

Data type: string

Description:Calls a BASIC subroutine (SubName) passing function and data as arguments. The BASIC subroutinemust accept 4 arguments: Function, Data, ErrorCode, ErrorMessage. The returned value is stored in theData argument before the subroutine returns. If an error occurs, the subroutine must set the ErrorCodeargument to a non-zero value, and place the error message text in the ErrorMessage argument.

2.3.4.2.3 Connect method

Syntax:Result = Server.Connect([ ServerName ] )

Data type: boolean

Description:Connects the server object to an AccuTerm session in server mode. If the optional ServerName isspecified, then the object is connected to the specified server; otherwise, the first session which is inserver mode is used.

2.3.4.2.4 DeleteItem method

Syntax:Server.DeleteItem file, ID

Description:

AccuTerm 7 Automation 103

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Deletes an item from the Pick database. If the item is locked by another process, error 235 is returned.

2.3.4.2.5 Disconnect method

Syntax:Server.Disconnect

Description:Disconnects the server object.

2.3.4.2.6 Download method (Server)

Syntax:Server.Download SourceFile, SourceIDs, TargetFolder [, Protocol [, Binary [, Overwrite ]]]

Description:Uses the AccuTerm FT program to download files from the host to the PC. SourceFile is the host filename; SourceIDs is a list of item-IDs, an asterisk (*) for all items, or an open parenthesis followed by thename of a saved list. Separate IDs with CR LF; TargetFolder is the destination directory. Protocol is 1 forKermit (default) or 0 for ASCII protocol. If Binary is zero (default) attribute marks are translated into CR LF

. Overwrite is non-zero to allow existing files to be overwritten (default is no overwrite).

2.3.4.2.7 Execute method

Syntax:Result = Server.Execute(command [, data [, capture ]] )

Data type: string

Description:Executes a TCL command on the host system. Data is passed as “stacked input” to the command. Ifcapture is non-zero, the result of the command is returned, otherwise, the return value is empty.

2.3.4.2.8 Export method

Syntax:Server.Export SourceFile, SourceIDs, TargetFile, TargetFields [, Header [, Explode [, Protocol

[, Delimiter [, Overwrite ]]]]]

Description:This method uses the AccuTerm FTD program to download a file from the MultiValue host to the PC. SourceFile is the host file name. SourceIDs is a list of item-IDs, an asterisk (*) for all items, or an openparenthesis followed by the name of a saved list. Separate IDs with CR LF; TargetFile is the destinationfile. If the destination file has a supported extension (.XLS, .WK1, .WKS, .WB1, .SYM, .DB2, .DBF), theresulting file will be exported in the native format for that file extension. TargetFields is a list of fields toinclude in the destination file; use asterisk (*) for all fields. Separate field names with CR LF. If Header isnon-zero, the first line of the exported file will be a “header”. If Explode is non-zero, single values arerepeated for items with multiple values. Protocol is 1 for Kermit (default) or 0 for ASCII protocol. If thedestination file does not have a supported extension, then delimiter is used to specify Tab (0, default) orComma (1) delimited ASCII file. Overwrite is non-zero to allow existing files to be overwritten (default isno overwrite).

AccuTerm 7 Help104

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.4.2.9 FileExists method

Syntax:Result = Server.FileExists( file )

Data type: integer

Description:Returns 1 if file exists on the host account, or 0 if it does not exist.

2.3.4.2.10 IConv method

Syntax:Result = Server.IConv(data, code)

Data type: string

Description:Performs an “input conversion” on data. Conversion to be performed is code.

2.3.4.2.11 Import method

Syntax:Server.Import SourceFile, TargetFile, Reserved1, Fields [, Header [, Skip [, AutoID [,AutoIDPrefix [, AutoIDStart [, Protocol [, Delimiter [, Overwrite ]]]]]]]]

Description:This method uses the AccuTerm FTD program to upload a file from the PC to the MultiValue host. SourceFile is the PC file name. TargetFile is the destination file name. If the source file has a supportedextension (.XLS, .WK1, .WKS, .WB1, .SYM, .DB2, .DBF), the file will be imported from the nativeformat for that file extension. Reserved1 is reserved for future use and should be passed as a null string.Fields is a list of fields to be imported (dictionary names or attribute numbers, or asterisk (*) for allfields). Separate field names with CR LF. If Header is non-zero, the first line of the imported file is treatedas a “header”. Skip is the number of “header” lines in the source file to skip. If AutoID is non-zero, thenthe target item-IDs will be generated by concatenating AutoIDPrefix to the item sequence starting withAutoIDStart. Protocol is 1 for Kermit (default) or 0 for ASCII protocol. If the source file does not have asupported extension, then delimiter is used to specify Tab (0, default) or Comma (1) delimited ASCIIfile. Overwrite is non-zero to allow existing items to be overwritten (default is no overwrite).

2.3.4.2.12 IsConnected method

Syntax:Result = Server.IsConnected( )

Data type: boolean

Description:Returns TRUE if server object is connected to the host and the host is running the server application;otherwise returns FALSE.

AccuTerm 7 Automation 105

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.4.2.13 ItemExists function

Syntax:Result = Server.ItemExists( file , ID )

Data type: integer

Description:Returns 1 if item exists in the specified file, or 0 if it does not exist or the file cannot be opened.

2.3.4.2.14 OConv method

Syntax:Result = Server.OConv(data, code)

Data type: string

Description:Performs an “output conversion” on data. Conversion to be performed is code.

2.3.4.2.15 ReadItem method

Syntax:Result = Server.ReadItem(file, ID [, attr [, value [, subvalue [, locked ]]]] )

Data type: string

Description:Reads an item from the MultiValue database and returns the item, attribute, value or sub-value. If theoptional locked parameter is non-zero, the item is left locked after the read (same as MV/BASIC READUstatement). Error 260 is returned if the item was already locked by another process.

2.3.4.2.16 Readnext method

Syntax:Result = Server.Readnext(file, attr [, value [, subvalue ]] )

Data type: string

Description:Reads the next item from the Pick database using the current select list and returns the specifiedattribute, value or sub-value. If the list is exhausted, LastError will be set to –1.

2.3.4.2.17 Upload method (Server)

Syntax:Server.Upload SourceFolder, SourceFiles, TargetFile [, Protocol [, Binary [, Overwrite ]]]

Description:Uses the AccuTerm FT program to upload files from the PC to the host. SourceFolder is the PCdirectory where the files are uploaded from; SourceFiles is a list of file names separated by CR LF.TargetFile is the destination file. Protocol is 1 for Kermit (default) or 0 for ASCII protocol. If Binary is

AccuTerm 7 Help106

Copyright 2010-2011 Schellenbach & Assoc., Inc.

zero (default) attribute marks are translated into CR LF. Overwrite is non-zero to allow existing files to beoverwritten (default is no overwrite).

2.3.4.2.18 UnlockItem method

Syntax:Server.UnlockItem [ file, [, ID ]]

Description:Unlocks an item locked by the ReadItem function. If file and ID are null, unlocks all items locked by theprocess.

2.3.4.2.19 WriteItem method

Syntax:Server.WriteItem file, ID, data [, attr [, value [, subvalue [, KeepLocked ]]]]

Description:Writes an item, attribute, value or sub-value to the Pick database. If the optional KeepLocked parameteris non-zero, the item is left locked after the writing (same as MV/BASIC WRITEU statement).

2.3.5 The Session Object

When you use AccuTerm, you create "sessions" to communicate with host computer systems.AccuTerm’s multiple document interface (MDI) allows you to create as many sessions as you desire, allconnected to different host systems (or more than one session to a single host). AccuTerm’s Sessionobject gives you access to session properties such as port, font, screen colors, etc.) and allows you toinvoke session methods (create, delete, input, output, etc.)

Predefined Session ObjectsThe currently active session may be accessed using the ActiveSession object. When a script isinvoked from a function key, menu, toolbar button, the host computer system, or from DDE, you canaccess the session which invoked the script by referencing the InitSession object. The InitSessionobject is only valid in the context of a script running in the AccuTerm application.

Creating a New SessionThere are two ways to create a new session. First, you can declare a Session object variable, and usethe New keyword with the Set statement to create the new session:

Dim S as SessionSet S = New Session

These statements will create a new session. All session properties will be set to their default values.Youaccess the properties and methods of the session using the Session object variable S.

An alternate way of creating a new session is to use the Add method of the Sessions collection objectas described above. Session propertiesAnsi8Bit propertyAnsiAppCursor propertyAnsiAppKeypad propertyAnswerback property

AccuTerm 7 Automation 107

Copyright 2010-2011 Schellenbach & Assoc., Inc.

AsciiDelay propertyAsciiEOL propertyAutoAnswer property AutoClose property BackgroundPictureFile propertyBackgroundPictureMode propertyBackgroundTransparency propertyBaud property BkspSendsDelBoldFont property BreakKeyAction propertyBytesIn property BytesOut property Caption property CaptureFileName property CaptureMode property CaptureSource property Changed property Charset propertyCol property Color property Colors() property Cols property Connected property ConnectTimeout property CopySelMode propertyCursorType property DataBits property DefaultCaptureDir property DefaultXferDir property DefaultXferMode property DefaultXferOverwrite property Device property DeviceLicenseMode propertyDialStatus property DisableAppMode propertyDuplex property ExtCols property ExtRows property FileName property FKeys() property FontName property FontSize property GmodeEnable property Handshake property Height property HistoryRows property HostName property HostPort property HostTermType property hWnd property Icon property InputMode property

AccuTerm 7 Help108

Copyright 2010-2011 Schellenbach & Assoc., Inc.

KeepaliveInterval propertyKermitCRC property KermitEOL property KermitErrRetry property KermitInitRetry property KermitQuote property KermitRept property KermitTimeout property Left property LegibleFont property LockBaudRate propertyLockFKeys propertyLockKeyboard property MapUpperFKeys property Menu property MessageRows propertyMouseEnable property NoAutoWrap propertyNormCols property NormRows property OnLine propertyOverrideModemConfig propertyPage property Pages property Palette() property Parity property PasteEOFChar property PasteEOFMode property PasteEOLChar property PasteEOLMode property PhoneBookName property Port property PrinterColorMode property PrinterFontBold property PrinterFontItalic property PrinterFontName property PrinterFontSize property PrinterMode property PrinterName property PrinterOrientation property PrinterPaperSize property PrinterPaperSource property PrinterTimeout property PrintJobEject property PrintScreenBackground property PrintScreenEject property ProtectAttr property Row property Rows property ScaleFont property ScreenPrintAdapterScript propertyScreenPrinterName propertyScreenPrintMode property

AccuTerm 7 Automation 109

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ScreenPrintOrientation propertyScreenPrintPaperSize propertyScreenPrintPaperSource propertyScrMode property ScrollMode property Selection property ShowErrs property SlavePrintAdapterScript propertySlavePrinterName propertySlavePrintMode property Sound property SSHAuth propertySSHCipherPropertySSHKey propertySSHUseOnlyPreferredCipher propertySSHVersion propertyStopBits property Strip8th property TcpIdn propertyTcpNoDelay propertyTelnetBinary property TelnetBypass property TelnetKeepaliveIsNOP propertyTermType property Top property Visible property Width property WindowState property XferBytes property XferFiles property XferStatus property XmodemTimeout property XmodemTimeout property ZmodemAuto property ZmodemTimeout property

Session methodsActivate method Break method Capture method CaptureEnd method Clear method ClearSelection method Close method Copy method CopyHistory method Delete method Deselect method Dial method Download method Emulate method ExtMode method GetBlock method

AccuTerm 7 Help110

Copyright 2010-2011 Schellenbach & Assoc., Inc.

GetSelection methodGetText method Hangup method Hide method Input method LoadImage method Locate method MouseTableAdd method MouseTableLoad method MouseTableReset method Move method NormMode method Output method Paste method PlayMidi method PlayWave method PrinterClose method PrinterOff method PrinterOn method PrintScreen method ReadText method Reset method ResetComm method ResetTerm method Resize method Save method SaveAs methodScrollHistory methodSelect method SetBlock method SetExtension method SetSelection method SetText method Settings method Show method Terminate method UnloadImage method Upload method WaitFor method WriteText method

Session eventsDataReady event Extension event

2.3.5.1 Session properties

2.3.5.1.1 Ansi8Bit property

Syntax:session.Ansi8Bit

Data type: boolean

AccuTerm 7 Automation 111

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:If this setting is non-zero, AccuTerm sends 8 bit control codes. Othewise the eqivalent 7-bit escapesequence is sent. This property is only effective when AccuTerm is emulating one of the VT terminals.

2.3.5.1.2 AnsiAppCursor property

Syntax:session.AnsiAppCursor

Data type: boolean

Description:If this setting is non-zero, AccuTerm sends "application codes" instead of "cursor codes" when cursorkeys are pressed. This property is only effective when AccuTerm is emulating one of the VT terminals.

2.3.5.1.3 AnsiAppKeypad property

Syntax:session.AnsiAppKeypad

Data type: boolean

Description:If this setting is non-zero, AccuTerm sends "application codes" instead of numeric characters when keyon the numeric keypad are pressed. This property is only effective when AccuTerm is emulating one ofthe VT terminals.

2.3.5.1.4 Answerback property

Syntax:session.Answerback

Data type: string

Description:This is the string that AccuTerm returns to the host system when the host requests the "answerbackmessage".

2.3.5.1.5 AsciiDelay property

Syntax:session.AsciiDelay

Data type: integer

Description:Specifies the interline delay used for ASCII file uploads in milliseconds.

AccuTerm 7 Help112

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.6 AsciiEOL property

Syntax:session.AsciiEOL

Data type: integer

Description:Specifies the line ending sequence for ASCII file uploads. Set to 0 for CR, 1 for LF or 2 for CR+LF.

2.3.5.1.7 AutoAnswer property

Syntax:session.AutoAnswer

Data type: boolean

Description:If this setting is non-zero, AccuTerm will answer incoming calls when the session is connected to amodem.

2.3.5.1.8 AutoClose property (Session)

Syntax:session.AutoClose

Data type: boolean

Description:If this setting is non-zero, AccuTerm will close the session when it becomes "disconnected" (modemdisconnects or host system drops network connection).

2.3.5.1.9 BackgroundPictureFile property

Syntax:session.BackgroundPictureFile

Data type: string

Description:This is the name of an image file that is used for the session background.

See also:BackgroundPictureMode propertyBackgroundTransparency property

2.3.5.1.10 BackgroundPictureMode property

Syntax:session.BackgroundPictureMode

AccuTerm 7 Automation 113

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: integer

Description:This property controls how the background picture is scaled: 0 - picture is stretched to fit screen size.This may alter the picture's aspect ratio; 1 - picture is scaled so that its longest dimension fills thescreen. The area not filled by the picture is black; 2 - picture is scaled so that its shortest dimension fillsthe screen. The longer dimension is cropped.

See also:BackgroundPictureFile propertyBackgroundTransparency property

2.3.5.1.11 BackgroundTransparency property

Syntax:session.BackgroundTransparency

Data type: integer

Description:The BackgroundTransparency property specifies the transparency of the background color or the opacityof the background picture, as a percentage. 100% means that the picture is used as the background,0% means that the background color is used. Values in between blend the background picture andbackground color.

See also:BackgroundPictureFile propertyBackgroundPictureMode property

2.3.5.1.12 Baud property

Syntax:session.Baud

Data type: integer

Description:This is the baud rate used by the serial port attached to the session. This property is only meaningfulwhen the communication device type is "Serial Port". Acceptable baud rates are atBaud300,atBaud1200, atBaud2400, atBaud9600, atBaud14400, atBaud19200, atBaud38400, atBaud57600and atBaud115200.

2.3.5.1.13 BkspSendsDel property

Syntax:session.BkspSendsDel

Data type: boolean

Description:

AccuTerm 7 Help114

Copyright 2010-2011 Schellenbach & Assoc., Inc.

If this setting is True (non-zero), pressing the Backspace key causes AccuTerm to send the DEL controlcode. Otherwise, AccuTerm sends the BS control code.

2.3.5.1.14 BoldFont property

Syntax:session.BoldFont

Data type: boolean

Description:Set to True (non-zero) if terminal font is bold, False (zero) if font is normal.

2.3.5.1.15 BreakKeyAction property

Syntax:session.BreakKeyAction

Data type: integer

Description:This property specifies the action to take when the CTRL+BREAK key is pressed. The exact interpretationof this property depends on the connection type.

0 - default action - send normal BREAK signal or character1 - no break key2 - send normal break (telnet BREAK command or SSH BREAK command)3 - send alternate break (telnet IP command or SSH SIGINT signal)256+break_char - send break_char character (ASCII code)

2.3.5.1.16 BytesIn property

Syntax:session.BytesIn

Data type: long

Description:This read-only property returns the number of bytes received from the host since the session wasopened.

2.3.5.1.17 BytesOut property

Syntax:session.BytesOut

Data type: long

Description:This read-only property returns the number of bytes transmitted to the host since the session wasopened.

AccuTerm 7 Automation 115

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.18 CapsLock property

Syntax:session.CapsLock

Data type: boolean

Description:Set to True (non-zero) to set the state of the CapsLock key; set to False (zero) to reset the CapsLockkey state.

2.3.5.1.19 Caption property

Syntax:session.Caption

Data type: string

Description:Set or returns the session caption (title).

2.3.5.1.20 CaptureFileName property

Syntax:session.CaptureFileName

Data type: string

Description:The name of the file name used in the last capture operation. This property is read-only.

2.3.5.1.21 CaptureMode property

Syntax:session.CaptureMode

Data type: integer

Description:The current capture mode (0 to create a new file, 1 to overwrite an existing file, 2 to append to existingfile, or 3 to capture to the clipboard instead of a file). If capture mode has 128 added to it, this indicatesthat control characters are being filtered from the captured data. This property is read-only.

2.3.5.1.22 CaptureSource property

Syntax:session.CaptureSource

Data type: integer

Description:The current capture source (1 to capture received data, 2 to capture printed data). This property is read-

AccuTerm 7 Help116

Copyright 2010-2011 Schellenbach & Assoc., Inc.

only.

2.3.5.1.23 Changed property

Syntax:session.Changed

Data type: integer

Description:Non-zero if the settings for the session have been modified. Changing this property to zero prevents thewarning about saving changes when the session is closed.

2.3.5.1.24 Charset property

Syntax:session.Charset

Data type: string

Description:The character set used by the host. The only valid values are NULL for the default character set for theselected terminal emulation, or "NATIVE" if the host uses the current 8-bit (non-Unicode) Windowscharacter set.

2.3.5.1.25 Col & Row properties

Syntax:session.Colsession.Row

Data type: integer

Description:The current cursor column or row. The leftmost column is zero and the topmost row is zero. Also seethe Locate method.

2.3.5.1.26 Color property

Syntax:session.Color

Data type: integer

Description:This is the foreground/background color index used when text is displayed using the SetText method.To determine the color index, select the foreground and background colors from the following table, andadd the indices of each to form the correct color index:

Color Foreground Background

Black 0 0

AccuTerm 7 Automation 117

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Color Foreground Background

Dark Blue 1 16

Dark Green 2 32

Turquoise 3 48

Dark Red 4 64

Purple 5 80

Olive 6 96

Light Grey 7 112

Dark Grey 8 128

Blue 9 144

Green 10 160

Cyan 11 176

Red 12 192

Magenta 13 208

Yellow 14 224

White 15 240

Note: the actual colors may be different if the palette has been modified!

2.3.5.1.27 Colors() property

Syntax:session.Colors( index )

Data type: integer

Description:This array maps foreground and background colors (using the color index described above) to visualattribute combinations. The index to the Colors() array is the attribute code shown in the followingtable:

Index Attribute Description Index Attribute Description

0 normal 22 dim reverse blink

1 blank 24 dim underline

2 blink 26 dim underline blink

4 reverse 28 dim underline reverse

5 reverse blank 30 dim underline reverse blink

6 reverse blink 32 bright

8 undereline 34 bright blink

10 underline blink 36 bright reverse

12 underline reverse 38 bright reverse blink

14 underline reverse blink 40 bright underline

16 dim 42 bright underline blink

18 dim blink 44 bright underline reverse

20 dim reverse 46 bright underline reverse blink

AccuTerm 7 Help118

Copyright 2010-2011 Schellenbach & Assoc., Inc.

The value of this property may include a border effect style which is associated with the visual attribute.The border effect styles are combined with the foreground and background color as follows:

none = fg + bginset = fb + bg + 16384raised = fg + bg - 32768flat = fg + bg - 16384

2.3.5.1.28 Cols & Rows properties

Syntax:session.Colssession.Rows

Data type: integer

Description:The current number of columns or rows. These are read-only properties. Changing the screen modebetween normal or extended mode (see ExtMode, NormMode methods and ScrMode property), orchanging the value of the ExtCols, ExtRows, NormCols or NormRows properties may affect the Cols andRows properties.

2.3.5.1.29 Connected property

Syntax:session.Connected

Data type: boolean

Description:This read-only property reflects the connection status of the session. For serial connections, it reflectsthe state of the CD signal; for network connections, it is non-zero if the network connection is OK.

2.3.5.1.30 ConnectTimeout property

Syntax:session.ConnectTimeout

Data type: integer

Description:This property is the number of seconds to wait when attempting to make a connection before a timeouterror occurs.

2.3.5.1.31 CopyPasteShortcut property

Syntax:session.CopyPasteShortcut

Data type: integer

Description:

AccuTerm 7 Automation 119

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Set to 0 for no shortcut, 1 to use CTRL+INS / SHIFT+INS, or 2 to use CTRL+C / CTRL+V for Copy / Pasteshortcuts.

2.3.5.1.32 CopySelMode property

Syntax:session.CopySelMode

Data type: integer

Description:Set to 1 to clear the selection rectangle after copying the screen selection to the clipboard. Set to 0 toretain selection rectangle.

2.3.5.1.33 CursorType property

Syntax:session.CursorType

Data type: boolean

Description:Set to True (non-zero) if cursor shown as a block, False (zero) if cursor shown as an underline.

2.3.5.1.34 CustomMouseTable property (Session)

Syntax:session.CustomMouseTable

Data type: string

Description:This is the file name of the custom mouse table file for the session. The initial value of this property isthe global mouse table file.See Mouse Pattern Matching for more information on using a custom mousetable.

2.3.5.1.35 DataBits property

Syntax:session.DataBits

Data type: integer

Description:This is the number of data bits used by the serial port attached to the session. This property is onlymeaningful when the communication device type is atDevSERIAL or atDevMODEM. Acceptable values are7 or 8. After changing this property, use the Reset method for the change to take effect.

AccuTerm 7 Help120

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.36 DefaultCaptureDir property

Syntax:session.DefaultCaptureDir

Data type: string

Description:This is the default destination directory used for file capture operations which do not specify a directory.

2.3.5.1.37 DefaultXferDir property

Syntax:session.DefaultXferDir

Data type: string

Description:This is the default destination directory used for file transfer operations which do not specify a directory.

2.3.5.1.38 DefaultXferMode property

Syntax:session.DefaultXferMode

Data type: integer

Description:This is default transfer mode: 0 for text, 1 for binary.

2.3.5.1.39 DefaultXferOverwrite property

Syntax:session.DefaultXferOverwrite

Data type: integer

Description:This is default overwrite setting for received files. Set to True (non-zero) to allow overwrites, else set toFalse (zero). This property only applies to ASCII and Xmodem downloads.

2.3.5.1.40 Device property

Syntax:session.Device

Data type: integer

Description:The communications device type attached to the session. The device type may be atDevNONE for nodevice (disconnects session), atDevSERIAL, atDevTELNET, atDevSSH or atDevMODEM.

AccuTerm 7 Automation 121

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.41 DeviceLicenseMode property

Syntax:session.DeviceLicenseMode

Data type: integer

Description:If this setting is non-zero, "device licensing" negotiation between AccuTerm and the host system isenabled. When device licensing has been successfully negotiated, multiple AccuTerm connections(sessions) to the host system consume only one user license.

To enable device license negotiation, set this value to 1 if the device license response requires a LF

termination character, or 3 if the response requires no termination character.

Device licensing is supported for UniVerse, UniData and QM host systems. The host system must havedevice licensing enabled (this is often an extra-charge item).

2.3.5.1.42 DialStatus property

Syntax:session.DialStatus

Data type: integer

Description:This read-only property reflects the status of the last Dial or HangUp method. Status codes aredescribed in the following table:

Status Description

0 Not connected (successful hang-up).

1 Connected (successful dial).

2 Unable to initialize modem.

3 Requested number is busy.

4 Requested number did not answer.

5 Unable to connect.

6 Unable to hang-up.

7 Modem is in use.

8 Invalid phone number.

9 Billing rejected.

10 No dial tone.

2.3.5.1.43 DisableAppMode property

Syntax:session.DisableAppMode

Data type: boolean

Description:

AccuTerm 7 Help122

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Setting this property to True (non-zero) prevents AccuTerm from entering "keypad application mode" or"cursor application mode" when running one of the VT emulations. Set to False to allow applicationmode.

2.3.5.1.44 Duplex property

Syntax:session.Duplex

Data type: integer

Description:This property sets the communications duplex mode to local (no communication to or from host: atDuplexLOCAL), full (remote echo: atDuplexFULL) or half (local echo: atDuplexHALF).

2.3.5.1.45 ExtCols & ExtRows properties

Syntax:session.ExtColssession.ExtRows

Data type: integer

Description:These properties define the terminal screen dimensions when the terminal is placed into "extendedmode", also known as "132 column mode".

2.3.5.1.46 ExtMode method

Syntax:session.ExtMode

Description:Causes the session to switch to extended (132 column) mode.

2.3.5.1.47 FileName property

Syntax:session.FileName

Data type: string

Description:This is the name of the configuration file opened by the session. If there is no configuration file, then thisproperty is NULL. If you assign a new name to this property, the session will be re-initialized with thesettings from the new file.

2.3.5.1.48 FKeys() property

Syntax:session.FKeys( index )

AccuTerm 7 Automation 123

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: string

Description:This array contains the programmed function and editing key strings. The index is formed by combining(adding) the modifier value with the virtual key number. The special modifier for the function key buttonbar caption can be combined with one of the standard modifiers to retrieve or store the caption & tooltiptext. The string value of the programmed key is binary, and might not contain printable characters.

Modifier Shift Ctrl Alt Modifier Shift Ctrl Alt

0 no no no 4000 no no yes

1000 yes no no 5000 yes no yes

2000 no yes no 6000 no yes yes

3000 yes yes no 7000 yes yes yes

10000 retrieve the function key caption and tip string

Virtual Key Number Virtual Key Number

F1 112 Backspace 8

F2 113 Tab 9

F3 114 Insert 45

F4 115 Delete 46

F5 116 Home 36

F6 117 End 35

F7 118 Page Up 33

F8 119 Page Down 34

F9 120 Left 37

F10 121 Right 39

F11 122 Up 38

F12 123 Down 40

F13 124 Escape 27

F14 125 Enter 13

F15 126 Keypad Enter 253

F16 127

See also:Settings FKeys() property

2.3.5.1.49 FontName property

Syntax:session.FontName

Data type: string

Description:This is the name of the terminal font used by the session.

AccuTerm 7 Help124

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.50 FontSize property

Syntax:session.FontSize

Data type: integer

Description:This is the size of the terminal font in points.

2.3.5.1.51 GmodeEnable property

Syntax:session.GmodeEnable

Data type: boolean

Description:Set to True (non-zero) if Tektronix graphics mode is enabled for the session; otherwise set to False(zero).

2.3.5.1.52 Handshake property

Syntax:session.Handshake

Data type: integer

Description:This is the handshake (flow control) method used by the serial port attached to the session. Thisproperty is only meaningful when the communications device type is atDevSERIAL or atDevMODEM.Acceptable handshake settings are atHandshakeNONE, atHandshakeXON, atHandshakeXIO,atHandshakeRTS or atHandshakeDTR.

2.3.5.1.53 Height property (Session)

Syntax:session.Height

Data type: long

Description:This is the session window height in pixels.

2.3.5.1.54 HistoryRows property

Syntax:session.HistoryRows

Data type: integer

Description:

AccuTerm 7 Automation 125

Copyright 2010-2011 Schellenbach & Assoc., Inc.

This is the number of rows allocated for the session history buffer. If a buffer is allocated, each time aline is scrolled off the screen, the line is placed in the history buffer. Likewise, whenever the screen iscleared, the contents of the screen before clearing is copied to the history buffer.

2.3.5.1.55 HostName property

Syntax:session.HostName

Data type: string

Description:This is the name of the host computer system which a session is connected to. This property is onlymeaningful when the communications device type is Telnet or Secure Shell. You can use the host IPaddress in place of the host name. After changing this property, use the Reset method for the change totake effect.

2.3.5.1.56 HostPort property

Syntax:session.HostPort

Data type: string

Description:For Telnet connections, this is the host TCP/IP port number assigned for Telnet services (default port is23). For Secure Shell connections, it is the TCP/IP port assigned for SSH services (default port is 22).

2.3.5.1.57 HostTermType property

Syntax:session.HostTermType

Data type: string

Description:For Telnet and Secure Shell connections, this is the terminal type sent to the host when initiating theconnection. This setting is only needed if AccuTerm’s default terminal type is not compatible with thehost terminal names.

2.3.5.1.58 hWnd property

Syntax:session.hWnd

Data type: long

Description:This read-only value is the window handle for the session’s terminal screen. This handle may be used inWindows API calls in conjunction with the Declare statement.

AccuTerm 7 Help126

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.59 Icon property

Syntax:session.Icon

Data type: string

Description:This is the name of the icon file used for the session.

2.3.5.1.60 ID property

Syntax:session.ID

Data type: string

Description:This is the unique session ID.

2.3.5.1.61 InputMode property

Syntax:session.InputMode

Data type: integer

Description:This specifies how received data is processed by the terminal session. If the InputMode property is setto 0 (normal), any received data is immediately processed by the terminal emulator. Use this modewhen the script is not concerned with the data stream. Setting the mode to 1 (synchronous) allows theterminal emulator to process all data which the script has processed. That is, all received data examinedby a WaitFor method or Input method is also processed by the emulator. Finally, setting the mode to 2(disconnected) disconnects the terminal emulator from the received data stream. It is up to the script topass any data to the emulator using the Emulate method. If a session was created with the Sessions.Add method, the initial InputMode setting may be specified as an argument.

2.3.5.1.62 KeepaliveInterval property

Syntax:session.KeepaliveInterval

Data type: long

Description:If this setting is non-zero, AccuTerm will send a special "keepalive" message periodically to maintain theconnection (some hosts and routers automatically disconnect when they detect an idle connection.)This setting is in seconds. Note: enabling keepalives when connecting to older versions of D3/NT maycause the error log on the host to fill up.)

AccuTerm 7 Automation 127

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.63 KermitCRC property

Syntax:session.KermitCRC

Data type: integer

Description:Set to True (non-zero) to enable CRC block checking, else set to False (zero) to use checksum blockchecking. If this option is enabled, and the host Kermit supports this option, then a 16 bit CRC is usedto verify packet integrity.

2.3.5.1.64 KermitEOL property

Syntax:session.KermitEOL

Data type: integer

Description:Specifies the ASCII character to be sent at the end of each Kermit packet. Usually 13 (CR), but may be10 (LF) for some hosts.

2.3.5.1.65 KermitErrRetry property

Syntax:session.KermitErrRetry

Data type: integer

Description:Specifies the number of times Kermit will retry during a file transfer before the transfer is aborted.

2.3.5.1.66 KermitInitRetry property

Syntax:session.KermitInitRetry

Data type: integer

Description:Specifies the number of times Kermit will retry when initiating a file transfer before the transfer is aborted.

2.3.5.1.67 KermitQuote property

Syntax:session.KermitQuote

Data type: integer

Description:Set to True (non-zero) to enable the "eighth bit quoting" option, else set to False (zero). If this option is

AccuTerm 7 Help128

Copyright 2010-2011 Schellenbach & Assoc., Inc.

enabled, and the host Kermit supports this option, then any characters which have the eighth bit set are"quoted" using a sequence of characters which do not have the eighth bit set. This option is useful forconnections which do not support eight bit data.

2.3.5.1.68 KermitRept property

Syntax:session.KermitRept

Data type: integer

Description:Set to True (non-zero) to enable the run length encoding data compression option, else set to False(zero). If this option is enabled, and the host Kermit supports this option, then repeated sequences ofany character are encoded to compress the data.

2.3.5.1.69 KermitTimeout property

Syntax:session.KermitTimeout

Data type: integer

Description:Specifies the number of seconds before Kermit file transfer operations time out.

2.3.5.1.70 Left property (Session)

Syntax:session.Left

Data type: long

Description:This is the horizontal position of the session window relative to the upper-left corner of the inside ofAccuTerm’s main window. This value is in pixels.

2.3.5.1.71 LegibleFont property

Syntax:session.LegibleFont

Data type: boolean

Description:Set to True (non-zero) to keep fonts legible when scaling fonts to fit screen; otherwise set to False(zero).

2.3.5.1.72 LockBaudRate property

Syntax:session.LockBaudRate

AccuTerm 7 Automation 129

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: boolean

Description:Set to True (non-zero) to lock the modem to the specified baud rate; otherwise set to False (zero). Note:not all modems support this setting.

2.3.5.1.73 LockFKeys property

Syntax:session.LockFKeys

Data type: integer

Description:Set to 0 for unlocked function keys (host can reset or reprogram keys), 1 to lock from reset (host canreprogram keys, but not reset them) or 2 to lock from programming (host cannot reset or reprogramfunction keys).

2.3.5.1.74 LockKeyboard property

Syntax:session.LockKeyboard

Data type: boolean

Description:Set to True (non-zero) to prevent keystrokes from being sent to the host system; otherwise set to False(zero).

2.3.5.1.75 MapUpperFKeys property

Syntax:session.MapUpperFKeys

Data type: boolean

Description:Setting this property to True (non-zero) causes AccuTerm to map Ctrl+F1 through Ctrl+F10 as F11 to F20.This is the default behavior, since the PC keyboard does not have keys F13 to F20.

2.3.5.1.76 Menu property (Session)

Syntax:Set menu_object = session.Menu

Data type: menu object

Description:This returns a reference to the session Menu object, which may be used to customize AccuTerm’smenus and toolbars.

AccuTerm 7 Help130

Copyright 2010-2011 Schellenbach & Assoc., Inc.

See also:Menu Object

2.3.5.1.77 MessageRows property

Syntax:session.MessageRows

Data type: integer

Description:This property sets the number of message rows and status lines for the session. The value must bebetween 0 and 3. Note that some emulations do not support any status or message rows, and someonly support a single status line. Others support up to 3 lines. For more information, see Status Lines.

2.3.5.1.78 MouseEnable property

Syntax:session.MouseEnable

Data type: boolean

Description:Set to True (non-zero) to enable the ESC STX "1" / ESC STX "2"AccuTerm mouse-on command;otherwise set to False (zero).

2.3.5.1.79 NoAutoWrap property

Syntax:session.NoAutoWrap

Data type: boolean

Description:Set to True (non-zero) to disable automatic line wrap at end of line.

2.3.5.1.80 NormCols & NormRows properties

Syntax:session.NormColssession.NormRows

Data type: integer

Description:These properties define the terminal screen dimensions when the terminal is placed into "normal mode",also known as "80 column mode".

2.3.5.1.81 NormMode method

Syntax:session.NormMode

AccuTerm 7 Automation 131

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:Causes the session to switch to normal (80 column) mode.

2.3.5.1.82 OnLine property

Syntax:session.OnLine

Data type: integer

Description:Setting this property to True (non-zero) initiates the connection to the host. Setting it to False terminatesthe connection.

2.3.5.1.83 OverrideModemConfig property

Syntax:session.OverrideModemConfig

Data type: boolean

Description:Set to True (non-zero) to override modem Control Panel settings for baud rate, data bits, stop bits, parityand handshake with current session settings for these properties; otherwise set to False (zero).

2.3.5.1.84 Page property

Syntax:session.Page

Data type: integer

Description:This specifies the number of the current video page for the session. The value must be between 0 andthe number of pages allocated for the session minus 1 (see Pages property).

2.3.5.1.85 Pages property

Syntax:session.Pages

Data type: integer

Description:This specifies the number of video pages for the session. The value must be between 1 and 25.

2.3.5.1.86 Palette() property

Syntax:session.Palette( index )

AccuTerm 7 Help132

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: OLE_COLOR

Description:This array contains the color values for the 16 palette entries used to display text on the terminal screen.The Color property assigns foreground (text) and background colors based on these 16 colors. You canuse the RGB() function to produce an OLE_COLOR from separate red, green and blue values. The red,green and blue values must be in the range of 0 to 255.

Palette entry Color

0 Black

1 Dark Blue

2 Dark Green

3 Turquoise

4 Dark Red

5 Purple

6 Olive

7 Light Grey

8 Dark Grey

9 Blue

10 Green

11 Cyan

12 Red

13 Magenta

14 Yellow

15 White

An additional 6 palette entries exist for drawing borders (see Visual Styles). These are:

Palette entry Used for

16 flat outer border

17 flat inner border

18 shadow outer border

19 shadow inner border

20 highlight outer border

21 highlight inner border

2.3.5.1.87 Parity property

Syntax:session.Parity

Data type: integer

Description:This is the parity setting used by the serial port attached to the session. This property is only meaningfulwhen the communication device type is atDevSERIAL or atDevMODEM. Acceptable values areatParityNONE, atParityEVEN, atParityODD, atParityMARK and atParitySPACE. After changing thisproperty, use the Reset method for the change to take effect.

AccuTerm 7 Automation 133

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.88 PasteEOFChar property

Syntax:session.PasteEOFChar

Data type: integer

Description:This is the ASCII character which is transmitted to the host at the end of paste operation. If this value iszero, no character will be transmitted.

2.3.5.1.89 PasteEOFMode property

Syntax:session.PasteEOFMode

Data type: integer

Description:Set to 0 if no character is transmitted at the end of a paste operation. Set to 1 if a SUB control code istransmitted. Set to 2 to use the character defined by the PasteEOFChar property.

2.3.5.1.90 PasteEOLChar property

Syntax:session.PasteEOLChar

Data type: integer

Description:This is the ASCII character which is transmitted to the host at the end of each line in a paste operaton. Ifthis value is zero, no character will be transmitted.

2.3.5.1.91 PasteEOLMode property

Syntax:session.PasteEOLMode

Data type: integer

Description:Set to 0 if a CR is transmitted at the end of each line of a paste operation. Set to 1 if a LF is transmitted.Set to 2 if a CR+ LF is transmitted. Set to 3 if a TAB is transmitted. Set to 4 if no character is transmitted.Set to 5 to use the character defined by the PasteEOLChar property. If you want to suppress the end-of-line character after the last line, add 128 to this value.

2.3.5.1.92 Port property

Syntax:session.Port

AccuTerm 7 Help134

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: integer

Description:Specifies the COM port number attached to the session. This property is only meaningful when thecommunication device type is atDevSERIAL. Acceptable values are from 1 to 127. After changing thisproperty, use the Reset method for the change to take effect.

2.3.5.1.93 PrinterColorMode property

Syntax:session.PrinterColorMode

Data type: integer

Description:If this property is non-zero and the ScreenPrintMode property is non-zero (Graphics mode), the screenis printed in color; otherwise the screen is printed in black and white. This property has no effect whenthe ScreenPrintMode property is zero (Text mode).

2.3.5.1.94 PrinterFontBold property

Syntax:session.PrinterFontBold

Data type: boolean

Description:Set this property to True (non-zero) to print using boldface. This property affects slave (or Aux) print jobswhen the SlavePrintMode property is 1 (Graphics mode). This property has no effect when theSlavePrintMode property is zero (Text mode).

2.3.5.1.95 PrinterFontItalic property

Syntax:session.PrinterFontItalic

Data type: boolean

Description:Set this property to True (non-zero) to print using italics. This property affects slave (or Aux) print jobswhen the SlavePrintMode property is 1 (Graphics mode). This property has no effect when theSlavePrintMode property is zero (Text mode).

2.3.5.1.96 PrinterFontName property

Syntax:session.PrinterFontName

Data type: string

Description:Set this property to the name of the font to use for slave (or Aux) print jobs when the SlavePrintMode

AccuTerm 7 Automation 135

Copyright 2010-2011 Schellenbach & Assoc., Inc.

property is 1 (Graphics mode). This property has no effect when the SlavePrintMode property is zero(Text mode).

2.3.5.1.97 PrinterFontSize property

Syntax:session.PrinterFontSize

Data type: integer

Description:Set this property to the size (in points) of the font to use for slave (or Aux) print jobs when the SlavePrintMode property is 1 (Graphics mode). This property has no effect when the SlavePrintModeproperty is zero (Text mode).

2.3.5.1.98 PrinterMode property

Syntax:session.PrinterMode

Data type: integer

Description:This is the state of the auxiliary printer: 0 if printer is off (atPrinterOff), 1 if printer is auto-print mode (atPrinterOn), 2 if the printer is in transparent print mode (atPrinterTransparent).

2.3.5.1.99 PrinterName property

Syntax:session.PrinterNamesession.SlavePrinterName

Data type: string

Description:This is the name of the printer used by the session for slave (or Aux) printer output. It may be set to null("") to indicate the current Windows default printer, or "no printer" to disable slave printing.

See also:ScreenPrinterName property

2.3.5.1.100 PrinterOrientation property

Syntax:session.PrinterOrientation

Data type: integer

Description:Set this property to 0 use the default page orientation, 1 for portrait or 2 for landscape. This propertyapplies only to slave (or Aux) print jobs and only when the SlavePrintMode property is 1 (Graphicsmode). This property has no effect when the SlavePrintMode property is zero (Text mode).

AccuTerm 7 Help136

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.101 PrinterPaperSize property

Syntax:session.PrinterPaperSize

Data type: integer

Description:Set this property to 0 use the default paper size for the printer. Otherwise use a paper size from thetable below. This property applies only to slave (or Aux) print jobs and only when the SlavePrintModeproperty is non-zero (Graphics mode). This property has no effect when the SlavePrintMode property iszero (Text mode).

1 Letter 8 1/2 x 11 in 2 Letter Small 8 1/2 x 11 in

3 Tabloid 11 x 17 in 4 Ledger 17 x 11 in

5 Legal 8 1/2 x 14 in 6 Statement 5 1/2 x 8 1/2 in

7 Executive 7 1/4 x 10 1/2 in 8 A3 297 x 420 mm

9 A4 210 x 297 mm 10 A4 Small 210 x 297 mm

11 A5 148 x 210 mm 12 B4 (JIS) 250 x 354

13 B5 (JIS) 182 x 257 mm 14 Folio 8 1/2 x 13 in

15 Quarto 215 x 275 mm 16 10x14 in

17 11x17 in 18 Note 8 1/2 x 11 in

19 Envelope #9 3 7/8 x 8 7/8 20 Envelope #10 4 1/8 x 9 1/2

21 Envelope #11 4 1/2 x 10 3/8 22 Envelope #12 4 \276 x 11

23 Envelope #14 5 x 11 1/2 24 C size sheet

25 D size sheet 26 E size sheet

27 Envelope DL 110 x 220mm 28 Envelope C5 162 x 229 mm

29 Envelope C3 324 x 458 mm 30 Envelope C4 229 x 324 mm

31 Envelope C6 114 x 162 mm 32 Envelope C65 114 x 229 mm

33 Envelope B4 250 x 353 mm 34 Envelope B5 176 x 250 mm

35 Envelope B6 176 x 125 mm 36 Envelope 110 x 230 mm

37 Envelope Monarch 3.875 x 7.5 in 38 6 3/4 Envelope 3 5/8 x 6 1/2 in

39 US Std Fanfold 14 7/8 x 11 in 40 German Std Fanfold 8 1/2 x 12 in

41 German Legal Fanfold 8 1/2 x 13 in

2.3.5.1.102 PrinterPaperSource property

Syntax:session.PrinterPaperSource

Data type: integer

AccuTerm 7 Automation 137

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:Set this property to 0 use the default paper source for the printer. Otherwise use a paper source from thetable below. This property applies only to slave (or Aux) print jobs and only when the SlavePrintModeproperty is 1 (Graphics mode). This property has no effect when the SlavePrintMode property is zero(Text mode).

1 Upper tray

2 Lower tray

3 Middle tray

4 Manual feed

5 Envelope feeder

6 Envelope manual

7 Auto

8 Tractor

2.3.5.1.103 PrinterTimeout property

Syntax:session.PrinterTimeout

Data type: integer

Description:This property specifies the number of seconds of inactivity before a print job is closed.

2.3.5.1.104 PrintJobEject property

Syntax:session.PrintJobEject

Data type: integer

Description:This property specifies if a page is ejected before or after a print job. Set this property to 0 for no pageejects, 1 to eject page before print job, 2 to eject page after print job or 3 to eject page before and afterprint job.

2.3.5.1.105 PrintScreenBackground property

Syntax:session.PrintScreenBackground

Data type: boolean

Description:Set to True (non-zero) to print the screen background when using the Print Screen command and the ScreenPrintMode property is non-zero (Graphics mode); otherwise set to False (zero). This propertyhas no effect when the ScreenPrintMode property is zero (Text mode).

AccuTerm 7 Help138

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.106 PrintScreenEject property

Syntax:session.PrintScreenEject

Data type: integer

Description:This property specifies if a page is ejected before or after a print screen. Set this property to 0 for nopage ejects, 1 to eject page before print screen, 2 to eject page after print screen or 3 to eject pagebefore and after print screen.

2.3.5.1.107 ProtectAttr property

Syntax:session.ProtectAttr

Data type: integer

Description:Visual attribute number assigned to "protected fields" under Wyse/ADDS emulation. See Colors()property for a list of attribute numbers.

2.3.5.1.108 Settings method

Syntax:With session.Settings

. . . statements

End With

Data type: settings object

Description:This object is used to set session settings as a block. It is intended to be used in a WithSettings . . . End With structure. When used in this manner, all of the settings which are modifiedare applied to the session when the End With statement is executed. This prevents errors when certainsettings depend on others (such as Port and Baud) and also improves performance. Most of theSession properties may be set using this object.

Note: when using the Settings object from a .NET language, call the Apply method just before EndWith due to the due to the way objects are freed in the .NET environment.

2.3.5.1.109 ScaleFont property

Syntax:session.ScaleFont

Data type: boolean

Description:Set to True (non-zero) to enable automatic font scaling; otherwise set to False (zero).

AccuTerm 7 Automation 139

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.110 ScreenPrintAdapterScript property

Syntax:session.ScreenPrintAdapterScript

Data type: string

Description:This is the name of the print adapter script file to use for screen printing. Print adapter scripts are usedto process the print job using an external program, such as Print Wizard. To use the print adapter script,the ScreenPrintMode property must be set to 2. See Screen Printer Settings for more information onprint adapters.

2.3.5.1.111 ScreenPrinterName property

Syntax:session.ScreenPrinterName

Data type: string

Description:This is the name of the printer used by the session for screen printing. It may be set to null ("") toindicate the current Windows default printer, or "no printer" to disable screen printing.

See also:SlavePrinterName property

2.3.5.1.112 ScreenPrintMode property

Syntax:session.ScreenPrintMode

Data type: integer

Description:Set to 0 for text mode, 1 for graphics mode or 2 to use the print adapter script specified by the ScreenPrintAdapterScript property. When this property is 1, the PrinterColorMode and PrintScreenBackground properties affect how the screen is printed.

2.3.5.1.113 ScreenPrintOrientation property

Syntax:session.ScreenPrintOrientation

Data type: integer

Description:Set this property to 0 use the default page orientation, 1 for portrait or 2 for landscape. This propertyapplies only to screen printing and only when the ScreenPrintMode property is 1 (Graphics mode). Thisproperty has no effect when the ScreenPrintMode property is zero (Text mode).

AccuTerm 7 Help140

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.114 ScreenPrintPaperSize property

Syntax:session.ScreenPrintPaperSize

Data type: integer

Description:Set this property to 0 use the default paper size for the printer. Otherwise use a paper size from thetable shown in the PrinterPaperSize property. This property applies only when the ScreenPrintModeproperty is non-zero (Graphics mode). This property has no effect when the ScreenPrintMode propertyis zero (Text mode).

2.3.5.1.115 ScreenPrintPaperSource property

Syntax:session.ScreenPrintPaperSource

Data type: integer

Description:Set this property to 0 use the default paper source for the printer. Otherwise use a paper source from thetable shown in the PrinterPaperSource property. This property applies only to screen printing and onlywhen the ScreenPrintMode property is 1 (Graphics mode). This property has no effect when theScreenPrintMode property is zero (Text mode).

2.3.5.1.116 ScrMode property

Syntax:session.ScrMode

Data type: integer

Description:Set to zero for normal (80 column) mode, 1 for extended (132 column) mode.

2.3.5.1.117 ScrollMode property

Syntax:session.ScrollMode

Data type: integer

Description:This controls the appearance of the vertical scroll bar: 0=no scroll bar (scroll bar is only visible if thecurrent number of Rows will not fit in the current window size), 1=always show scroll bar, and2=automatically show scroll bar when cursor is positioned near right border of window.

2.3.5.1.118 Selection property

Syntax:session.Selection

AccuTerm 7 Automation 141

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: string

Description:Returns the current selection, if any. Lines are separated by CR LF. If there is no current selection,returns null ("").

See also:Select method GetSelection methodSetSelection method

2.3.5.1.119 ShowErrs property

Syntax:session.ShowErrs

Data type: boolean

Description:Set to True (non-zero) to enable notification of communications errors; otherwise set to False (zero).

2.3.5.1.120 SlavePrintAdapterScript property

Syntax:session.SlavePrintAdapterScript

Data type: string

Description:This is the name of the print adapter script file to use for slave (Aux) print jobs. Print adapter scripts areused to process the print job using an external program, such as Print Wizard. To use the print adapterscript, the SlavePrintMode property must be set to 2. See Slave Printer Settings for more informationon print adapters.

2.3.5.1.121 SlavePrinterName property

Syntax:session.PrinterNamesession.SlavePrinterName

Data type: string

Description:This is the name of the printer used by the session for slave (or Aux) printer output. It may be set to null("") to indicate the current Windows default printer, or "no printer" to disable slave printing.

See also:ScreenPrinterName property

AccuTerm 7 Help142

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.122 SlavePrintMode property

Syntax:session.SlavePrintMode

Data type: integer

Description:Set to 0 for text mode, 1 for graphics mode or 2 to use the print adapter script specified in the SlavePrintAdapterScript property. When this property is 1, the PrinterFont…, PrinterOrientation, PrinterPaperSize and PrinterPaperSource properties affect how the slave (Aux) print job is printed.Print adapter scripts are used to process the print job using an external program, such as PrintWizard.See Slave Printer Settings for more information on print adapters.

2.3.5.1.123 Sound property

Syntax:session.Sound

Data type: string

Description:This property may be used to specify a custom sound for the terminal beep. Set this property to null touse the default sound. Set to a valid WAVE, MP3 or MIDI file name to play the specified wave file. Set to“SystemDefault”, “SystemHand”, “SystemExclamation” or “SystemAsterisk” to use the soundassociated with a system event (as defined in the Control Panel Sounds applet). Set to frequency,duration to use a true “beep” at the specified frequency (Hz) and duration (ms).

2.3.5.1.124 SSHAuth property

Syntax:session.SSHAuth

Data type: integer

Description:This property may be used to select the authentication method which will be used by a Secure Shell(ssh) session to authenticate a user to the host. Available authentication methods are: public key (2),password (3) and interactive (7). Use zero (0) for the default authentication method (password).

2.3.5.1.125 SSHCipher property

Syntax:session.SSHCipher

Data type: integer

Description:This property may be used to select a cipher to be used to encrypt a Secure Shell (ssh) session.Available ciphers are: triple DES (3), blowfish (6), 128 bit AES (7) and 256 bit AES (8). Use zero (0) forthe default cipher (triple DES).

AccuTerm 7 Automation 143

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.126 SSHKey property

Syntax:session.SSHKey

Data type: string

Description:This property contains the name of the SSH private key file. If no path is included, AccuTerm's defaultkey folder will be used to read the key file.

2.3.5.1.127 SSHUseOnlyPreferredCipher property

Syntax:session.SSHUseOnlyPreferredCipher

Data type: boolean

Description:Set to True (non-zero) to require that the cipher used for an SSH connection is the cipher specified bythe SSHCipher property. If the host system does not accept the preferred cipher, the connection isaborted.

2.3.5.1.128 SSHVersion property

Syntax:session.SSHVersion

Data type: integer

Description:This property may be used to select the desired SSH protocol version. Set this property to zero (0) forautomatic protocol selection. Set to 1 for SSH version 1 or set to 2 for SSH version 2. When automaticprotocol selection is used, AccuTerm selects the highest protocol version supported by the host.

2.3.5.1.129 StopBits property

Syntax:session.StopBits

Data type: integer

Description:This is the number of stop bits used by the serial port attached to the session. This property is onlymeaningful when the communication device type is atDevSERIAL or atDevMODEM. Acceptable values are1 or 2. After changing this property, use the Reset method for the change to take effect.

2.3.5.1.130 Strip8th property

Syntax:session.Strip8th

AccuTerm 7 Help144

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: boolean

Description:Set to True (non-zero) to cause AccuTerm to truncate received data to 7 bits; otherwise set to False(zero).

2.3.5.1.131 TcpIdn property

Syntax:session.TcpIdn

Data type: boolean

Description:Set this property to True (non-zero) to enable Internationalized Domain Names (IDN) for the host name. IDN relies upon a standardized mechanism known as "Punycode" for encoding Unicode domain namesusing only the ASCII characters that are permitted by the global DNS system.

2.3.5.1.132 TcpNoDelay property

Syntax:session.TcpNoDelay

Data type: boolean

Description:Normally, the TCP network stack delays outbound network messages for a short time in order to"coalesce" multiple small messages into a single packet. When this setting is True (non-zero),AccuTerm will send each message as soon as possible. Setting this option may improve throughput,especially when running in AccuTerm's GUI environment and during file transfers, at the expense ofincreased network traffic.

2.3.5.1.133 TelnetBinary property

Syntax:session.TelnetBinary

Data type: boolean

Description:Set to True (non-zero) to enable Telnet binary communication mode; otherwise set to False (zero) fortext communication mode.

2.3.5.1.134 TelnetBypass property

Syntax:session.TelnetBypass

Data type: boolean

Description:Set to True (non-zero) to bypass initial option negotiation; otherwise set to False (zero) for normal

AccuTerm 7 Automation 145

Copyright 2010-2011 Schellenbach & Assoc., Inc.

negotiation. This is required for certain hosts like D3 which do not implement the complete Telnetprotocol.

2.3.5.1.135 TelnetKeepaliveIsNOP property

Syntax:session.TelnetKeepaliveIsNOP

Data type: boolean

Description:Set to True (non-zero) to send Telnet NOP command for keepalives; otherwise, sends Telnet DMARKcommand for keepalives.

2.3.5.1.136 TermType property

Syntax:session.TermType

Data type: integer

Description:This is the terminal emulation setting for the session. Possible values are:

atTermTTY basic TTY

atTermVPA2 ADDS Viewpoint A2

atTermVP60 ADDS Viewpoint 60

atTermP60 ProComm Viewpoint 60

atTermA2E ADDS Viewpoint A2 Enhanced

atTermWY50 Wyse 50

atTermWY60 Wyse 60

atTermVT52 DEC VT-52

atTermVT100 DEC VT-100

atTermVT220 DEC VT-220

atTermVT320 DEC VT-320

atTermVT420 DEC VT-420

atTermLinux Linux console

atTermSCO SCO console

atTermANSI ANSI BBS

atTermPICKMON Pick PC Monitor

atTermP30 MDIS P30

atTermTEK Tektronix 4014

atTermTEK4100 Tektronix 4100

2.3.5.1.137 Top property (Session)

Syntax:session.Top

AccuTerm 7 Help146

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: long

Description:This is the vertical position of the session window relative to the upper-left corner of the workspace areaof AccuTerm’s main window. This value is in pixels.

2.3.5.1.138 Visible property (Session)

Syntax:session.Visible

Data type: boolean

Description:Set to True (non-zero) to make the session window visible. Set to False to hide the session window.

2.3.5.1.139 Width property (Session)

Syntax:session.Width

Data type: long

Description:This is the session window width in pixels.

2.3.5.1.140 WindowState property (Session)

Syntax:session.WindowState

Data type: integer

Description:This is the state of the session window. Set to 0 for normal, 1 for minimized or 2 for maximized.

2.3.5.1.141 XferBytes property

Syntax:session.XferBytes

Data type: long

Description:This read-only property is the number of bytes transferred as a result of the last file transfer operation.

2.3.5.1.142 XferFiles property

Syntax:session.XferFiles

AccuTerm 7 Automation 147

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: long

Description:This read-only property is the number of files transferred as a result of the last file transfer operation.

2.3.5.1.143 XferStatus property

Syntax:session.XferStatus

Data type: integer

Description:This read-only property reflects the status of the last Upload or Download method. Status codes aredescribed in the following table:

Status Description

-1 File transfer in progress.

0 File transfer successful.

1 Invalid source file or invalid destination directory.

2 File transfer aborted by user.

3 Destination file already exists.

4 File transfer timed out.

7 File transfer protocol failure.

8 X/Y/ZModem require 8 data bits.

9 X/YModem require hardware flow control.

10 Destination file is write protected.

2.3.5.1.144 XmodemTimeout property

Syntax:session.XmodemTimeout

Data type: integer

Description:Specifies the number of seconds before Xmodem file transfer operations time out.

2.3.5.1.145 YmodemTimeout property

Syntax:session.YmodemTimeout

Data type: integer

Description:Specifies the number of seconds before Ymodem file transfer operations time out.

AccuTerm 7 Help148

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.1.146 ZmodemAuto property

Syntax:session.ZmodemAuto

Data type: integer

Description:Set to True (non-zero) to enable automatic Zmodem downloads, otherwise set to False (zero).

2.3.5.1.147 ZmodemTimeout property

Syntax:session.ZmodemTimeout

Data type: integer

Description:Specifies the number of seconds before Zmodem file transfer operations time out.

2.3.5.2 Session methods

2.3.5.2.1 Activate method (Session)

Syntax:session.Activate

Description:Makes the session the "active" session. There is no return value.

2.3.5.2.2 Break method

Syntax:session.Break

Description:Sends a "break" signal to the host connected to the session. There is no return value.

2.3.5.2.3 Capture method

Syntax:session.Capture filename , source , mode

Description:Initiates or terminates data capture mode. If source is zero, capture mode for session is terminated. Setsource to 1 to initiate capture of received data, 2 to initiate capture of printed data. Set mode to 0 tocreate a new file, 1 to overwrite an existing file, 2 to append to existing file, or 3 to capture to theclipboard instead of a file. Add 128 to mode to capture text only (filters out control characters). If source

is zero or mode is 3 or 131, then filename is ignored, otherwise it is the name of the file where captureddata is saved.

AccuTerm 7 Automation 149

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.2.4 CaptureEnd method

Syntax:session.CaptureEnd

Description:Terminates any capture operation and closes the capture file.

2.3.5.2.5 Clear method

Syntax:session.Clear [left [, top [, right [, bottom [,

color]]]]]

Description:Clears block of text from session screen to specified background color. Default coordinates are theupper left and lower right corners of the screen. To specify color, use the color index described underColor property.

2.3.5.2.6 ClearSelection method

Syntax:session.ClearSelection

Description:This removes any selection rectangle from the session screen. There is no return value.

This method is the same as the Deselect method.

2.3.5.2.7 Close method (Session)

Syntax:session.Close [prompt]

Description:This closes the session. If prompt = 1 or 3, and If any session settings have been modified subsequentto loading or saving the session, the user will be prompted whether to save the settings. If prompt = 2 or3, and the session is connected via a network or dialup connection, the user will be prompted todisconnect. If prompt is zero, the session is closed without prompting.

This method is the same as the Terminate method, but is not available when using late binding.

2.3.5.2.8 Copy method

Syntax:session.Copy [left [, top [, right [, bottom]]]]

Description:Copies a block of text from session screen to the clipboard. Default coordinates are the upper left andlower right corners of the screen or the current selection if one is present. Negative row numbers willcopy from the history buffer; row –1 is the last history row, etc.

AccuTerm 7 Help150

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.2.9 CopyHistory method

Syntax:session.CopyHistory [left [, top [, right [, bottom]]]]

Description:Copies a block of text from session history screen to the clipboard. Default coordinates are the upper leftand lower right corners of the history screen.

2.3.5.2.10 Delete method

Syntax:session.Delete

Description:This deletes (closes) the session. There is no return value.

2.3.5.2.11 Deselect method

Syntax:session.Deselect

Description:This removes any selection rectangle from the session screen. There is no return value.

This method is the same as the ClearSelection method.

2.3.5.2.12 Dial method

Syntax:result = session.Dial( PhoneNumber )

Description:Uses the Auto-Dialer to dial a specified phone number. The return value specifies the result of the dialingoperation. See the DialStatus property for a description of the return codes. This method only works ifthe Device property is atDevModem.

2.3.5.2.13 Download method

Syntax:result = session.Download(target , protocol ,

binary [, overwrite])

Description:Downloads a file from a host system to the user’s PC. Target is the name of the destination file (ASCIIor XModem protocol), or the name of the destination directory (Kermit, YModem or ZModem protocol). Protocol is atProtocolASCII, atProtocolKermit, atProtocolXmodem, atProtocolYmodem oratProtocolZmodem. Binary is True (non-zero) for binary transfer mode, False (zero) for text transfermode. Overwrite must be atProtect or atOverwrite, and is only meaningful for ASCII and Xmodemdownloads.

AccuTerm 7 Automation 151

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.2.14 Emulate method

Syntax:session.Emulate text

Description:Causes the terminal emulator to process the specified text, including control codes and escapesequences.

2.3.5.2.15 GetBlock method

Syntax:Set scrblk = session.GetBlock (left , top , right ,

bottom , [page])

Description:Creates a ScreenBlock object containing the contents of the specified block. The returned objectcontains all text, attribute, color, protect and character set information contained within the block.Default page is the current page. This method, when used with the SetBlock method, may be used toeffect "windowing". The return value of this method must be assigned to a variable which has beendeclared as type ScreenBlock.

See also:ScreenBlock object

2.3.5.2.16 GetSelection method

Syntax:sel = session.GetSelection ( left , top , right , bottom )

Description:Gets the coordinates of the selection rectangle on the session screen. The return value sel is True (non-zero) if a selection is present; otherwise it is False (zero).

See also:SetSelection methodSelection property

2.3.5.2.17 GetText method

Syntax:text = session.GetText ([col [, row [, cols [, mode ]]]])

Description:Returns the text contents of a row on the terminal screen. Default col and row is the current cursorlocation. Default number of columns is to the end of the row. Use zero for mode to return all normalcharacters on the row, including protected characters. Use 1 to return non-protected characters only.Add 2 to include line-drawing character and special symbols (Unicode). Non-negative row numbers referto the active (non-history) area of the terminal screen (zero is the first data row of the active screen).Negative row numbers refer to history rows (row -1 is the last history row).

AccuTerm 7 Help152

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.2.18 Hangup method

Syntax:result = session.Hangup()

Description:Uses the Auto-Dialer to disconnect (hangup) a modem call. The return value specifies the result of thehangup operation. See the DialStatus property for a description of the return codes.

2.3.5.2.19 Hide method (Session)

Syntax:session.Hide

Description:This method makes the session window invisible.

2.3.5.2.20 Input method

Syntax:result = session.Input([mode [, maxlen [, timeout]]])

Description:This method accepts input from the communications device attached to the session. If mode is 0(default), raw data is returned, up to maxlen characters or until timeout seconds have passed. If mode is1, a "line" of data is returned, up to maxlen characters or until timeout seconds have passed. A "line" isterminated by a CR, LF, CR+ LF or LF+ CR. The terminator is not returned as part of the input. Default valuesfor maxlen and timeout are 80 and 30 respectively.

This method is not available when using late binding; use the ReadText method instead.

2.3.5.2.21 LoadImage method

Syntax:session.LoadImage filename , col , row [, width

[, height [, preserveaspect

[, borderstyle] ] ] ]

Description:Creates an image on the terminal screen at the location specified by col and row. Filename specifies thename or URL of the image file. Image file formats supported are BMP, JPEG, GIF, PCD, PCX, PICT,PNG, PSD, TARGA, TIFF, WBMP, XBM, XPM and Windows Metafile. If width and height are specified,then the image is scaled to fit the specified area; otherwise the image is displayed in its actualdimensions. If preserveaspect is non-zero, then the aspect ratio of the original image is preserved byreducing either width or height. To enclose the image in a border, specify borderstyle of 0 for none, 1 forsimple, 2 for raised or 3 for inset. Multiple images may be loaded on the terminal screen. Images areconsidered "protected" data; a "clear un-protected characters" command will not clear images from theterminal screen.

AccuTerm 7 Automation 153

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.2.22 Locate method

Syntax:session.Locate col , row [, page ]

Description:Moves the cursor to the specified screen location and optionally changes pages.

2.3.5.2.23 MouseTableAdd method

Syntax:session.MouseTableAdd button [, pattern [, click

[, dblclk ]]]

Description:Adds an entry to the mouse pattern table for the session. The mouse pattern table is used to associatepatterns on the screen with responses to be sent to the host when the mouse is clicked. Button is 1 forleft button, 2 for right button and 3 for middle button. Pattern is a string containing a "regular expression"describing the pattern to be matched. Click is a string, and is sent to the host when the specified buttonis clicked over the pattern. Dblclk is the response if the button is double-clicked over the pattern. SeeMouse Pattern Matching for more information on using a custom mouse table.

2.3.5.2.24 MouseTableLoad method

Syntax:session.MouseTableLoad filename

Description:Loads a mouse pattern table from a file. See Mouse Pattern Matching for more information on using acustom mouse table.

2.3.5.2.25 MouseTableReset method

Syntax:session.MouseTableReset

Description:Clears the mouse pattern table.

2.3.5.2.26 Move method (Session)

Syntax:session.Move left [, top [, width [, height ]]]

Description:Repositions and resizes the session window. The positions and dimensions are specified in pixels, andare relative to the upper-left corner of the workspace area in AccuTerm’s main window.

2.3.5.2.27 Output method

Syntax:session.Output expr

AccuTerm 7 Help154

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:This method transmits data to the host using the communications device attached to the session.Transmits expr (a string expression) to the connected host computer.

This method is the same as the WriteText method.

2.3.5.2.28 Paste method

Syntax:session.Paste [ filename ]

Description:Copies the text contents of the clipboard (or file if filename is specified) to the host.

2.3.5.2.29 PlayMidi method

Syntax:session.PlayMidi filename

Description:Plays the media file specified by filename. Filename may specify a local file or a URL. WAVE, MP3 andMIDI media files are supported.

2.3.5.2.30 PlayWave method

Syntax:session.PlayWave filename

Description:Plays the media file specified by filename. Filename may specify a local file or a URL. WAVE, MP3 andMIDI media files are supported.

2.3.5.2.31 PrinterClose method

Syntax:session.PrinterClose

Description:Closes the current print job.

2.3.5.2.32 PrinterOff method

Syntax:session.PrinterOff

Description:Turns off the slave (or Aux) printer.

AccuTerm 7 Automation 155

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.2.33 PrinterOn method

Syntax:session.PrinterOn [mode]

Description:Turns on the slave (or Aux) printer. If mode is zero (default), printer is in "copy" mode (data is displayedon both the screen and printer). Otherwise, printer is in "transparent" mode (data is sent to the printeronly, not the screen).

2.3.5.2.34 PrintScreen method

Syntax:session.PrintScreen

Description:Prints the text screen to the printer.

2.3.5.2.35 ReadText method

Syntax:result = session.ReadText([mode [, maxlen [, timeout]]])

Description:This method accepts input from the communications device attached to the session. If mode is 0(default), raw data is returned, up to maxlen characters or until timeout seconds have passed. If mode is1, a "line" of data is returned, up to maxlen characters or until timeout seconds have passed. A "line" isterminated by a CR, LF, CR+ LF or LF+ CR. The terminator is not returned as part of the input. Default valuesfor maxlen and timeout are 80 and 30 respectively.

This method is the same as the Input method, and is available when using late binding.

2.3.5.2.36 Reset method

Syntax:session.Reset [mode]

Description:Resets the terminal (mode = 1 or atResetTerminal), the communication device (mode = 2 oratResetComm) or both (default, mode = 0 or atResetAll). Note: you may need to reset thecommunication device after changing certain device related properties in order for the changes to takeeffect.

2.3.5.2.37 ResetComm method

Syntax:session.ResetComm

Description:Resets the communication device. Note: you may need to reset the communication device afterchanging certain device related properties in order for the changes to take effect.

AccuTerm 7 Help156

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.5.2.38 ResetTerm method

Syntax:session.ResetTerm

Description:Resets the terminal emulator for session (clears screen, resets protect mode, unlocks keyboard, etc.)

2.3.5.2.39 Resize method (Session)

Syntax:session.Resize width,height

Description:Resizes a session window. The dimensions are specified in pixels.

2.3.5.2.40 Save method

Syntax:session.Save [filename]

Description:Saves the session configuration. If filename is not specified, the original file name is used. If there is nofile name for the session, the user will be prompted for a file name.

2.3.5.2.41 SaveAs method

Syntax:session.SaveAs

Description:Saves the session configuration prompting for file name.

2.3.5.2.42 ScrollHistory method

Syntax:session.ScrollHistory cmd

Description:This method manipulates the history scroll position. Cmd = atScrlHistLineUp (0) to scroll the historyup one line; atScrlHistLineDown (1) to scroll the history down one line, atScrlHistPageUp (2) to scrollup one page, atScrlHistPageDown (3) to scroll down one page, atScrlHistTop (6) to scroll to the top(first line) of the history, atScrlHistBottom (7) to scroll to the bottom (live screen).

2.3.5.2.43 Select method

Syntax:session.Select [left [, top [, right [, bottom]]]]

Description:

AccuTerm 7 Automation 157

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Places a selection rectangle on the session screen. Defaults are upper left corner and lower right cornerof screen.

This is the same as the SetSelection method, but is not available when using late binding.

See also:Selection property

2.3.5.2.44 SetBlock method

Syntax:session.SetBlock ScreenBlock , left , top ,[page]

Description:Copies the contents of ScreenBlock object ScreenBlock to the specified location on the screen. Thecopied block contains all text, attribute, color, protect and character set information. Default page is thecurrent page. This method must be used with the GetBlock method, and may be used to effect"windowing".

See also:ScreenBlock object

2.3.5.2.45 SetExtension method

Syntax:session.SetExtension leadin, terminator

Description:If leadin is not NULL, then this method enables the session Extension event. This event may be used toextend the functionality of AccuTerm’s emulation engine. The leadin string specifies one or more "lead-in" character codes, which, when preceded by the ESC control code, signal the start of an "extended"function. Receipt of one of the characters in the terminator string signals the end of the "extended"function. If terminator is NULL, then the next character after one of the leadin characters signals the endof the "extended" function. When the Extension event is fired, the string beginning with the leadin

character and ending with the terminator character is passed to the event handler. If leadin is NULL,then the Extension event is disabled. Note: only characters which form invalid terminal escapesequences should be used for leadin, otherwise the extension will not function.

2.3.5.2.46 SetSelection method

Syntax:session.SetSelection [left [, top [, right [, bottom]]]]

Description:Places a selection rectangle on the session screen. Defaults are upper left corner and lower right cornerof screen.

This is the same as the Select method, and is available when using late binding.

See also:GetSelection method

AccuTerm 7 Help158

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Selection property

2.3.5.2.47 SetText method

Syntax:session.SetText text [, col [, row [, color ]]])

Description:Copies text (a string expression) to the specified location on the session screen. Default location is thecurrent cursor location. Default color is last color used, or value assigned to the Color property. Thecursor location is updated by this method.

2.3.5.2.48 Show method (Session)

Syntax:session.Show

Description:Makes the session window visible.

2.3.5.2.49 Terminate method (Session)

Syntax:session.Terminate [prompt]

Description:This closes the session. If prompt = 1 or 3, and If any session settings have been modified subsequentto loading or saving the session, the user will be prompted whether to save the settings. If prompt = 2 or3, and the session is connected via a network or dialup connection, the user will be prompted todisconnect.

This method is the same as the Close method, and is available when using late binding.

2.3.5.2.50 UnloadImage method

Syntax:session.UnloadImage [filename]

Description:Removes an image created with the LoadImage method from the terminal screen. The image to beremoved is identified by filename. If filename is not specified, the all images are removed.

2.3.5.2.51 Upload method

Syntax:result = session.Upload(source , protocol , binary

[, overwrite])

Description:Uploads a file from the user’s PC to the connected host system. Source is the name of the source file(s)(Kermit, Ymodem and Zmodem may use wild-card characters in source). Protocol is atProtocolASCII,

AccuTerm 7 Automation 159

Copyright 2010-2011 Schellenbach & Assoc., Inc.

atProtocolKermit, atProtocolXmodem, atProtocolYmodem or atProtocolZmodem. Binary is True(non-zero) for binary transfer mode, False (zero) for text transfer mode. Overwrite is meaningful forZmodem only and must be atProtect, atOverwrite, atAppend, atNewer, atUpdate or atResume.

2.3.5.2.52 WaitFor method

Syntax:result = session.WaitFor(mode, timeout, string1

[ , ... , string10])

Description:This method causes AccuTerm to wait for one or more strings to be received from the host system.Returns the index of the string first matched, or zero (0) if no string matched within timeout seconds. Ifmode is zero, a case-sensitive comparison is performed, otherwise the comparison is case-insensitive.Up to ten target strings may be specified.

For the WaitFor method to work properly, the session InputMode property should be set to 1 or 2.Otherwise, the terminal emulation process may process characters received from the host before the WaitFor function has a chance to examine them.

2.3.5.2.53 WriteText method

Syntax:session.WriteText expr

Description:This method transmits data to the host using the communications device attached to the session.Transmits expr (a string expression) to the connected host computer.

This method is the same as the Output method.

2.3.5.3 Session events

2.3.5.3.1 DataReady event

Syntax:object_DataReady()

Description:This event is fired when the session’s InputMode property is non-zero, and data has been received fromthe host and is ready to be read using the Input method.

2.3.5.3.2 Extension event

Syntax:object_Extension(text as String)

Description:This event is fired when one of the extension prefix and suffix characters have been received by theemulation engine. This event is used to extend the functionality of the emulation engine. Use the SetExtension method to specify the prefix and suffix characters.

AccuTerm 7 Help160

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.6 The Sessions Collection

You can create (open) a new session , and you can access any opened session by using the Sessionscollection. The Sessions collection acts like an array of Session objects with one element for eachopen session.

The Sessions collection is used to access any open session by using an array reference:

Set obj = Sessions(index)

returns a Session object for session index. Session indexes are numbered from zero; the first opensession is Sessions(0). The last session is Sessions(Sessions.Count() – 1).

Sessions methodsSessions.Add method Sessions.Count method

2.3.6.1 Sessions methods

2.3.6.1.1 Add method

Syntax:Set object = Sessions.Add ([filename [, state [, mode [, hidden]]]])

Description:The Sessions.Add method creates and initializes a new session. The return value is a Session object:All arguments are optional:

filename configuration file name used to initialize session.state initial window state (0 = normal, 1 = minimized, 2 = maximized) mode input mode (0 = normal, 1 = synchronous, 2 = disconnected) hidden 0 if new session is initially visible, 1 if hidden object session object created by this method

2.3.6.1.2 AddClone method

Syntax:Set object = Sessions.AddClone (session [, state [, mode [, hidden]]]])

Description:The Sessions.AddClone method creates and initializes a new session from an existing session. Thereturn value is a Session object. Except for the session argument, arguments are optional:

session source session from which the clone is made.state initial window state (0 = normal, 1 = minimized, 2 = maximized) mode input mode (0 = normal, 1 = synchronous, 2 = disconnected) hidden 0 if new session is initially visible, 1 if hidden object session object created by this method

2.3.6.1.3 Count method

Syntax:count = Sessions.Count()

AccuTerm 7 Automation 161

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:The Sessions.Count method returns the number of open sessions.

2.3.7 The Settings Object

The Settings method of the Session object returns a reference to a temporary Settings object. Thistemporary object is used to retrieve or modify a number of properties as a group. When changingmultiple properties, using the Settings object improves efficiency.

Nearly all of the properties of the Settings object are identical to properties of the Session object or toproperties of the AccuTerm object. Certain properties of the Settings object (and all methods of thisobject) should not be used in scripts or in automation. These properties and methods are noted, andthey should only be used when using the AccuTerm Emulator Control in another (custom) application.

The recommended way to use the Settings object is in a With Session.Settings … End Withconstruct.

Note: when using the Settings object from a .NET language, call the Apply method just before EndWith due to the due to the way objects are freed in the .NET environment.

Settings propertiesAnsi8Bit property AnsiAppCursor propertyAnsiAppKeypad propertyAnswerback property AsciiDelay propertyAsciiEOL propertyAttributeMask property AutoAnswer property BackgroundPictureFile propertyBackgroundPictureMode propertyBackgroundTransparency propertyBaud property BkspSendsDel propertyBoldFont property BreakKeyAction propertyChanged property (do not use in scripts)Charset property Colors() property ConnectTimeout property CopySelMode propertyCursorType property DataBits property DefaultCaptureDir property DefaultXferDir property DefaultXferMode property DefaultXferOverwrite property Device property DeviceLicenseMode propertyDisableAppMode propertyDuplex property

AccuTerm 7 Help162

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ExtCols property ExtRows property FKeys() property FontName property FontSize property GmodeEnable property Handshake property HistoryRows property HostName property HostPort property HostTermType property KeepaliveInterval propertyKermitCRC propertyKermitEOL propertyKermitErrRetry propertyKermitInitRetry propertyKermitQuote propertyKermitRept propertyKermitTimeout propertyLegibleFont property LockBaudRate property LockFKeys propertyMapUpperFKeys property MessageRows propertyMouseEnable property NoAutoWrap propertyNormCols property NormRows property OverrideModemConfig property Pages property Palette() property Parity property PasteEOFChar property PasteEOFMode property PasteEOLChar property PasteEOLMode property Port property PrinterColorMode property PrinterFontBold property PrinterFontItalic property PrinterFontName property PrinterFontSize property PrinterName property PrinterOrientation property PrinterPaperSize property PrinterPaperSource property PrinterTimeout property PrintJobEject property PrintScreenBackground property PrintScreenEject property ProtectAttr property ScaleFont property ScreenPrintAdapterScript property

AccuTerm 7 Automation 163

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ScreenPrinterName propertyScreenPrintMode property ScreenPrintOrientation propertyScreenPrintPaperSize propertyScreenPrintPaperSource propertyScrMode property ScrollMode property SlavePrintAdapterScript propertySlavePrinterName propertySlavePrintMode property Sound property SSHAuth propertySSHCipher propertySSHUseOnlyPreferredCipher propertySSHVersion propertyStopBits property Strip8th property TcpIdn propertyTcpNoDelay propertyTelnetBinary property TelnetBypass property TelnetKeepaliveIsNOP propertyTermType property XmodemTimeout propertyYmodemTimeout propertyZmodemAuto propertyZmodemTimeout property

Settings methods (do not use in scripts)Apply method Initialize method Dialog method Load method ReadProperties methodSave method WriteProperties method

2.3.7.1 Settings methods

2.3.7.1.1 Apply method

do not use in scripts

Syntax:settings.Apply

Description:The Apply method applies any changed properties to the emulator.

2.3.7.1.2 Dialog method

do not use in scripts

AccuTerm 7 Help164

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Syntax:settings.Dialog [Title, [InitSel, [Categories ]]]

Description:This method displays the emulator settings dialog box which will allow the user to modify most settings.You can specify an optional Title for the dialog, as well as the initially selected item InitSel, and a list ofCategories which are displayed. The Categories list is a string with a single letter for each category toshow in the dialog. If the categories argument is null, all categories are shown.

Categorycode

Initialselection

Category

O General Options

A Files & Folders

D 3 Connection

T 4 Term Type

S 5 Screen

C 7 Colors & Palette

B Background

K 8 Keyboard

F 6 Font & Character Set

P 1 Printer

Q Clipboard

H Mouse

E Sound

X 2 File Transfer

W Windows

R TCL Rules

See also:Using the Settings dialog

2.3.7.1.3 Initialize method

do not use in scripts

Syntax:settings.Initialize

Description:This method returns all emulator settings to their default values.

2.3.7.1.4 Load method

do not use in scripts

Syntax:settings.Load filename

Description:

AccuTerm 7 Automation 165

Copyright 2010-2011 Schellenbach & Assoc., Inc.

This method loads all of the emulator settings from the specified file.

2.3.7.1.5 ReadProperties method

do not use in scripts

Syntax:settings.ReadProperties propbag

Description:This method loads all of the emulator settings from the specified PropertyBag object.

2.3.7.1.6 Save method (Settings)

do not use in scripts

Syntax:settings.Save filename

Description:This method saves all of the emulator settings in the specified INI file.

2.3.7.1.7 WriteProperties method

do not use in scripts

Syntax:settings.WriteProperties propbag

Description:This method saves all of the emulator settings into the specified PropertyBag object.

2.3.7.2 Settings properties

2.3.7.2.1 Ansi8Bit property

Syntax:session.Ansi8Bit

Data type: boolean

Description:If this setting is non-zero, AccuTerm sends 8 bit control codes. Othewise the eqivalent 7-bit escapesequence is sent. This property is only effective when AccuTerm is emulating one of the VT terminals.

2.3.7.2.2 AnsiAppCursor property

Syntax:session.AnsiAppCursor

Data type: boolean

AccuTerm 7 Help166

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:If this setting is non-zero, AccuTerm sends "application codes" instead of "cursor codes" when cursorkeys are pressed. This property is only effective when AccuTerm is emulating one of the VT terminals.

2.3.7.2.3 AnsiAppKeypad property

Syntax:session.AnsiAppKeypad

Data type: boolean

Description:If this setting is non-zero, AccuTerm sends "application codes" instead of numeric characters when keyon the numeric keypad are pressed. This property is only effective when AccuTerm is emulating one ofthe VT terminals.

2.3.7.2.4 AnsiAutoprint property

Syntax:session.AnsiAutoprint

Data type: boolean

Description:When this setting is True (non-zero), the "auto print" slave printer function works the same as a real VTterminal. That is, when AccuTerm is in "auto print" mode, the entire screen line that the cursor is on isprinted when AccuTerm receives a CR, LF or FF control code. If this option is False (zero), then text isprinted as it is received from the host (similar to Wyse auto-print mode).

2.3.7.2.5 Answerback property

Syntax:session.Answerback

Data type: string

Description:This is the string that AccuTerm returns to the host system when the host requests the "answerbackmessage".

2.3.7.2.6 AsciiDelay property

Syntax:session.AsciiDelay

Data type: integer

Description:Specifies the interline delay used for ASCII file uploads in milliseconds.

AccuTerm 7 Automation 167

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.7 AsciiEOL property

Syntax:session.AsciiEOL

Data type: integer

Description:Specifies the line ending sequence for ASCII file uploads. Set to 0 for CR, 1 for LF or 2 for CR+LF.

2.3.7.2.8 AttributeMask property

Syntax:settings.AttributeMask

Data type: integer

Description:The AttributeMask property indicates which visual effects are to be displayed. Use 2 for blink, 8 forunderline, 10 for both blink and underline or zero to disable both blinking and underline. TheAttributeMask property also controls whether border effects are available, as well as the border size. Toenable border effects, add 64 for thin internal borders, 128 for thick internal borders, 576 for thin externalborders and 640 for thick external borders. When internal borders are selected, the vertical border linesare drawn inside the character cell; when external borders are selected, the vertical border lines aredrawn in adjacent cells.

2.3.7.2.9 AutoAnswer property

Syntax:session.AutoAnswer

Data type: boolean

Description:If this setting is non-zero, AccuTerm will answer incoming calls when the session is connected to amodem.

2.3.7.2.10 BackgroundPictureFile property

Syntax:session.BackgroundPictureFile

Data type: string

Description:This is the name of an image file that is used for the session background.

See also:BackgroundPictureMode propertyBackgroundTransparency property

AccuTerm 7 Help168

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.11 BackgroundPictureMode property

Syntax:session.BackgroundPictureMode

Data type: integer

Description:This property controls how the background picture is scaled: 0 - picture is stretched to fit screen size.This may alter the picture's aspect ratio; 1 - picture is scaled so that its longest dimension fills thescreen. The area not filled by the picture is black; 2 - picture is scaled so that its shortest dimension fillsthe screen. The longer dimension is cropped.

See also:BackgroundPictureFile propertyBackgroundTransparency property

2.3.7.2.12 BackgroundTransparency property

Syntax:session.BackgroundTransparency

Data type: integer

Description:The BackgroundTransparency property specifies the transparency of the background color or the opacityof the background picture, as a percentage. 100% means that the picture is used as the background,0% means that the background color is used. Values in between blend the background picture andbackground color.

See also:BackgroundPictureFile propertyBackgroundPictureMode property

2.3.7.2.13 Baud property

Syntax:session.Baud

Data type: integer

Description:This is the baud rate used by the serial port attached to the session. This property is only meaningfulwhen the communication device type is "Serial Port". Acceptable baud rates are atBaud300,atBaud1200, atBaud2400, atBaud9600, atBaud14400, atBaud19200, atBaud38400, atBaud57600and atBaud115200.

2.3.7.2.14 BkspSendsDel property

Syntax:session.BkspSendsDel

AccuTerm 7 Automation 169

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: boolean

Description:If this setting is True (non-zero), pressing the Backspace key causes AccuTerm to send the DEL controlcode. Otherwise, AccuTerm sends the BS control code.

2.3.7.2.15 BoldFont property

Syntax:session.BoldFont

Data type: boolean

Description:Set to True (non-zero) if terminal font is bold, False (zero) if font is normal.

2.3.7.2.16 BreakKeyAction property

Syntax:session.BreakKeyAction

Data type: integer

Description:This property specifies the action to take when the CTRL+BREAK key is pressed. The exact interpretationof this property depends on the connection type.

0 - default action - send normal BREAK signal or character1 - no break key2 - send normal break (telnet BREAK command or SSH BREAK command)3 - send alternate break (telnet IP command or SSH SIGINT signal)256+break_char - send break_char character (ASCII code)

2.3.7.2.17 Changed property (Settings)

do not use in scripts

Syntax:settings.Changed

Data type: integer

Description:Non-zero if the settings have been modified.

2.3.7.2.18 CharacterMapping property

Syntax:session.CharacterMapping

Data type: string

AccuTerm 7 Help170

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:This property may be used to specify custom character mappings. Use this property to specify theASCII character value of the Eudo symbol as used by your host computer. For example:

session.CharacterMapping = "EURO SIGN=128"

You can assign any ASCII value for the Euro symbol using this property.

This property can also be used to specify the extended character set mapping for the Prism P30emulation. To specify the Multinational character set, use:

session.CharacterMapping = "MDIS_P30=MULTINATIONAL"

To specify the Standard National Extension character set, use:

session.CharacterMapping = "MDIS_P30=STANDARD"

If you need to specify multiple character mappings, separate each with CR LF.

2.3.7.2.19 Charset property

Syntax:session.Charset

Data type: string

Description:The character set used by the host. The only valid values are NULL for the default character set for theselected terminal emulation, or "NATIVE" if the host uses the current 8-bit (non-Unicode) Windowscharacter set.

2.3.7.2.20 Colors() property

Syntax:session.Colors( index )

Data type: integer

Description:This array maps foreground and background colors (using the color index described above) to visualattribute combinations. The index to the Colors() array is the attribute code shown in the followingtable:

Index Attribute Description Index Attribute Description

0 normal 22 dim reverse blink

1 blank 24 dim underline

2 blink 26 dim underline blink

4 reverse 28 dim underline reverse

5 reverse blank 30 dim underline reverse blink

6 reverse blink 32 bright

AccuTerm 7 Automation 171

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Index Attribute Description Index Attribute Description

8 undereline 34 bright blink

10 underline blink 36 bright reverse

12 underline reverse 38 bright reverse blink

14 underline reverse blink 40 bright underline

16 dim 42 bright underline blink

18 dim blink 44 bright underline reverse

20 dim reverse 46 bright underline reverse blink

The value of this property may include a border effect style which is associated with the visual attribute.The border effect styles are combined with the foreground and background color as follows:

none = fg + bginset = fb + bg + 16384raised = fg + bg - 32768flat = fg + bg - 16384

2.3.7.2.21 ConnectTimeout property

Syntax:session.ConnectTimeout

Data type: integer

Description:This property is the number of seconds to wait when attempting to make a connection before a timeouterror occurs.

2.3.7.2.22 CopySelMode property

Syntax:session.CopySelMode

Data type: integer

Description:Set to 1 to clear the selection rectangle after copying the screen selection to the clipboard. Set to 0 toretain selection rectangle.

2.3.7.2.23 CursorType property

Syntax:session.CursorType

Data type: boolean

Description:Set to True (non-zero) if cursor shown as a block, False (zero) if cursor shown as an underline.

AccuTerm 7 Help172

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.24 DataBits property

Syntax:session.DataBits

Data type: integer

Description:This is the number of data bits used by the serial port attached to the session. This property is onlymeaningful when the communication device type is atDevSERIAL or atDevMODEM. Acceptable values are7 or 8. After changing this property, use the Reset method for the change to take effect.

2.3.7.2.25 DefaultCaptureDir property

Syntax:session.DefaultCaptureDir

Data type: string

Description:This is the default destination directory used for file capture operations which do not specify a directory.

2.3.7.2.26 DefaultXferDir property

Syntax:session.DefaultXferDir

Data type: string

Description:This is the default destination directory used for file transfer operations which do not specify a directory.

2.3.7.2.27 DefaultXferMode property

Syntax:session.DefaultXferMode

Data type: integer

Description:This is default transfer mode: 0 for text, 1 for binary.

2.3.7.2.28 DefaultXferOverwrite property

Syntax:session.DefaultXferOverwrite

Data type: integer

Description:This is default overwrite setting for received files. Set to True (non-zero) to allow overwrites, else set toFalse (zero). This property only applies to ASCII and Xmodem downloads.

AccuTerm 7 Automation 173

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.29 Device property

Syntax:session.Device

Data type: integer

Description:The communications device type attached to the session. The device type may be atDevNONE for nodevice (disconnects session), atDevSERIAL, atDevTELNET, atDevSSH or atDevMODEM.

2.3.7.2.30 DeviceLicenseMode property

Syntax:session.DeviceLicenseMode

Data type: integer

Description:If this setting is non-zero, "device licensing" negotiation between AccuTerm and the host system isenabled. When device licensing has been successfully negotiated, multiple AccuTerm connections(sessions) to the host system consume only one user license.

To enable device license negotiation, set this value to 1 if the device license response requires a LF

termination character, or 3 if the response requires no termination character.

Device licensing is supported for UniVerse, UniData and QM host systems. The host system must havedevice licensing enabled (this is often an extra-charge item).

2.3.7.2.31 DisableAppMode property

Syntax:session.DisableAppMode

Data type: boolean

Description:Setting this property to True (non-zero) prevents AccuTerm from entering "keypad application mode" or"cursor application mode" when running one of the VT emulations. Set to False to allow applicationmode.

2.3.7.2.32 Duplex property

Syntax:session.Duplex

Data type: integer

Description:This property sets the communications duplex mode to local (no communication to or from host: atDuplexLOCAL), full (remote echo: atDuplexFULL) or half (local echo: atDuplexHALF).

AccuTerm 7 Help174

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.33 ExtCols, ExtRows properties

Syntax:session.ExtColssession.ExtRows

Data type: integer

Description:These properties define the terminal screen dimensions when the terminal is placed into "extendedmode", also known as "132 column mode".

2.3.7.2.34 FKeys() property (settings)

Syntax:settings.Fkeys( index )

Data type: string

Description:This array contains the programmed function and editing key strings. The index is formed by combining(adding) the modifier value with the virtual key number. The special modifier for function key button barcaption can be combined with one of the standard modifiers to retrieve or store the caption & tooltip text. The string value of the programmed key is binary, and might not contain printable characters. Seesession FKeys property for modifier and virtual key values.

The FKeys property implements the standard VB Collection interface, and can be used in a For Each ...Next statement to enumerate all of the programmed keys for a session:

Sub Main()Dim itm As VariantDim s As StringDim key As StringDim content As StringFor Each itm In ActiveSession.Settings.FKeys

s = itm.Itemkey = Item(s,1,1,vbNullChar)content = Item(s,2,2,vbNullChar)Debug.Print key & " = " & content

NextEnd Sub

Note: the Session FKeys property does not implement the Collection interface.

2.3.7.2.35 FontName property

Syntax:session.FontName

Data type: string

Description:

AccuTerm 7 Automation 175

Copyright 2010-2011 Schellenbach & Assoc., Inc.

This is the name of the terminal font used by the session.

2.3.7.2.36 FontSize property

Syntax:session.FontSize

Data type: integer

Description:This is the size of the terminal font in points.

2.3.7.2.37 GmodeEnable property

Syntax:session.GmodeEnable

Data type: boolean

Description:Set to True (non-zero) if Tektronix graphics mode is enabled for the session; otherwise set to False(zero).

2.3.7.2.38 Handshake property

Syntax:session.Handshake

Data type: integer

Description:This is the handshake (flow control) method used by the serial port attached to the session. Thisproperty is only meaningful when the communications device type is atDevSERIAL or atDevMODEM.Acceptable handshake settings are atHandshakeNONE, atHandshakeXON, atHandshakeXIO,atHandshakeRTS or atHandshakeDTR.

2.3.7.2.39 HistoryRows property

Syntax:session.HistoryRows

Data type: integer

Description:This is the number of rows allocated for the session history buffer. If a buffer is allocated, each time aline is scrolled off the screen, the line is placed in the history buffer. Likewise, whenever the screen iscleared, the contents of the screen before clearing is copied to the history buffer.

2.3.7.2.40 HostName property

Syntax:session.HostName

AccuTerm 7 Help176

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: string

Description:This is the name of the host computer system which a session is connected to. This property is onlymeaningful when the communications device type is Telnet or Secure Shell. You can use the host IPaddress in place of the host name. After changing this property, use the Reset method for the change totake effect.

2.3.7.2.41 HostPort property

Syntax:session.HostPort

Data type: string

Description:For Telnet connections, this is the host TCP/IP port number assigned for Telnet services (default port is23). For Secure Shell connections, it is the TCP/IP port assigned for SSH services (default port is 22).

2.3.7.2.42 HostTermType property

Syntax:session.HostTermType

Data type: string

Description:For Telnet and Secure Shell connections, this is the terminal type sent to the host when initiating theconnection. This setting is only needed if AccuTerm’s default terminal type is not compatible with thehost terminal names.

2.3.7.2.43 KeepaliveInterval property

Syntax:session.KeepaliveInterval

Data type: long

Description:If this setting is non-zero, AccuTerm will send a special "keepalive" message periodically to maintain theconnection (some hosts and routers automatically disconnect when they detect an idle connection.)This setting is in seconds. Note: enabling keepalives when connecting to older versions of D3/NT maycause the error log on the host to fill up.)

2.3.7.2.44 KermitCRC property

Syntax:session.KermitCRC

Data type: integer

AccuTerm 7 Automation 177

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:Set to True (non-zero) to enable CRC block checking, else set to False (zero) to use checksum blockchecking. If this option is enabled, and the host Kermit supports this option, then a 16 bit CRC is usedto verify packet integrity.

2.3.7.2.45 KermitEOL property

Syntax:session.KermitEOL

Data type: integer

Description:Specifies the ASCII character to be sent at the end of each Kermit packet. Usually 13 (CR), but may be10 (LF) for some hosts.

2.3.7.2.46 KermitErrRetry property

Syntax:session.KermitErrRetry

Data type: integer

Description:Specifies the number of times Kermit will retry during a file transfer before the transfer is aborted.

2.3.7.2.47 KermitInitRetry property

Syntax:session.KermitInitRetry

Data type: integer

Description:Specifies the number of times Kermit will retry when initiating a file transfer before the transfer is aborted.

2.3.7.2.48 KermitQuote property

Syntax:session.KermitQuote

Data type: integer

Description:Set to True (non-zero) to enable the "eighth bit quoting" option, else set to False (zero). If this option isenabled, and the host Kermit supports this option, then any characters which have the eighth bit set are"quoted" using a sequence of characters which do not have the eighth bit set. This option is useful forconnections which do not support eight bit data.

AccuTerm 7 Help178

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.49 KermitRept property

Syntax:session.KermitRept

Data type: integer

Description:Set to True (non-zero) to enable the run length encoding data compression option, else set to False(zero). If this option is enabled, and the host Kermit supports this option, then repeated sequences ofany character are encoded to compress the data.

2.3.7.2.50 KermitTimeout property

Syntax:session.KermitTimeout

Data type: integer

Description:Specifies the number of seconds before Kermit file transfer operations time out.

2.3.7.2.51 LegibleFont property

Syntax:session.LegibleFont

Data type: boolean

Description:Set to True (non-zero) to keep fonts legible when scaling fonts to fit screen; otherwise set to False(zero).

2.3.7.2.52 LockBaudRate property

Syntax:session.LockBaudRate

Data type: boolean

Description:Set to True (non-zero) to lock the modem to the specified baud rate; otherwise set to False (zero). Note:not all modems support this setting.

2.3.7.2.53 LockFKeys property

Syntax:session.LockFKeys

Data type: integer

Description:

AccuTerm 7 Automation 179

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Set to 0 for unlocked function keys (host can reset or reprogram keys), 1 to lock from reset (host canreprogram keys, but not reset them) or 2 to lock from programming (host cannot reset or reprogramfunction keys).

2.3.7.2.54 MapUpperFKeys property

Syntax:session.MapUpperFKeys

Data type: boolean

Description:Setting this property to True (non-zero) causes AccuTerm to map Ctrl+F1 through Ctrl+F10 as F11 to F20.This is the default behavior, since the PC keyboard does not have keys F13 to F20.

2.3.7.2.55 MessageRows property

Syntax:session.MessageRows

Data type: integer

Description:This property sets the number of message rows and status lines for the session. The value must bebetween 0 and 3. Note that some emulations do not support any status or message rows, and someonly support a single status line. Others support up to 3 lines. For more information, see Status Lines.

2.3.7.2.56 MouseEnable property

Syntax:session.MouseEnable

Data type: boolean

Description:Set to True (non-zero) to enable the ESC STX "1" / ESC STX "2"AccuTerm mouse-on command;otherwise set to False (zero).

2.3.7.2.57 NoAutoWrap property

Syntax:session.NoAutoWrap

Data type: boolean

Description:Set to True (non-zero) to disable automatic line wrap at end of line.

AccuTerm 7 Help180

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.58 NormCols, NormRows properties

Syntax:session.NormColssession.NormRows

Data type: integer

Description:These properties define the terminal screen dimensions when the terminal is placed into "normal mode",also known as "80 column mode".

2.3.7.2.59 OverrideModemConfig property

Syntax:session.OverrideModemConfig

Data type: boolean

Description:Set to True (non-zero) to override modem Control Panel settings for baud rate, data bits, stop bits, parityand handshake with current session settings for these properties; otherwise set to False (zero).

2.3.7.2.60 Pages property

Syntax:session.Pages

Data type: integer

Description:This specifies the number of video pages for the session. The value must be between 1 and 25.

2.3.7.2.61 Palette() property

Syntax:session.Palette( index )

Data type: OLE_COLOR

Description:This array contains the color values for the 16 palette entries used to display text on the terminal screen.The Color property assigns foreground (text) and background colors based on these 16 colors. You canuse the RGB() function to produce an OLE_COLOR from separate red, green and blue values. The red,green and blue values must be in the range of 0 to 255.

Palette entry Color

0 Black

1 Dark Blue

2 Dark Green

3 Turquoise

AccuTerm 7 Automation 181

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Palette entry Color

4 Dark Red

5 Purple

6 Olive

7 Light Grey

8 Dark Grey

9 Blue

10 Green

11 Cyan

12 Red

13 Magenta

14 Yellow

15 White

An additional 6 palette entries exist for drawing borders (see Visual Styles). These are:

Palette entry Used for

16 flat outer border

17 flat inner border

18 shadow outer border

19 shadow inner border

20 highlight outer border

21 highlight inner border

2.3.7.2.62 Parity property

Syntax:session.Parity

Data type: integer

Description:This is the parity setting used by the serial port attached to the session. This property is only meaningfulwhen the communication device type is atDevSERIAL or atDevMODEM. Acceptable values areatParityNONE, atParityEVEN, atParityODD, atParityMARK and atParitySPACE. After changing thisproperty, use the Reset method for the change to take effect.

2.3.7.2.63 PasteEOFChar property

Syntax:session.PasteEOFChar

Data type: integer

Description:This is the ASCII character which is transmitted to the host at the end of paste operation. If this value iszero, no character will be transmitted.

AccuTerm 7 Help182

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.64 PasteEOFMode property

Syntax:session.PasteEOFMode

Data type: integer

Description:Set to 0 if no character is transmitted at the end of a paste operation. Set to 1 if a SUB control code istransmitted. Set to 2 to use the character defined by the PasteEOFChar property.

2.3.7.2.65 PasteEOLChar property

Syntax:session.PasteEOLChar

Data type: integer

Description:This is the ASCII character which is transmitted to the host at the end of each line in a paste operaton. Ifthis value is zero, no character will be transmitted.

2.3.7.2.66 PasteEOLMode property

Syntax:session.PasteEOLMode

Data type: integer

Description:Set to 0 if a CR is transmitted at the end of each line of a paste operation. Set to 1 if a LF is transmitted.Set to 2 if a CR+ LF is transmitted. Set to 3 if a TAB is transmitted. Set to 4 if no character is transmitted.Set to 5 to use the character defined by the PasteEOLChar property. If you want to suppress the end-of-line character after the last line, add 128 to this value.

2.3.7.2.67 Port property

Syntax:session.Port

Data type: integer

Description:Specifies the COM port number attached to the session. This property is only meaningful when thecommunication device type is atDevSERIAL. Acceptable values are from 1 to 127. After changing thisproperty, use the Reset method for the change to take effect.

2.3.7.2.68 PrinterColorMode property

Syntax:session.PrinterColorMode

AccuTerm 7 Automation 183

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Data type: integer

Description:If this property is non-zero and the ScreenPrintMode property is non-zero (Graphics mode), the screenis printed in color; otherwise the screen is printed in black and white. This property has no effect whenthe ScreenPrintMode property is zero (Text mode).

2.3.7.2.69 PrinterFontBold property

Syntax:session.PrinterFontBold

Data type: boolean

Description:Set this property to True (non-zero) to print using boldface. This property affects slave (or Aux) print jobswhen the SlavePrintMode property is 1 (Graphics mode). This property has no effect when theSlavePrintMode property is zero (Text mode).

2.3.7.2.70 PrinterFontItalic property

Syntax:session.PrinterFontItalic

Data type: boolean

Description:Set this property to True (non-zero) to print using italics. This property affects slave (or Aux) print jobswhen the SlavePrintMode property is 1 (Graphics mode). This property has no effect when theSlavePrintMode property is zero (Text mode).

2.3.7.2.71 PrinterFontName property

Syntax:session.PrinterFontName

Data type: string

Description:Set this property to the name of the font to use for slave (or Aux) print jobs when the SlavePrintModeproperty is 1 (Graphics mode). This property has no effect when the SlavePrintMode property is zero(Text mode).

2.3.7.2.72 PrinterFontSize property

Syntax:session.PrinterFontSize

Data type: integer

Description:Set this property to the size (in points) of the font to use for slave (or Aux) print jobs when the

AccuTerm 7 Help184

Copyright 2010-2011 Schellenbach & Assoc., Inc.

SlavePrintMode property is 1 (Graphics mode). This property has no effect when the SlavePrintModeproperty is zero (Text mode).

2.3.7.2.73 PrinterOrientation property

Syntax:session.PrinterOrientation

Data type: integer

Description:Set this property to 0 use the default page orientation, 1 for portrait or 2 for landscape. This propertyapplies only to slave (or Aux) print jobs and only when the SlavePrintMode property is 1 (Graphicsmode). This property has no effect when the SlavePrintMode property is zero (Text mode).

2.3.7.2.74 PrinterPaperSize property

Syntax:session.PrinterPaperSize

Data type: integer

Description:Set this property to 0 use the default paper size for the printer. Otherwise use a paper size from thetable below. This property applies only to slave (or Aux) print jobs and only when the SlavePrintModeproperty is non-zero (Graphics mode). This property has no effect when the SlavePrintMode property iszero (Text mode).

1 Letter 8 1/2 x 11 in 2 Letter Small 8 1/2 x 11 in

3 Tabloid 11 x 17 in 4 Ledger 17 x 11 in

5 Legal 8 1/2 x 14 in 6 Statement 5 1/2 x 8 1/2 in

7 Executive 7 1/4 x 10 1/2 in 8 A3 297 x 420 mm

9 A4 210 x 297 mm 10 A4 Small 210 x 297 mm

11 A5 148 x 210 mm 12 B4 (JIS) 250 x 354

13 B5 (JIS) 182 x 257 mm 14 Folio 8 1/2 x 13 in

15 Quarto 215 x 275 mm 16 10x14 in

17 11x17 in 18 Note 8 1/2 x 11 in

19 Envelope #9 3 7/8 x 8 7/8 20 Envelope #10 4 1/8 x 9 1/2

21 Envelope #11 4 1/2 x 10 3/8 22 Envelope #12 4 \276 x 11

23 Envelope #14 5 x 11 1/2 24 C size sheet

25 D size sheet 26 E size sheet

27 Envelope DL 110 x 220mm 28 Envelope C5 162 x 229 mm

29 Envelope C3 324 x 458 mm 30 Envelope C4 229 x 324 mm

31 Envelope C6 114 x 162 mm 32 Envelope C65 114 x 229 mm

33 Envelope B4 250 x 353 mm 34 Envelope B5 176 x 250 mm

35 Envelope B6 176 x 125 mm 36 Envelope 110 x 230 mm

AccuTerm 7 Automation 185

Copyright 2010-2011 Schellenbach & Assoc., Inc.

37 Envelope Monarch 3.875 x 7.5 in 38 6 3/4 Envelope 3 5/8 x 6 1/2 in

39 US Std Fanfold 14 7/8 x 11 in 40 German Std Fanfold 8 1/2 x 12 in

41 German Legal Fanfold 8 1/2 x 13 in

2.3.7.2.75 PrinterPaperSource property

Syntax:session.PrinterPaperSource

Data type: integer

Description:Set this property to 0 use the default paper source for the printer. Otherwise use a paper source from thetable below. This property applies only to slave (or Aux) print jobs and only when the SlavePrintModeproperty is 1 (Graphics mode). This property has no effect when the SlavePrintMode property is zero(Text mode).

1 Upper tray

2 Lower tray

3 Middle tray

4 Manual feed

5 Envelope feeder

6 Envelope manual

7 Auto

8 Tractor

2.3.7.2.76 PrinterTimeout property

Syntax:session.PrinterTimeout

Data type: integer

Description:This property specifies the number of seconds of inactivity before a print job is closed.

2.3.7.2.77 PrintJobEject property

Syntax:session.PrintJobEject

Data type: integer

Description:This property specifies if a page is ejected before or after a print job. Set this property to 0 for no pageejects, 1 to eject page before print job, 2 to eject page after print job or 3 to eject page before and afterprint job.

AccuTerm 7 Help186

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.78 PrintScreenBackground property

Syntax:session.PrintScreenBackground

Data type: boolean

Description:Set to True (non-zero) to print the screen background when using the Print Screen command and the ScreenPrintMode property is non-zero (Graphics mode); otherwise set to False (zero). This propertyhas no effect when the ScreenPrintMode property is zero (Text mode).

2.3.7.2.79 PrintScreenEject property

Syntax:session.PrintScreenEject

Data type: integer

Description:This property specifies if a page is ejected before or after a print screen. Set this property to 0 for nopage ejects, 1 to eject page before print screen, 2 to eject page after print screen or 3 to eject pagebefore and after print screen.

2.3.7.2.80 ProtectAttr property

Syntax:session.ProtectAttr

Data type: integer

Description:Visual attribute number assigned to "protected fields" under Wyse/ADDS emulation. See Colors()property for a list of attribute numbers.

2.3.7.2.81 ScaleFont property

Syntax:session.ScaleFont

Data type: boolean

Description:Set to True (non-zero) to enable automatic font scaling; otherwise set to False (zero).

2.3.7.2.82 ScreenPrintAdapterScript property

Syntax:session.ScreenPrintAdapterScript

Data type: string

AccuTerm 7 Automation 187

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:This is the name of the print adapter script file to use for screen printing. Print adapter scripts are usedto process the print job using an external program, such as Print Wizard. To use the print adapter script,the ScreenPrintMode property must be set to 2. See Screen Printer Settings for more information onprint adapters.

2.3.7.2.83 ScreenPrinterName property

Syntax:session.ScreenPrinterName

Data type: string

Description:This is the name of the printer used by the session for screen printing. It may be set to null ("") toindicate the current Windows default printer, or "no printer" to disable screen printing.

See also:SlavePrinterName property

2.3.7.2.84 ScreenPrintMode property

Syntax:session.ScreenPrintMode

Data type: integer

Description:Set to 0 for text mode, 1 for graphics mode or 2 to use the print adapter script specified by the ScreenPrintAdapterScript property. When this property is 1, the PrinterColorMode and PrintScreenBackground properties affect how the screen is printed.

2.3.7.2.85 ScreenPrintOrientation property

Syntax:session.ScreenPrintOrientation

Data type: integer

Description:Set this property to 0 use the default page orientation, 1 for portrait or 2 for landscape. This propertyapplies only to screen printing and only when the ScreenPrintMode property is 1 (Graphics mode). Thisproperty has no effect when the ScreenPrintMode property is zero (Text mode).

2.3.7.2.86 ScreenPrintPaperSize property

Syntax:session.ScreenPrintPaperSize

Data type: integer

Description:

AccuTerm 7 Help188

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Set this property to 0 use the default paper size for the printer. Otherwise use a paper size from thetable shown in the PrinterPaperSize property. This property applies only when the ScreenPrintModeproperty is non-zero (Graphics mode). This property has no effect when the ScreenPrintMode propertyis zero (Text mode).

2.3.7.2.87 ScreenPrintPaperSource property

Syntax:session.ScreenPrintPaperSource

Data type: integer

Description:Set this property to 0 use the default paper source for the printer. Otherwise use a paper source from thetable shown in the PrinterPaperSource property. This property applies only to screen printing and onlywhen the ScreenPrintMode property is 1 (Graphics mode). This property has no effect when theScreenPrintMode property is zero (Text mode).

2.3.7.2.88 ScrMode property

Syntax:session.ScrMode

Data type: integer

Description:Set to zero for normal (80 column) mode, 1 for extended (132 column) mode.

2.3.7.2.89 ScrollMode property

Syntax:session.ScrollMode

Data type: integer

Description:This controls the appearance of the vertical scroll bar: 0=no scroll bar (scroll bar is only visible if thecurrent number of Rows will not fit in the current window size), 1=always show scroll bar, and2=automatically show scroll bar when cursor is positioned near right border of window.

2.3.7.2.90 SlavePrintAdapterScript property

Syntax:session.SlavePrintAdapterScript

Data type: string

Description:This is the name of the print adapter script file to use for slave (Aux) print jobs. Print adapter scripts areused to process the print job using an external program, such as Print Wizard. To use the print adapterscript, the SlavePrintMode property must be set to 2. See Slave Printer Settings for more informationon print adapters.

AccuTerm 7 Automation 189

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.91 SlavePrinterName property

Syntax:session.PrinterNamesession.SlavePrinterName

Data type: string

Description:This is the name of the printer used by the session for slave (or Aux) printer output. It may be set to null("") to indicate the current Windows default printer, or "no printer" to disable slave printing.

See also:ScreenPrinterName property

2.3.7.2.92 SlavePrintMode property

Syntax:session.SlavePrintMode

Data type: integer

Description:Set to 0 for text mode, 1 for graphics mode or 2 to use the print adapter script specified in the SlavePrintAdapterScript property. When this property is 1, the PrinterFont…, PrinterOrientation, PrinterPaperSize and PrinterPaperSource properties affect how the slave (Aux) print job is printed.Print adapter scripts are used to process the print job using an external program, such as PrintWizard.See Slave Printer Settings for more information on print adapters.

2.3.7.2.93 Sound property

Syntax:session.Sound

Data type: string

Description:This property may be used to specify a custom sound for the terminal beep. Set this property to null touse the default sound. Set to a valid WAVE, MP3 or MIDI file name to play the specified wave file. Set to“SystemDefault”, “SystemHand”, “SystemExclamation” or “SystemAsterisk” to use the soundassociated with a system event (as defined in the Control Panel Sounds applet). Set to frequency,duration to use a true “beep” at the specified frequency (Hz) and duration (ms).

2.3.7.2.94 SSHAuth property

Syntax:session.SSHAuth

Data type: integer

Description:

AccuTerm 7 Help190

Copyright 2010-2011 Schellenbach & Assoc., Inc.

This property may be used to select the authentication method which will be used by a Secure Shell(ssh) session to authenticate a user to the host. Available authentication methods are: public key (2),password (3) and interactive (7). Use zero (0) for the default authentication method (password).

2.3.7.2.95 SSHCipher property

Syntax:session.SSHCipher

Data type: integer

Description:This property may be used to select a cipher to be used to encrypt a Secure Shell (ssh) session.Available ciphers are: triple DES (3), blowfish (6), 128 bit AES (7) and 256 bit AES (8). Use zero (0) forthe default cipher (triple DES).

2.3.7.2.96 SSHKey property

Syntax:session.SSHKey

Data type: string

Description:This property contains the name of the SSH private key file. If no path is included, AccuTerm's defaultkey folder will be used to read the key file.

2.3.7.2.97 SSHUseOnlyPreferredCipher property

Syntax:session.SSHUseOnlyPreferredCipher

Data type: boolean

Description:Set to True (non-zero) to require that the cipher used for an SSH connection is the cipher specified bythe SSHCipher property. If the host system does not accept the preferred cipher, the connection isaborted.

2.3.7.2.98 SSHVersion property

Syntax:session.SSHVersion

Data type: integer

Description:This property may be used to select the desired SSH protocol version. Set this property to zero (0) forautomatic protocol selection. Set to 1 for SSH version 1 or set to 2 for SSH version 2. When automaticprotocol selection is used, AccuTerm selects the highest protocol version supported by the host.

AccuTerm 7 Automation 191

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.99 StopBits property

Syntax:session.StopBits

Data type: integer

Description:This is the number of stop bits used by the serial port attached to the session. This property is onlymeaningful when the communication device type is atDevSERIAL or atDevMODEM. Acceptable values are1 or 2. After changing this property, use the Reset method for the change to take effect.

2.3.7.2.100 Strip8th property

Syntax:session.Strip8th

Data type: boolean

Description:Set to True (non-zero) to cause AccuTerm to truncate received data to 7 bits; otherwise set to False(zero).

2.3.7.2.101 TcpIdn property

Syntax:session.TcpIdn

Data type: boolean

Description:Set this property to True (non-zero) to enable Internationalized Domain Names (IDN) for the host name. IDN relies upon a standardized mechanism known as "Punycode" for encoding Unicode domain namesusing only the ASCII characters that are permitted by the global DNS system.

2.3.7.2.102 TcpNoDelay property

Syntax:session.TcpNoDelay

Data type: boolean

Description:Normally, the TCP network stack delays outbound network messages for a short time in order to"coalesce" multiple small messages into a single packet. When this setting is True (non-zero),AccuTerm will send each message as soon as possible. Setting this option may improve throughput,especially when running in AccuTerm's GUI environment and during file transfers, at the expense ofincreased network traffic.

AccuTerm 7 Help192

Copyright 2010-2011 Schellenbach & Assoc., Inc.

2.3.7.2.103 TelnetBinary property

Syntax:session.TelnetBinary

Data type: boolean

Description:Set to True (non-zero) to enable Telnet binary communication mode; otherwise set to False (zero) fortext communication mode.

2.3.7.2.104 TelnetBypass property

Syntax:session.TelnetBypass

Data type: boolean

Description:Set to True (non-zero) to bypass initial option negotiation; otherwise set to False (zero) for normalnegotiation. This is required for certain hosts like D3 which do not implement the complete Telnetprotocol.

2.3.7.2.105 TelnetKeepaliveIsNOP property

Syntax:session.TelnetKeepaliveIsNOP

Data type: boolean

Description:Set to True (non-zero) to send Telnet NOP command for keepalives; otherwise, sends Telnet DMARKcommand for keepalives.

2.3.7.2.106 TermType property

Syntax:session.TermType

Data type: integer

Description:This is the terminal emulation setting for the session. Possible values are:

atTermTTY basic TTY

atTermVPA2 ADDS Viewpoint A2

atTermVP60 ADDS Viewpoint 60

atTermP60 ProComm Viewpoint 60

atTermA2E ADDS Viewpoint A2 Enhanced

atTermWY50 Wyse 50

atTermWY60 Wyse 60

AccuTerm 7 Automation 193

Copyright 2010-2011 Schellenbach & Assoc., Inc.

atTermVT52 DEC VT-52

atTermVT100 DEC VT-100

atTermVT220 DEC VT-220

atTermVT320 DEC VT-320

atTermVT420 DEC VT-420

atTermLinux Linux console

atTermSCO SCO console

atTermANSI ANSI BBS

atTermPICKMON Pick PC Monitor

atTermP30 MDIS P30

atTermTEK Tektronix 4014

atTermTEK4100 Tektronix 4100

2.3.7.2.107 XmodemTimeout property

Syntax:session.XmodemTimeout

Data type: integer

Description:Specifies the number of seconds before Xmodem file transfer operations time out.

2.3.7.2.108 YmodemTimeout property

Syntax:session.YmodemTimeout

Data type: integer

Description:Specifies the number of seconds before Ymodem file transfer operations time out.

2.3.7.2.109 ZmodemAuto property

Syntax:session.ZmodemAuto

Data type: integer

Description:Set to True (non-zero) to enable automatic Zmodem downloads, otherwise set to False (zero).

2.3.7.2.110 ZmodemTimeout property

Syntax:session.ZmodemTimeout

Data type: integer

AccuTerm 7 Help194

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Description:Specifies the number of seconds before Zmodem file transfer operations time out.

2.3.8 AccuTerm constants

Description:The following constants may be used in setting many of AccuTerm’s properties.

Device constantsatDevNONE = 0 No communications device selected.

atDevSERIAL = 1 Communications device is a serial port.

atDevPICLAN = 2 Communications device is a PicLan network connection.

atDevTELNET = 3 Communications device is a TCP/IP Telent networkconnection.

atDevMODEM = 4 Communications device is a modem.

atDevSSH = 5 Communications device is a TCP/IP Secure Shellconnection.

Serial port constantsatBaud300 = 0 Baud rate is 300 bps.

atBaud1200 = 1 Baud rate is 1200 bps.

atBaud2400 = 2 Baud rate is 2400 bps.

atBaud4800 = 3 Baud rate is 4800 bps.

atBaud9600 = 4 Baud rate is 9600 bps.

atBaud14400 = 5 Baud rate is 14,400 bps.

atBaud19200 = 6 Baud rate is 19,200 bps.

atBaud38400 = 7 Baud rate is 38,400 bps.

atBaud57600 = 8 Baud rate is 57,600 bps.

atBaud115200 = 9 Baud rate is 115,200 bps.

atParityNONE = 0 No parity checking

atParityODD = 1 Use odd parity

atParityEVEN = 2 Use even parity

atParityMARK = 3 Use mark parity

atParitySPACE = 4 Use space parity

atHandshakeNONE = 0 Do not use any flow control (handshake)

atHandshakeXON = 1 Use Xon/Xoff (software) flow control (inbound)

atHandshakeRTS = 2 Use RTS/CTS (hardware) flow control

atHandshakeDTR = 3 Use DTR/DSR (hardware) flow control

atHandshakeXIO = 4 Xon/Xoff handshake (bidirectional)

Duplex mode constants

atDuplexFULL = 0 Full duplex (host performs echo)

atDuplexHALF = 1 Half duplex (local echo)

atDuplexLOCAL = 2 Local mode

AccuTerm 7 Automation 195

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Terminal type constantsatTermTTY = 0 TTY emulation

atTermVPA2 = 1 ADDS Viewpoint A2 emulation

atTermVP60 = 2 ADDS Viewpoint 60 emulation

atTermP60 = 3 Procomm ADDS Viewpoint 60 emulation

atTermA2E = 4 ADDS Viewpoint A2 Enhanced emulation

atTermWY50 = 5 Wyse 50 emulation

atTermWY60 = 6 Wyse 60 emulation

atTermVT52 = 7 DEC VT52 emulation

atTermVT220 = 8 DEC VT220 emulation

atTermANSI = 9 ANSI BBS emulation

atTermPICKMON = 10 Pick PC Monitor (console) emulation

atTermTEK = 11 Tektronix 4014 emulation

atTermVT100 = 12 DEC VT100ulation

atTermVT320 = 13 DEC VT320 emulation

atTermVT420 = 14 DEC VT420 emulation

atTermSCO = 15 SCO Console emulation

atTermLinux = 16 Linux Console emulation

atTermTEK4100 = 17 Tektronix 4100 emulation

atTermP30 = 18 Prism 30 emulation

File transfer constants

atProtocolASCII = 0 use ASCII file transfer protocol

atProtocolKermit = 1 use Kermit file transfer protocol

atProtocolXmodem = 2 use Xmodem file transfer protocol

atProtocolYmodem = 3 use Ymodem file transfer protocol

atProtocolZmodem = 4 use Zmodem file transfer protocol

atProtect = 0 do not overwrite existing file (Zmodem upload only)

atOverwrite = 1 overwrite existing file (Zmodem upload only)

atAppend = 2 append to existing file (Zmodem upload only)

atNewer = 3 overwrite existing file only when uploaded file is newer(Zmodem upload only)

atUpdate = 4 overwrite existing file, but ignore non-existing file (Zmodemupload only)

atResume = 5 Zmodem crash recovery

Reset constants

atResetAll = 0 Reset connection and terminal

atResetTerminal = 1 Reset terminal only

atResetComm = 2 Reset connection only

Printer constants

atPrinterOff = 0 Turn printer off

AccuTerm 7 Help196

Copyright 2010-2011 Schellenbach & Assoc., Inc.

atPrinterOn = 1 Auto-print mode

atPrinterTransparent = 2 Transparent print mode

History scroll constants

atScrlHistLineUp = 0 Scroll history to previous line

atScrlHistLineDown = 1 Scroll history to next line

atScrlHistPageUp = 2 Scroll history to previous page

atScrlHistPageDown = 3 Scroll history to next page

atScrlHistTop = 6 Scroll history to beginning

atScrlHistBottom = 7 Scroll history to end

Top Level IntroThis page is printed before a new

top-level chapter starts

Part

III

AccuTerm 7 Help198

Copyright 2010-2011 Schellenbach & Assoc., Inc.

3 AccuTerm 7 Reference

3.1 AccuTerm Programming

AccuTerm 7 supports many "private" commands which may be sent by host application programs.These commands allow for remote control of file transfer and data capture, executing DOS or Windowsprograms, enabling the mouse, displaying images, playing sounds, executing VBA scripts, andprogramming the function and keypad keys. These commands are valid in all terminal types.

External Program Execution

ESC STX < command CR

Executes the Windows command line command, then returns to AccuTerm emulation modeimmediately. Command is executed concurrently with the terminal session. Command mayalso be the file name of a document that is registered with Windows. If command is adocument file name, the program associated with the specified file is used to open the file.For example, if the file name ends in ".doc", Microsoft Word is used to open the specifieddocument file. You can also use this function to open a URL in the default browser (be sureto include the http:// prefix in the URL):

EQU ESC TO CHAR(27), STX TO CHAR(2), CR TO CHAR(13)CMD = "calc.exe"PRINT ESC:STX:'<':CMD:CR:

ESC STX > command CR

Executes the Windows command line command and suspends the terminal session untilthe command completes. See above for details.

Note: when using this function, you often need the host program to wait until the commandterminates. If you require this functionality, then you should send the ESC STX I command

immediately following the ESC STX > command, and then wait for input. AccuTerm will not

process the ESC STX I until the command terminates. After the command completes, ESC

STX I transmits AccuTerm's licensing information back to the host, thus the input is

satisfied and the host program can continue execution:

EQU ESC TO CHAR(27), STX TO CHAR(2), CR TO CHAR(13)CMD = "notepad.exe"PRINT ESC:STX:'>':CMD:CR:PRINT ESC:STX:'I':INPUT JUNK

Mouse Functions

ESC STX 0

Disable mouse input; turns off mouse cursor.

ESC STX 1

Enable mouse input; turns on mouse cursor. Transmits mouse location whenever a mousebutton is pressed. Both single and double clicks are supported. A single-click will alwaysprecede a double-click. Note: this command is ignored unless host mouse reporting is

AccuTerm 7 Reference 199

Copyright 2010-2011 Schellenbach & Assoc., Inc.

enabled in the Mouse Settings.

The format of the mouse click report depends on whether the current terminal type usesASCII or ANSI-style function keys. The report is designed to look like a function key,followed by the click position. For terminal types with ASCII-style function keys, the reportis:

STX b CR ccc.rr CR

where b indicates which mouse button was pressed (p=left click, q=right click, r= center

click, P=left double click, Q=right double click, R=center double click), ccc is the three digit

column of the mouse cursor and rr is the two digit row of the mouse cursor (both indecimal, 000.00 is the upper left corner).

For terminal types with ANSI-style function keys, the report is:

ESC [ n ~ ESC [ r ; c R

where n indicates which mouse button was pressed (101=left click, 102=right click, 103=center click, 111=left double click, 112=right double click, 113=center double click), r isthe row of the mouse cursor and c is the column of the mouse cursor (both in decimal,where 1;1 is the upper left corner). If the terminal is using 8-bit control codes, AccuTermsends CSI instead of ESC [. in this report.

Note: if the mouse is clicked on an image that is displayed on the terminal screen, thelocation in the above reports is replaced by the image file name.

ESC STX 2

SystemBuilder compatibility mode; turns on mouse cursor. Transmits mouse locationwhenever a mouse button is pressed. Note: this command is ignored unless host mousereporting is enabled in the Mouse Settings.

STX ~ CR b ; c ; r CR

b indicates which mouse button was pressed (1 = left, 2 = right, 4 = center), c is thecolumn of the mouse cursor and r is the row of the mouse cursor (both in decimal, 0;0 isthe upper left corner).

ESC STX h CR

Resets the mouse pattern table used for mouse pattern matching.

ESC STX h button HT pattern HT click HT dblclk CR

Adds an entry to the mouse pattern table used for mouse pattern matching. See MouseSupport for more information about using mouse pattern matching.

Data Transfer

ESC STX D p o m ; path CR

Download file from host to PC. Protocol p may be A (ASCII), K (Kermit), X (Xmodem), Y (Ymodem) or Z (Zmodem); Overwrite o may be O (overwrite) or N (no overwrite) or, if protocolis Z, overwrite may be R; Mode m may be T (text) or B (binary). Path is the drive, directory

AccuTerm 7 Help200

Copyright 2010-2011 Schellenbach & Assoc., Inc.

and file name of the file being received. When using Kermit, Ymodem or Zmodem protocols,only drive and directory need be specified, as the file name is included in the transferprotocol; however if the file name is specified here, it overrides the file name included in thetransfer protocol.

Note: the download command is typically used by applications which implement the hostside of the file transfer protocol to automatically start the corresponding client protocol. Thiscommand only affects the client (AccuTerm) side of the process.

ESC STX U p m ; path CR

Upload file from PC to host. Protocol p may be A (ASCII), K (Kermit), X (Xmodem), Y(Ymodem) or Z (Zmodem); Mode m may be T (text) or B (binary). Path is the drive, directoryand file name of the file to send to the host. Wildcard characters (* or ?) are valid when

using Kermit, Ymodem or Zmodem protocols.

Note: the upload command is typically used by applications which implement the host sideof the file transfer protocol to automatically start the corresponding client protocol. Thiscommand only affects the client (AccuTerm) side of the process.

ESC STX S

Returns status of last file transfer. The format of the status message is:

Status: s files f bytes b CR

where f is the number of files transferred, b is the number of bytes transferred, and s is thetransfer status:

0 = transfer successful

1 = unable to open file

2 = transfer aborted by operator

3 = file already exists

4 = terminated due to timeout

5 = terminated due to corrupted data

6 = invalid packet type

7 = terminated by remote program

8 = 8 data bits required for protocol

9 = software flow control not allowed for protocol

10 = destination file is write protected

ESC STX C o p t ; path CR

Begin capture. Mode o may be O (overwrite), A (append), N (new file only) or C (clipboard). Source p may be P to capture printed data or null to capture received data. T may be T(text) to capture text only (filters out control characters) or null for no filtering. Path is thedrive, directory and file name where the captured data is to be stored. All charactersreceived (or printed) are stored in the file (or clipboard) until capturing is disabled (via local orremote command). Note: when capturing to the clipboard, path is ignored.

ESC STX C X

End capture. The file containing the captured data is closed.

ESC STX Y path CR

AccuTerm 7 Reference 201

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Send clipboard or file to host. If path is null, the contents of the clipboard are sent,otherwise the specified file is sent. Each line is terminated as specified in the ASCII filetransfer settings. A SUB (CTRL+Z) is sent after the last line.

Status and Control

ESC STX I

Returns AccuTerm release, serial number, type and licensee information. Message formatis:

ACCUTERM/WIN rel serial type licensee... CR

where rel is the AccuTerm release number, serial is the program serial number, type isSINGLE, SITE, CORP, DEALER or DEMO, and licensee is the name under which the program

has been licensed.

ESC STX ?

Returns a string indicating the platform, product type, license type, capabilities andautomation services. Message format is:

platform * product * license * capabilities * services CR

where platform is 3 (Win32); product is 4 = AccuTerm (standard version), 5 = AccuTermInternet Edition, 6 = AccuTerm Emulator ActiveX Control, 7 = AccuTerm Lite; releasenumber, serial is the program serial number, license is 1 = single user, 2 = site, 3 =enterprise, 5 = developer, 7 = internet, 8 = component, 9 = evaluation; capabilities is astring of letters indicating the various capabilities where:

A = ASCII protocol supportedB = Border effects (visual styles) enabledC = Capture supportedD = Download supportedE = Execute command supportedG = GUI supportedH = Server mode supportedI = Image display supportedJ = Screen save & restore supportedK = Kermit protocol supportedL = Background image supportedO = Object Bridge supportedP = Packetized messages supportedQ = Message integrity checks supportedR = Reliable connectionS = Scripting supportedT = File transfer error info supportedU = Upload supportedV = Host capabilities command supportedW = Synchronous script execution supportedX = File conversion supportedY = Printer control & status query supported

services is a string of letters indicating which automation services are available (a = Object

AccuTerm 7 Help202

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Bridge, b = file converter, g = GUI).

ESC STX = host-capabilities * buffer-size CR

Informs AccuTerm of any special host program capabilities. host-capabilities is a string ofletters indicating various host features:

D = host programs use tag notation for system delimitersC = host supports message checksumsM = host supports message length check

buffer-size is optional, and specifies the maximum packet size that the client can send tohost.

ESC STX % 0

Returns the program directory, followed by CR. This is normally the directory whereAccuTerm is installed, except in the case of AccuTerm Internet Edition, the directoryreturned is the one containing the Internet Explorer exe file.

ESC STX % 1

Returns the current directory (usually from the shortcut "start in" field), followed by CR.

ESC STX % 2

Returns the directory containing AccuTerm's atwin70.ini file, followed by CR.

ESC STX % 3

Returns the directory containing AccuTerm's emulator DLL, followed by CR.

ESC STX X

Terminates the current AccuTerm session. If only one session exists, then AccuTerm isterminated also.

ESC STX W

Saves the current session settings to disk. If no session file name exists, then one will beprompted for.

ESC STX L

Sets the CapsLock key state to "On"

ESC STX M

Sets the CapsLock key state to "Off"

Terminal Screen

ESC STX E

Selects extended (132 column) screen size as defined by the extended columns and rowsin the screen settings.

ESC STX N

Selects normal (80 column) screen size as defined by the normal columns and rows in the screen settings.

ESC STX A color CR

AccuTerm 7 Reference 203

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Sets the foreground (text) color to color. This command overrides the foreground colorassigned by the last visual attribute selected.

ESC STX B color CR

Sets the background color to color. This command overrides the background color assignedby the last visual attribute selected.

Color Display

0 Black

1 Dark Blue

2 Dark Green

3 Turqoise

4 Dark Red

5 Purple

6 Olive

7 Light Gray

8 Dark Grey

9 Blue

10 Green

11 Cyan

12 Red

13 Magenta

14 Yellow

15 White

Note: the actual display color may vary from the color shown in the table, since it ispossible to modify the palette (see Color Settings).

ESC STX r x1 , y1 , x2 , y2 , fill , border CR

Draw rectangle. x1, y1 is the upper-left corner and x2, y2 is the lower-right corner.Coordinates are in character columns and rows. The upper-left corner of the screen is (0,0).

The rectangle can be filled using either a visual attribute or a background color. To fill with avisual attribute, fill is A0 .. A63. The attribute number is formed by adding the following

values:

0 = normal1 = invisible2 = blinking4 = reverse8 = underline16 = dim32 = bright

To fill with a background color (as described above), fill is B0 ... B15. To draw a border

without filling the rectangle, fill is N. A border can be drawn around the rectangle. Border is N

(no border), B (flat border), I (inset border) or R (raised border).

ESC STX jS , ID , col , row , width , height , page CR

Saves a copy of the specified screen block (text, colors and visual effects) and terminalstate in memory and associates the block with the specified identifier (ID) which can be an

AccuTerm 7 Help204

Copyright 2010-2011 Schellenbach & Assoc., Inc.

arbitrary alpha-numeric string (may not contain commas). Any number of screen blocks canbe saved. Col and row specify the upper-left corner of the block. If either is omitted or null,zero is assumed. Width and height specify the size of the block. If width or height is omittedor null, the screen width or height is used. Page optionally specifies the terminal page forthe block, and if omitted or null, the current page is used.

ESC STX jR , ID , col , row , page CR

Restores the screen block associated with the specified identifier (ID) to the screen. Col androw specify the upper-left corner of the destination. If either is omitted or null, the originalposition of the saved block is assumed. Page optionally specifies the terminal page for thedestination, and if omitted or null, the current page is used.

ESC STX jD , ID CR

Deletes the screen block associated with the specified identifier (ID) from memory.

ESC STX yj, ID CR

Queries status of a stored screen block. Sends a 0 or 1, followed by a CR, indicating if ablock of the specified identifier (ID) exists in AccuTerm's screen block memory.

Keyboard

ESC STX F t s d k data CR

Program function and keypad keys. Type t may be N (normal function keys), C (control

function keys), A (ALT function keys) or K (keypad keys). Shift s may be U (unshifted) or S

(shifted). Destination d may be null (program key) or T (program function bar button

caption). Key code k may be digits 0 to 9 or : ; < = > according to the following table. Data

contains the function key data (or caption text). Normally, the key data is transmitted tothe host when the programmed key is pressed. However, if data is enclosed in brackets ([ ] ), then when the key is pressed, the key data will be interpreted as a VBA script

statement and will be executed instead of being sent to the host.

KeyCode

Functionkey

Editingkey

0 F1 BKSP

1 F2 TAB

2 F3 INS

3 F4 DEL

4 F5 HOME

5 F6 END

6 F7 PGUP

7 F8 PGDN

8 F9 LEFT

9 F10 RIGHT

: F11 UP

; F12 DOWN

< ESC

= ENTER

> KPD ENTER

To enter control characters (and special prefix characters) in key data, use the notation

AccuTerm 7 Reference 205

Copyright 2010-2011 Schellenbach & Assoc., Inc.

shown in the following table:

Keysequence

Controlcode

AccuTermnotation

Keysequence

Controlcode

AccuTermnotation

CTRL + @ NUL ^@ CTRL + P DLE ^P

CTRL + A SOH ^A CTRL + Q DC1 ^Q

CTRL + B STX ^B CTRL + R DC2 ^R

CTRL + C ETX ^C CTRL + S DC3 ^S

CTRL + D EOT ^D CTRL + T DC4 ^T

CTRL + E ENQ ^E CTRL + U NAK ^U

CTRL + F ACK ^F CTRL + V SYN ^V

CTRL + G BEL ^G CTRL + W ETB ^W

CTRL + H BS ^H CTRL + X CAN ^X

CTRL + I HT ^I CTRL + Y EM ^Y

CTRL + J LF ^J CTRL + Z SUB ^Z

CTRL + K VT ^K CTRL + [ ESC ^[

CTRL + L FF ^L CTRL + \ FS ^\

CTRL + M CR ^M CTRL +] GS ^]

CTRL + N SO ^N CTRL + ^ RS ^~

CTRL + O SI ^O CTRL + _ US ^_

^ ^^ \ \\

DELETE DEL ^?

For example, to program the END key to send the word "END", followed by a carriage return,the following code could be used:

EQU ESC TO CHAR(27), STX TO CHAR(2), CR TO CHAR(13)PRINT ESC:STX:'FKU5END^M':CR:

Printer

ESC STX p mode CR

Selects the printer mode:mode = 0 - turns off auto or transparent printmode = 1 - turns on auto (copy) print modemode = 2 - turns on transparent print modemode = X - turns off auto or transparent print and closes the print job immediately

Multimedia

ESC STX iL , filename , col , row , width , height , aspect, border CR

Displays the image file filename at column col and row row. Height and width are optional; ifspecified (and not zero), the image is scaled to height rows and width columns. Otherwise,the original image size is used. If aspect is non-zero, the image aspect ratio is preserved(the specified width or height is reduced to preserve the aspect ration). Border is N for no

border, B for simple border, R for raised border or I for inset border style. Image file types

supported include BMP, JPEG, GIF, PCD, PCX, PICT, PNG, PSD, TARGA, TIFF, WBMP,XBM, XPM and Windows Metafile. Images are considered "protected" data; a "clear un-protected characters" command will not clear images from the terminal screen.

AccuTerm 7 Help206

Copyright 2010-2011 Schellenbach & Assoc., Inc.

The image file does not need to be a local file; if an internet connection is available thefilename can specify a URL instead of a local or network file.

Note: AccuTerm 7 uses the FreeImage Open Source image library.

ESC STX iD , filename CR

Removes the displayed image file filename from the screen.

ESC STX iC CR

Clears all displayed images from the screen.

ESC STX iB, filename,scalemode,opacity CR

Loads an image to use as the screen background (wallpaper). filename - the path or URL of the image to use as the screen background.scalemode = 0 - picture is stretched to fit screen size. This may alter the picture'saspect ratio.scalemode = 1 - picture is scaled so that its longest dimension fills the screen. Thearea not filled by the picture is black.scalemode = 2 - picture is scaled so that its shortest dimension fill the screen. Thelonger dimension is cropped.opacity - specifies the opacity of the background image, as a percentage. 100 meansthat the picture is opaque. 0 means that the image is invisible (transparent) and thescreen background color is used as the background. Any percentage in between blendsthe image with the screen background color.

To clear the background image, simply use ESC STX iB CR.

ESC STX m filename CR

ESC STX w filename CR

Plays sound file filename. The file does not need to be a local file; if an internet connectionis available the filename can specify a URL instead of a local or network file. Supportedsound file formats are WAVE, MIDI and MP3.

Scripting

ESC STX P statements CR

Executes VBA script statements. See Scripting for details on VBA scripting. Multiplestatements may be executed; separate each statement with LF or EM control characters.You can call subroutines or functions contained within the script loaded in the Main Scripttab of the Script Editor window. For example, to call subroutine FOO, simply send: ESC STX

P FOO CR . You can execute a script stored in a script file (.atsc file) by using the Chain

statement:

EQU ESC TO CHAR(27), STX TO CHAR(2), CR TO CHAR(13)FILENAME = 'myscriptfile.atsc'SCRIPT = 'Chain "':FILENAME:'"'PRINT ESC:STX:'P':SCRIPT:CR:

ESC STX R statements CR

Executes VBA script statements (see above) except that the script is synchronized withthe terminal state. This basically sets the session's InputMode property to 1 before thescript starts and restores it once the script completes. This ensures that any characters

AccuTerm 7 Reference 207

Copyright 2010-2011 Schellenbach & Assoc., Inc.

received from the host will not be processed by the terminal emulator unless they are firstprocessed in the script using Input or WaitFor functions. This has the effect of bufferingany data, control codes or escape sequences received while the script is running. This isuseful when changing Session properties such as screen sizes, terminal type, etc.

Note: in previous versions of AccuTerm, synchronization required adding a final Outputmethod in the script and corresponding INPUT statement in the host program. However, thistechnique is not compatible with typeahead on the host and is less efficient than ESC STX R

and is no longer recommended.

3.2 Wyse Programming

This topic describes the command sequences for programming the Wyse 50, Wyse 60 and ADDSViewpoint Enhanced terminal emulations. These three emulations use a common command set witha few differences. The differences are noted.

Operating Modes

ESC ` n

Set mode n. This command is used to set many of the terminal's operating modes. Themode values and their function are shown in the Wyse Operating Mode Table.

ESC B

Places terminal in local mode.

ESC C or ESC D F

Places terminal in full duplex mode.

ESC D H

Places terminal in half duplex mode.

ESC N

Disables auto scrolling. Normally if the cursor is moved down below the last line, thescreen is scrolled up one line. If auto scrolling is disabled, the cursor moves to the top lineand no scrolling takes place.

ESC O

Enables auto scrolling.

ESC X or ESC u

Turns the monitor mode off.

ESC U

Turns the monitor mode on.

ESC k

Turns the local edit submode on. This command is not supported by AccuTerm and is

ignored.

ESC l

AccuTerm 7 Help208

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Turns the local edit submode off. This command is not supported by AccuTerm and isignored.

ESC q

Turns the insert mode on. In this mode, all characters sent to the screen are inserted intothe line with any existing characters moved one column to the right.

ESC r

Turns the insert mode off.

ESC # or SI

Lock keyboard.

ESC 5 or EOT

Lock keyboard.

ESC " or SO

Unlock keyboard.

ESC 6 or STX

Unlock keyboard.

GS

If the graphics mode is enabled, this command puts the terminal in the Tektronix emulationmode. If the graphics mode is disabled, this command is ignored.

ESC 1 ESC FF

If the graphics mode is enabled, this command puts the terminal in the Tektronix emulationmode. If graphics mode is disabled, it sets a tab stop at the current cursor column.

ESC % ! 0

Enters Tektronix 4100 graphics mode.

CAN

Exits from the Tektronix graphics emulation mode.

CAN

Turns on the cursor.

ETB

Turns off the cursor.

ESC 2

Exits from the Tektronix graphics emulation mode. If the terminal is not in the graphicsemulation mode, it clears any tab stops at the current cursor column.

ESC F message CR

Displays a message in the host message line. The message string can be up to 46characters in 80 column mode and 98 characters in the 132 column mode.

ESC c ; message EM

AccuTerm 7 Reference 209

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Programs the answerback message (up to 30 characters).

ESC c <

Sends the answerback message to the host, followed by ACK. If no answerback messagehas been programmed, simply sends ACK.

ESC c =

Erases the answerback message.

ESC d /

End of line wrap on. When the cursor reaches the end of a line, it will wrap to the beginningof the next line.

ESC d .

End of line wrap off. When the cursor reaches the end of a line, it does not wrap to thebeginning of the next line.

ESC e &

Set CapsLock keyboard state.

ESC e '

Clear CapsLock keyboard state.

ESC e .

Do not clear screen when screen size changes.

ESC e /

Clear screen when screen size changes.

ESC ^ 0

Normal display (light characters, dark background).

ESC ^ 1

Reverse display (dark characters, light background).

ESC ~ SPACE

Enhance mode off. If the current emulation is ADDS VPA2E, then the emulation willchange to ADDS VPA2.

ESC ~ !

Enhance mode on. If the current emulation is ADDS VPA2, then the emulation will changeto ADDS VPA2E.

ESC ~ "

Select Wyse 50 emulation.

ESC ~ %

Select ADDS VPA2E emulation.

ESC ~ 4

Select Wyse 60 emulation.

ESC ~ 6

AccuTerm 7 Help210

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Select VT-52 emulation.

ESC ~ 8

Select Viewpoint 60 emulation.

ESC ~ ;

Select VT-100 emulation.

ESC ~ <

Select VT-220 7-bit emulation.

ESC ~ = or ESC ~ A

Select VT-220 8-bit emulation.

ESC ~ B

Select VT-320 7-bit emulation.

ESC ~ C

Select VT-320 8-bit emulation.

ESC ~ >

Select Tektronix 4014 emulation.

ESC c V or ESC c W

Save current session settings to disk. If no session file name exists, then one will beprompted for.

ESC c X

Reset (reload session configuration file).

Character Set Selection

Wyse terminals have two character sets (primary and secondary) of 128 symbols each, and four fontbanks of 128 symbols. Each font bank can be assigned a pre-defined symbol set (like PC Multinational),and each character set can be assigned to one font bank.

By default, the native Wyse 50 symbol set is assigned to font banks 0, 2 and 3. The PC Multinationalsymbol set is assigned to font bank 1. Font bank 0 is assigned to the primary character set and fontbank 1 is assigned to the secondary character set.

ESC c D

Selects the primary character set. This is the default, and when selected, the primarycharacter set is displayed for character codes 0 to 127, and the secondary character set isdisplayed for codes 128 to 255.

ESC c E

Selects the secondary character set. When the secondary character set is selected, it isdisplayed for character codes 0 to 127 and again for codes 128 to 255.

ESC c B bank

AccuTerm 7 Reference 211

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Assigns font bank bank (0, 1, 2 or 3) to the primary character set.

ESC c C bank

Assigns font bank bank (0, 1, 2 or 3) to the secondary character set.

ESC c @ bank set

Assigns pre-defined symbol set set to font bank bank. Set can be one of the following:

set symbol set

@ or ` Native Wyse 50

A or a PC Multinational

B , c , d , G , H or g US ASCII

J , j , N , I or e DEC Graphics / ISO Latin-1

D or b PC Standard

Cursor Positioning

FF

Cursor right. If the cursor is on the last column of the line, the cursor will wrap to the next

line, possibly scrolling the screen up.

ACK

Cursor right. If the cursor is on the last column of the line, the cursor will wrap to the next

line, possibly scrolling the screen up.BS

Cursor left. If the cursor is at the beginning of the line, it is moved up to the last column ofthe previous line. If the cursor is at the home position, it is moved to the lower right handcorner of the screen.

NAK

Cursor left. Same as the BS command.HT or ESC i

Moves the cursor to the next programmed tab stop. For this command to work, tab stopsmust be programmed with the ESC 1 command.

ESC I

Move the cursor left to the previous tab stop.

LF

Cursor down. If the cursor is on the last line of the screen and the "no scroll" mode isturned off, the screen will scroll up one line. Otherwise, the cursor will move to the top lineof the screen.

VT

Cursor up. If the cursor is at the top row, it is moved to the bottom row.

SUB

Cursor up. If the cursor is at the top row, it is moved to the bottom row.

ESC j

AccuTerm 7 Help212

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Cursor up. If the cursor is at the top row, the screen is scrolled down.

CR

Moves the cursor to the first column (column zero) of the current row.

US

Moves the cursor down one row and over to the first column (column zero).

DEL

Ignored.

RS or ESC {

Moves the cursor to the home position (upper left corner of the screen).

VT rMoves cursor to row r, where r is a valid row code from the Viewpoint Cursor Address Table.

DLE c

Moves the cursor to column c where c is a valid column in the from the Viewpoint Cursor

Address Table.

ESC = r c

Moves the cursor to row r and column c. r and c are single byte cursor address codes fromthe Wyse Cursor Address Table. Note that this command cannot position the cursor pastcolumn 95.

ESC Y r c

Moves the cursor to row r and column c where r and c are single byte cursor address codesfrom the Wyse Cursor Address Table. Note that this command cannot position the cursor

past column 95.

ESC a rr R ccc C

Moves the cursor to row rr and column ccc. rr is the two digit decimal number of the row(from row 1 at the top). ccc is the three digit decimal number of the column (from column 1at the left). Note that this command can address the entire 132 column screen.

ESC _ c

Moves the cursor to column c where c is a single byte column address from the Wyse

Cursor Address Table. Note that this command cannot position the cursor past column 95.

ESC [ r

Moves the cursor to row r where r is a single byte row address from the Wyse CursorAddress Table.

ESC ]

Selects page 0.

ESC }

Selects page 1.

AccuTerm 7 Reference 213

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ESC - n r c

Selects page n (pages numbered from 0) and positions the cursor to row r, column c. r andc are single byte cursor address codes from the Wyse Cursor Address Table. To selectpages higher than 9, use CHAR(n +48).

ESC w n

Selects page n. Pages are numbered from 0 to 9.

ESC w C

Page forward. If currently on the last page, the first page is selected.

ESC K

Page forward. If currently on the last page, the first page is selected.

ESC w B

Page back. If currently on the first page, the last available page is selected.

ESC J

Page back. If currently on the first page, the last available page is selected.

ESC w @ n r c

Selects page n (pages numbered from 0) and positions the cursor to row r, column c. r andc are single byte cursor address codes from the Wyse Cursor Address Table. To selectpages higher than 9, use CHAR(n +48).

ESC x A r

Splits screen horizontally at row r, where r is a valid row code from the Wyse CursorAddress Table or from the Viewpoint Cursor Address Table if in Viewpoint Enhanced mode.

ESC x 1 r

Splits screen horizontally at row r and clear screen, where r is a valid row code from theWyse Cursor Address Table or from the Viewpoint Cursor Address Table if in ViewpointEnhanced mode.

ESC x @

Redefine screen as one window.

ESC x 0

Redefine screen as one window and clear screen.

Erasing and Editing

SOH

Clears the screen and returns the cursor to the home position (upper left corner of the

screen).

FF

Clears the screen and returns the cursor to the home position (upper left corner of the

screen). Turns off the protected mode.

AccuTerm 7 Help214

Copyright 2010-2011 Schellenbach & Assoc., Inc.

SUB

Clears the screen and returns the cursor to the home position (upper left corner of the

screen). If the terminal is in "protect mode", only unprotected characters are cleared.

ESC ;

Clears the screen and returns the cursor to the home position (upper left corner of thescreen). If the terminal is in "protect mode", only unprotected characters are cleared.

ESC * or ESC +

Clears the screen and move the cursor to the home position (upper left corner of thescreen). Both protected and unprotected characters are cleared. Turns off the protectmode.

ESC T or ESC t

Clears from the cursor position to the end of the current line. If the terminal is in "protectmode", only unprotected characters are cleared.

ESC K

Clears from the cursor position to the end of the current line.

ESC Y

Clears from the cursor position to the end of the screen. If the terminal is in "protect mode",

only unprotected characters are cleared.

ESC y

Clears from the cursor position to the end of the screen. If the terminal is in "protect mode",only unprotected characters are cleared.

ESC k

Clears from the cursor position to the end of the screen.

ESC ,

Clears the screen to protected spaces. Turns off the protect mode. "No scroll" mode isturned off (auto scroll).

ESC E

Insert line. A blank line is inserted before the current line. The current line and all linesbelow are moved down one row. The bottom line of the screen is lost. The cursor is movedto the left most column of the inserted line.

ESC Q

Insert character. A blank is inserted at the current cursor position. All characters from thecursor position to the right are moved right one column.

ESC R

Delete line. The current line is deleted. All lines below the current line are moved up oneposition. The bottom line is blank. The cursor is moved to the left most column.

ESC W

Delete character. The character at the current cursor position is deleted. All characters tothe right of the cursor are moved left one column and a blank is placed on the last column of

AccuTerm 7 Reference 215

Copyright 2010-2011 Schellenbach & Assoc., Inc.

the line.

ESC c N w h

Box rectangle. Current cursor location is upper left, w and h specify rectangle width andheight.

ESC c G r c

Box rectangle. Current cursor location is one corner, r and c specify row and column ofother corner.

ESC c F r c x

Clear unprotected rectangle. Cursor location is one corner, r and c specify row and columnof other corner. Rectangle is cleared to character x.

ESC c H r c x

Clear entire rectangle. Cursor location is one corner, r and c specify row and column ofother corner. Rectangle is cleared to character x.

ESC c ^ a sp P rr1 R ccc1 C rr2 R ccc2 C dp P rr3 R ccc3 C

Copy / swap / move rectangle. Action a is: 0 to swap, 1 to copy, 2 to move. Source pagesp, upper left corner rr1, ccc1; lower right corner rr2, ccc2; destination page dp, upper leftcorner rr3, ccc3. All parameters are decimal numbers. Columns and rows are numberedfrom 1, pages are numbered from 0.

Video Attributes

Video attributes work differently in the Wyse 50 or Viewpoint Enhanced emulations than they do in theWyse 60 emulation. Under Wyse 60, the attributes are non-embedded. In other words, they do nottake up a character position on the screen. Under Wyse 50 or Viewpoint Enhanced, the attribute takesup a space and changes all following characters to the end of the screen or until another attributecharacter is encountered.

Under Viewpoint Enhanced mode, a single non-embedded (takes up no space) "tagged" attribute maybe assigned and used. This "tagged" attribute is also the "protect" attribute.

AccuTerm's Viewpoint Enhanced emulation supports most ADDS 4000 functions, including support forboth non-embedded attributes like Wyse 60 and embedded attributes like Wyse 50.

ESC 0 a

Assigns the "tagged" video attribute. a is the video attribute code from the Viewpoint

Attribute Code Table.

SO

Start tagged attribute. All characters received after this code are displayed with thecurrently assigned tagged attribute. If the tagged attribute is changed, the attribute of the

displayed characters also changes.

SI

End tagged attribute. All characters received after this code are displayed with the normal

video attribute.

AccuTerm 7 Help216

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ESC A n a

Sets the video attribute for any of the four application display areas. n is the display fieldcode and a is the attribute code from the Wyse Attribute Code Table. The applicationdisplay field codes are:

Field (n) Display area0 The main screen1 The function key labeling line2 The status line3 The host message field

ESC G a

Assign visual attribute. In Wyse 50 and ADDS VP mode, this command displays a spaceat the cursor position, then changes the visual attribute for all characters from this positionuntil the end of the screen or until another attribute code is encountered. In Wyse 60 mode,this command selects the attribute for characters displayed after this command. The visualattribute is specified by the attribute code a from the Wyse Attribute Code Table.

ESC g a

Assign visual attribute. This command selects the attribute for characters displayed afterthis command. The visual attribute is specified by the attribute code a from the Wyse

Attribute Code Table.

ESC G n or ESC g n

Assign line attribute. This is the same command as is used to assign visual attributes, butwith different attribute codes. This sequence is used to specify character size for the currentline. The line attribute code n is:

n attribute@ normal size charactersA double-wide charactersB double-high characters, topC double-high characters, bottomD double-wide, double-high characters, topE double-wide, double-high characters, bottom

ESC HT n

Assign line attribute (performs the same function as above using different attribute codes):

n attribute0 normal size characters1 double-wide characters2 double-wide, double-high characters, top3 double-wide, double-high characters, bottom

Protected Attributes

Protected attributes are used by some software applications to protect characters from being

AccuTerm 7 Reference 217

Copyright 2010-2011 Schellenbach & Assoc., Inc.

overwritten. If the terminal is running in its protected mode, the cursor cannot be positioned overprotected characters and all non-protected characters can be cleared by using the "clear unprotected"command.

ESC &

Enable protect mode and set "no scroll" mode.

ESC '

Disable protect mode and set "auto scroll".

ESC )

Start protect mode. All characters sent after this sequence become protected charactersuntil the protect mode is turned off.

SO

Start protect mode.

ESC (

Stop protect mode. All characters sent after this sequence are unprotected characters.

SI

Stop protect mode.

ESC ! a

Writes all unprotected attributes with a specified attribute where a is a valid attribute codefrom the Wyse Attribute Code Table.

ESC . c

Replaces all unprotected characters with the character c.

ESC ; or ESC : or SUB

Clears all unprotected characters.

ESC ,

Clears the screen to protected spaces. The protect mode is turned off and the auto scrollfunction is turned on.

ESC V

Clears the entire cursor column to protected spaces.

ESC cR or ESC cS

Clears unprotected characters from the cursor position to the end of the current line.Attributes are not cleared.

ESC cP or ESC cQ

Clears unprotected characters from the cursor position to the end of the screen. Attributesare not cleared.

Line Graphics

AccuTerm 7 Help218

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ESC H g

Display a line graphic character at the current cursor position. The graphic character isspecified by graphic character code g from the Wyse Graphic Character Table. The linegraphics characters can be used for drawing simple boxes on the screen in text mode. Itshould not be confused with the Tektronix graphic mode which is much more sophisticatedand capable of drawing pie charts, scientific diagrams, etc.

ESC H STX

Turn on line graphics mode. All characters received while the line graphics mode is on areinterpreted as graphics characters according to the Wyse Graphic Character Table.

ESC H ETX

Turn off line graphics mode.

Printer Control and Terminal Reports

ESC SPACE

Reports the terminal identification to the host computer. Sends 50 followed by a CR.

ESC ?

Transmits the cursor address to the host computer. The cursor address is transmitted in 80column format, followed by a CR.

ESC / or ESC w `

Transmits the page number and cursor address to the host computer. The cursor addressis transmitted in 80 column format, followed by a CR.

ESC 4

Sends unprotected characters in the current row to the host computer, from the beginning of

the row up to the cursor position. The row is terminated by a CR.

ESC 5

Sends all unprotected characters on the screen to the host computer, beginning with theupper-left corner, and ending at the cursor position. Each row except the last is terminated

by a US control code. The last row is terminated by a CR.

ESC 6

Sends the current row to the host computer, from the beginning of the row, up to the cursor

position. The row is terminated by a CR.

ESC 7

Sends the screen to the host computer, beginning with the upper-left corner, and ending atthe cursor position. Each row except the last is terminated by a US control code. The lastrow is terminated by a CR.

ESC L or ESC P or ESC p

Prints the entire screen to the printer port.

ESC M

Sends the character at the current cursor position to the host computer.

AccuTerm 7 Reference 219

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ESC S

Sends a message unprotected. This function is not supported by AccuTerm.

ESC b

Sends the current cursor address to the host computer in 132 column format. No CR is sentafter the address.

ESC s

Sends a message. This function is not supported by AccuTerm.

DC2

Auto print mode. Characters are displayed and printed. This command will not function ifthe printer selection is set to "No printer".

DC4

Cancel auto or transparent print mode. Note: This command will not turn the printer off if itwas turned on by the Viewpoint Enhanced transparent print or ANSI print commands.

CAN

Transparent print mode. Characters are printed, but not displayed.

ESC 3

Transparent print mode. Characters are printed, but not displayed.

ESC 4

Cancel transparent print mode.

ESC d #

Transparent print mode. Characters are printed, but not displayed.

ESC [ ? 5 i

Transparent print mode (ANSI). Characters are printed, but not displayed. When AccuTermreceives this command, it goes into transparent print mode until it receives the ANSI print offsequence below. This command is useful for printing graphics data to the printer. SinceAccuTerm requires the specific ANSI cancel command below to exit transparent print mode,there is less chance of a control character interrupting the graphic printing.

ESC [ ? 4 i

Cancel transparent print mode (ANSI).

Programming Function Keys

The Wyse 50, Wyse 60 and Viewpoint Enhanced emulations support the ability to download functionkey values from the host computer. The function key programming consists of two steps, downloadingthe actual values which the key will send to the host whenever it is pressed or downloading a descriptivefunction key label that is displayed on the function key labeling line.

When programming the function keys or function key labels, all characters (including control characters)may be included in the sequence, except for the terminator (DEL for keys, CR for labels).

To clear a programmed function key or label, send the same command used for programming the key or

AccuTerm 7 Help220

Copyright 2010-2011 Schellenbach & Assoc., Inc.

label, but omit the sequence.

ESC z k sequence DEL

Program function key k to send sequence to host when pressed. The function key codesare specified in the Wyse Function Key Table.

ESC z f label CR

Program function key label field f as label. The field codes are specified in the WyseFunction Key Table.

ESC Z 0 k sequence DEL

Program function or keypad key k to send sequence to host when pressed. The functionand keypad key codes are specified in the Wyse Function Key Table.

ESC z ( text CR

Sets the unshifted label line to text. If text is omitted, clears the unshifted label line.

ESC z ) text CR

Sets the shifted label line to text. If text is omitted, clears the shifted label line.

ESC _ f label EM

Program function key label field f as label. The function key field codes are specified in the

Viewpoint Function Key Table.

ESC f text CR

Sets the unshifted label line to text. If text is omitted, clears the unshifted label line.

ESC % k 0n sequence EM

Program function or keypad key k to send sequence to host when pressed. The function

and keypad key codes are specified in the Viewpoint Function Key Table.

ESC c U

Clear all redefinable key definitions to their default values.

ESC Z ~ k

Read programmable key definition for key k.

3.2.1 Wyse Tables

3.2.1.1 Wyse Operating Mode Table

The Wyse Operating Mode Table defines the operating mode (n) used by the Wyse emulations to setthe terminal operating mode.

n Function

0 Cursor off

1 Cursor on

2 Block cursor

3 Line cursor

A Normal protect character

6 Reverse protect character

AccuTerm 7 Reference 221

Copyright 2010-2011 Schellenbach & Assoc., Inc.

n Function

7 Dim protect character

8 Screen off

9 Screen on

: 80 column screen

; 132 column screen

B Protect blink on

C Protect invisible on

E Protect underline on

F Protect reverse on

G Protect dim on

3.2.1.2 Wyse Cursor Address Table

The Wyse Cursor Address Table shows the character code used by the Wyse emulations to specifycursor column (c) or row (r).

Row (r) orcolumn (c)

Code Row (r) orcolumn (c)

Code Row (r) orcolumn (c)

Code

1 SPACE 33 @ 65 `

2 ! 34 A 66 a

3 " 35 B 67 b

4 # 36 C 68 c

5 $ 37 D 69 d

6 % 38 E 70 e

7 & 39 F 71 f

8 ' 40 G 72 g

9 ( 41 H 73 h

10 ) 42 I 74 i

11 * 43 J 75 j

12 + 44 K 76 k

13 , 45 L 77 l

14 - 46 M 78 m

15 . 47 N 79 n

16 / 48 O 80 o

17 0 49 P 81 p

18 1 50 Q 82 q

19 2 51 R 83 r

20 3 52 S 84 s

21 4 53 T 85 t

22 5 54 U 86 u

23 6 55 V 87 v

24 7 56 W 88 w

25 8 57 X 89 x

26 9 58 Y 90 y

27 : 59 Z 91 z

AccuTerm 7 Help222

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Row (r) orcolumn (c)

Code Row (r) orcolumn (c)

Code Row (r) orcolumn (c)

Code

28 ; 60 [ 92 {

29 < 61 \ 93 |

30 = 62 ] 94 }

31 > 63 ^ 95 ~

32 ? 64 _ 96 DEL

3.2.1.3 Wyse Attribute Code Table

The Wyse Attribute Code Table defines the attribute code character (a) used by the Wyse emulationsto assign visual attributes.

Code (a) Attribute Type

0 Normal

1 Invisible

2 Blink

3 Invisible

4 Reverse

5 Reverse, invisible

6 Reverse, blink

7 Reverse, invisible

8 Underline

9 Underline, Invisible

: Underline, blink

; Underline, blink, invisible

< Underline, reverse

= Underline, reverse, invisible

> Underline, reverse, blink

? Underline, reverse, blink, invisible

p Dim

q Dim, invisible

r Dim, blink

s Dim, invisible

t Dim, reverse

u Dim, reverse, invisible

v Dim, reverse, blink

w Dim, reverse, blink, invisible

x Dim, underline

y Dim, underline, invisible

z Dim, underline, blink

{ Dim, underline, blink, invisible

| Dim, underline, reverse

} Dim, underline, reverse, invisible

~ Dim, underline, reverse, blink

DEL Dim, underline, reverse, blink, blank

AccuTerm 7 Reference 223

Copyright 2010-2011 Schellenbach & Assoc., Inc.

3.2.1.4 Wyse Function Key Table

The Wyse Function Key Table defines the key code character (k) used by the Wyse emulations toprogram function and keypad keys. Also defines the field code character (f) used for programmingfunction key labels.

Key Normal keycode (k)

Shifted keycode (k)

Normalfield (f)

Shiftedfield (f)

F1 @ ` 0 P

F2 A a 1 Q

F3 B b 2 R

F4 C c 3 S

F5 D d 4 T

F6 E e 5 U

F7 F f 6 V

F8 G g 7 W

F9 H h 8 X

F10 I i 9 Y

F11 J j : Z

F12 K k ; [

F13 L l < \

F14 M m = ]

F15 N n > ^

F16 O o ? _

BKSP " '

TAB ! &

INS Q p

DEL 5 6

HOME * /

END [ ]

PGUP : ;

PGDN R w

LEFT - 2

RIGHT . 3

UP + 0

DOWN , 1

ESC SPACE %

ENTER $ )

KPD ENTER S 4

3.2.1.5 Wyse Key Code Table

The Wyse Key Code Table describes the default character sequence transmitted by the function,keypad and other special keys on the PC keyboard and the corresponding real terminal key.

AccuTerm 7 Help224

Copyright 2010-2011 Schellenbach & Assoc., Inc.

PCKey

TerminalKey Sequence

BKSP BKSP BS

SHIFT+BKSP SHIFT+BKSP BS

TAB TAB HT

SHIFT+TAB SHIFT+TAB ESC I

INS INS ESC q

SHIFT+INS SHIFT+INS ESC r

DEL DEL ESC W

SHIFT+DEL DEL LINE ESC R

HOME HOME RS

SHIFT+HOME SHIFT+HOME ESC {

END CLR LINE ESC T

SHIFT+END CLR SCRN ESC Y

PGUP PGUP ESC J

SHIFT+PGUP SHIFT+PGUP ESC J

PGDN PGDN ESC K

SHIFT+PGDN SHIFT+PGDN ESC K

LEFT LEFT BS

SHIFT+LEFT SHIFT+LEFT BS

RIGHT RIGHT FF

SHIFT+RIGHT SHIFT+RIGHT FF

UP UP VT

SHIFT+UP SHIFT+UP VT

DOWN DOWN LF

SHIFT+DOWN SHIFT+DOWN LF

ESC ESC ESC

SHIFT+ESC SHIFT+ESC ESC

ENTER RETURN CR

SHIFT+ENTER SHIFT+ENTER CR

KPD ENTER ENTER CR

SHIFT+KPD ENTER SHIFT+ENTER CR

F1 F1 SOH @ CR

SHIFT+F1 SHIFT+F1 SOH ` CR

F2 F2 SOH A CR

SHIFT+F2 SHIFT+F2 SOH a CR

F3 F3 SOH B CR

SHIFT+F3 SHIFT+F3 SOH b CR

F4 F4 SOH C CR

SHIFT+F4 SHIFT+F4 SOH c CR

F5 F5 SOH D CR

SHIFT+F5 SHIFT+F5 SOH d CR

F6 F6 SOH E CR

SHIFT+F6 SHIFT+F6 SOH e CR

F7 F7 SOH F CR

SHIFT+F7 SHIFT+F7 SOH f CR

F8 F8 SOH G CR

SHIFT+F8 SHIFT+F8 SOH g CR

AccuTerm 7 Reference 225

Copyright 2010-2011 Schellenbach & Assoc., Inc.

PCKey

TerminalKey Sequence

F9 F9 SOH H CR

SHIFT+F9 SHIFT+F9 SOH h CR

F10 F10 SOH I CR

SHIFT+F10 SHIFT+F10 SOH i CR

F11 F11 SOH J CR

SHIFT+F11 SHIFT+F11 SOH j CR

F12 F12 SOH K CR

SHIFT+F12 SHIFT+F12 SOH k CR

CTRL+F1 F11 SOH J CR

SHIFT+CTRL+F1 SHIFT+F11 SOH j CR

CTRL+F2 F12 SOH K CR

SHIFT+CTRL+F2 SHIFT+F12 SOH k CR

CTRL+F3 F13 SOH L CR

SHIFT+CTRL+F3 SHIFT+F13 SOH l CR

CTRL+F4 F14 SOH M CR

SHIFT+CTRL+F4 SHIFT+F14 SOH m CR

CTRL+F5 F15 SOH N CR

SHIFT+CTRL+F5 SHIFT+F15 SOH n CR

CTRL+F6 F16 SOH O CR

3.2.1.6 Wyse Graphic Character Table

The Wyse Graphic Character Table defines the character code used for each of the line-drawinggraphic characters used by the Wyse emulations.

3.2.2 Wyse Programming Notes

† Functions tagged with the single-dagger symbol are only valid in Wyse 50 or Wyse 60 emulation.

‡ Functions tagged with the double-dagger symbol are only valid in Viewpoint Enhanced emulation.

AccuTerm 7 Help226

Copyright 2010-2011 Schellenbach & Assoc., Inc.

3.3 ADDS Programming

This topic describes the command sequences for programming the ADDS Viewpoint A2, Viewpoint 60and Procomm VP60 terminal emulations. These emulations use a common command set with a fewdifferences. The differences are noted.

Operating Modes

ESC B

Status line off.

ESC b

Status line on.

ESC D

Screen display off.

ESC d

Screen display on.

ETB

Turns off the cursor.

CAN

Turns on the cursor.

GS

If the graphics mode is enabled, this command puts the terminal in the Tektronix emulationmode. If the graphics mode is disabled, this command is ignored.

ESC % ! 0

Enters Tektronix 4100 graphics mode.

CAN

Exits from the Tektronix graphics emulation mode.

Cursor Positioning

ACK

Cursor right. If the cursor is on the last column of the line, the cursor will wrap to the nextline, possibly scrolling the screen up.

BS or NAK

Cursor left. If the cursor is at the beginning of the line, it is moved up to the last column ofthe previous line. If the cursor is at the home position, it is moved to the lower right handcorner of the screen.

LF

Cursor down. If the cursor is on the last line of the screen and the "no scroll" mode isturned off, the screen will scroll up one line. Otherwise, the cursor will move to the top line

AccuTerm 7 Reference 227

Copyright 2010-2011 Schellenbach & Assoc., Inc.

of the screen.

SUB

Cursor up. If the cursor is at the top row, it is moved to the bottom row.

CR

Moves the cursor to the first column (column zero) of the current row.

VT rMoves cursor to row r, where r is a valid row code from the Viewpoint Cursor Address Table.

DLE c

Moves the cursor to column c where c is a valid column in the from the Viewpoint CursorAddress Table.

ESC Y r c

Moves the cursor to row r and column c where r and c are single byte cursor address codesfrom the Wyse Cursor Address Table. Note that this command cannot position the cursorpast column 95.

Erasing and Editing

FF

Clears the screen and returns the cursor to the home position (upper left corner of thescreen). Turns off the protected mode.

ESC K

Clears from the cursor position to the end of the current line.

ESC k

Clears from the cursor position to the end of the screen.

ESC M

Insert line. A blank line is inserted before the current line. The current line and all linesbelow are moved down one row. The bottom line of the screen is lost. The cursor is moved

to the left most column of the inserted line.

ESC F

Insert character. A blank is inserted at the current cursor position. All characters from the

cursor position to the right are moved right one column.

ESC l

Delete line. The current line is deleted. All lines below the current line are moved up one

position. The bottom line is blank. The cursor is moved to the left most column.

ESC E

Delete character. The character at the current cursor position is deleted. All characters tothe right of the cursor are moved left one column and a blank is placed on the last column of

the line.

AccuTerm 7 Help228

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Video Attributes

The Viewpoint A2, Viewpoint 60 and Procomm VP60 have different ways of programming videoattributes.

The ADDS Viewpoint A2 terminal supports video attributes through the use of "tagged" characters. When a character is received from the host, it is either "tagged" or "normal". Tagged characters aredisplayed with the currently assigned tagged video attribute. Only one attribute may be displayed on thescreen at one time - all characters which are "tagged" are displayed using the current tag attribute. Other emulations, including Viewpoint A2 Enhanced and ADDS 4000, allow multiple attributes to bedisplayed simultaneously.

Programming video attributes involves two separate steps. First, the tag attribute must be assigned. Next, in order to display characters in the assigned tag attribute, a "start tag attribute" code must besent. To send characters in the normal attribute, an "end tag attribute" code must be sent. These twosteps are independent and can be executed in either order.

The ADDS Viewpoint 60 (and Procomm VP60) emulations use the same escape sequence as theViewpoint A2 but it is interpreted differently. Under ADDS Viewpoint 60 mode, the attribute takes up aspace and changes all following characters to the end of the screen or until another attribute character isencountered. It works similar to the Wyse 50 video attributes. Under Procomm VP60, multiple visualattributes may be displayed at the same time, but the attribute character does not use a space on thescreen, and does not affect any previously displayed characters. It works similar to the Wyse 60 videoattributes.

SO

Start tagged attribute. All characters received after this code are displayed with thecurrently assigned tagged attribute. If the tagged attribute is changed, the attribute of thedisplayed characters also changes.

SI

End tagged attribute. All characters received after this code are displayed with the normalvideo attribute.

ESC 0 a

ADDS Viewpoint A2: Assign visual attribute. This command sets the current visualattribute. All characters which are “tagged” are displayed on this attribute. The attribute isspecified by the attribute code a from the Viewpoint Attribute Code Table.

ADDS Viewpoint 60: Assign visual attribute. This command is used to start a specificattribute. This command changes all characters from the current position until the end ofthe screen or until another attribute code character is encountered. The attribute uses ascreen position. The attribute is specified by the attribute code a from the ViewpointAttribute Code Table.

Procomm VP60: Assign visual attribute. This command is used to start a specificattribute. The attribute does not use a screen position. All characters output after thiscommand are displayed in the specified attribute. The attribute code is specified by theattribute code a from the Viewpoint Attribute Code Table.

Line Graphics

AccuTerm 7 Reference 229

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ESC 1

Turn on line graphics mode. All characters received while the line graphics mode is on areinterpreted as graphics characters according to the Viewpoint 60 Graphic Character Table.

ESC 2

Turn off line graphics mode.

Printer Control

DC2

Auto (copy) print mode. Characters are displayed and printed. This command will beignored if the current slave printer selection is "None".

DC4

Cancel auto or transparent print mode. Note: This command will not turn the printer off if itwas turned on by the Viewpoint Enhanced transparent print or ANSI print commands.

ESC 3

Transparent print mode. Characters are printed, but not displayed.

ESC 4

Cancel transparent print mode.

ESC [ ? 5 i

Transparent print mode (ANSI). Characters are printed, but not displayed. When AccuTermreceives this command, it goes into transparent print mode until it receives the ANSI print offsequence below. This command is useful for printing graphics data to the printer. SinceAccuTerm requires the specific ANSI cancel command below to exit transparent print mode,there is less chance of a control character interrupting the graphic printing.

ESC [ ? 4 i

Cancel transparent print mode (ANSI).

3.3.1 Viewpoint Tables

3.3.1.1 Viewpoint Cursor Address Table

The Viewpoint Cursor Address Table shows the character code used by the Viewpoint emulations tospecify cursor column (c) or row (r).

Column (c) Code Column (c) Code Column (c) Code

1 NUL 36 5 71 p

2 SOH 37 6 72 q

3 STX 38 7 73 r

4 ETX 39 8 74 s

5 EOT 40 9 75 t

6 ENQ 41 @ 76 u

7 ACK 42 A 77 v

8 BEL 43 B 78 w

AccuTerm 7 Help230

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Column (c) Code Column (c) Code Column (c) Code

9 BS 44 C 79 x

10 HT 45 D 80 y

11 DLE 46 E

12 DC1 47 F Row (r) Code

13 DC2 48 G 1 @

14 DC3 49 H 2 A

15 DC4 50 I 3 B

16 NAK 51 P 4 C

17 SYN 52 Q 5 D

18 ETB 53 R 6 E

19 CAN 54 S 7 F

20 EM 55 T 8 G

21 SPACE 56 U 9 H

22 ! 57 V 10 I

23 " 58 W 11 J

24 # 59 X 12 K

25 $ 60 Y 13 L

26 % 61 \ 14 M

27 & 62 a 15 N

28 ' 63 b 16 O

29 ( 64 c 17 P

30 ) 65 d 18 Q

31 0 66 e 19 R

32 1 67 f 20 S

33 2 68 g 21 T

34 3 69 h 22 U

35 4 70 i 23 V

24 W

3.3.1.2 Viewpoint Attribute Code Table

The Viewpoint Attribute Code Table defines the attribute code character (a) used by the Viewpointemulations to assign visual attributes.

Code (a) Attribute Type

@ Normal

A Dim

B Normal Blinking

C Dim Blinking

P Reverse

Q Dim Reverse

R Reverse Blinking

S Dim Reverse Blinking

` Underlined

a Dim Underlined

b Underlined Blinking

c Dim Underline Blinking

AccuTerm 7 Reference 231

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Code (a) Attribute Type

d Invisible

3.3.1.3 Viewpoint Function Key Table

The Viewpoint Function Key Table defines the key code character (k) used by the Viewpointemulations to program function and keypad keys.

Key Normal key code (k) Shifted key code (k)

F1 NUL DLE

F2 SOH DC1

F3 STX DC2

F4 ETX DC3

F5 EOT DC4

F6 ENQ NAK

F7 ACK SYN

F8 BEL ETB

F9 BS CAN

F10 HT EM

F11 LF SUB

F12 VT ESC

F13 FF FS

F14 CR GS

F15 SO RS

F16 SI US

BKSP 7 W

TAB 8 X

INS ; [

HOME SPACE @

END # C

PGUP ! A

PGDN " B

LEFT % E

RIGHT & F

UP ' G

DOWN $ D

ESC 6 V

ENTER 9 Y

KPD ENTER 5 U

3.3.1.4 Viewpoint Key Code Table

The Viewpoint Key Code Table describes the default character sequence transmitted by the function,keypad and other special keys on the PC keyboard and the corresponding real terminal key.

PC Key Terminal Key Sequence

BKSP BKSP BS

SHIFT+BKSP SHIFT+BKSP BS

AccuTerm 7 Help232

Copyright 2010-2011 Schellenbach & Assoc., Inc.

PC Key Terminal Key Sequence

TAB TAB HT

SHIFT+TAB SHIFT+TAB ESC O

INS INS ESC q

SHIFT+INS SHIFT+INS ESC r

DEL DEL ESC W

SHIFT+DEL DEL LINE ESC l

HOME HOME SOH

SHIFT+HOME SHIFT+HOME SOH

END CLR LINE ESC K

SHIFT+END CLR SCRN ESC k

PGUP PGUP ESC J

SHIFT+PGUP SHIFT+PGUP ESC J

PGDN PGDN ESC |

SHIFT+PGDN SHIFT+PGDN ESC |

LEFT LEFT NAK

SHIFT+LEFT SHIFT+LEFT NAK

RIGHT RIGHT ACK

SHIFT+RIGHT SHIFT+RIGHT ACK

UP UP SUB

SHIFT+UP SHIFT+UP SUB

DOWN DOWN LF

SHIFT+DOWN SHIFT+DOWN LF

ESC ESC ESC

SHIFT+ESC SHIFT+ESC ESC

ENTER RETURN CR

SHIFT+ENTER SHIFT+ENTER CR

KPD ENTER ENTER CR

SHIFT+KPD ENTER SHIFT+ENTER CR

F1 F1 STX 1 CR

SHIFT+F1 SHIFT+F1 STX ! CR

F2 F2 STX 2 CR

SHIFT+F2 SHIFT+F2 STX " CR

F3 F3 STX 3 CR

SHIFT+F3 SHIFT+F3 STX # CR

F4 F4 STX 4 CR

SHIFT+F4 SHIFT+F4 STX $ CR

F5 F5 STX 5 CR

SHIFT+F5 SHIFT+F5 STX % CR

F6 F6 STX 6 CR

SHIFT+F6 SHIFT+F6 STX & CR

F7 F7 STX 7 CR

SHIFT+F7 SHIFT+F7 STX ' CR

F8 F8 STX 8 CR

SHIFT+F8 SHIFT+F8 STX ( CR

F9 F9 STX 9 CR

SHIFT+F9 SHIFT+F9 STX ) CR

F10 F10 STX : CR

AccuTerm 7 Reference 233

Copyright 2010-2011 Schellenbach & Assoc., Inc.

PC Key Terminal Key Sequence

SHIFT+F10 SHIFT+F10 STX * CR

F11 F11 STX ; CR

SHIFT+F11 SHIFT+F11 STX + CR

F12 F12 STX < CR

SHIFT+F12 SHIFT+F12 STX , CR

CTRL+F1 F11 STX ; CR

SHIFT+CTRL+F1 SHIFT+F11 STX + CR

CTRL+F2 F12 STX < CR

SHIFT+CTRL+F2 SHIFT+F12 STX , CR

CTRL+F3 F13 STX = CR

SHIFT+CTRL+F3 SHIFT+F13 STX - CR

CTRL+F4 F14 STX > CR

SHIFT+CTRL+F4 SHIFT+F14 STX . CR

CTRL+F5 F15 STX ? CR

SHIFT+CTRL+F5 SHIFT+F15 STX / CR

CTRL+F6 F16 STX 0 CR

SHIFT+CTRL+F6 SHIFT+F16 STX SPACE CR

3.3.1.5 Viewpoint 60 Graphic Character Table

The Viewpoint 60 Graphic Character Table defines the character code used for each of the line-drawing graphic characters used by Viewpoint 60 emulation.

3.3.2 ADDS Programming Notes

Functions tagged with the diamond symbol are only valid in Viewpoint 60 or Procomm VP60emulation.

AccuTerm 7 Help234

Copyright 2010-2011 Schellenbach & Assoc., Inc.

3.4 ANSI Programming

The AccuTerm ANSI emulations provide VT52, VT100, VT220, VT320, VT420, SCO Console, LinuxConsole and ANSI BBS emulations. The VT220, VT320 and VT420 emulations support internationalcharacters, 7 and 8 bit control codes, programmable function keys and a robust command set. VT100supports 7 bit control codes and a subset of the VT220 command set.

The SCO Console emulation uses the PC (OEM) character set and supports programmable functionkeys and text and background colors.

The Linux Console emulation uses the ANSI character set, and includes support for programmablefunction keys, text and background colors, and mouse.

The ANSI BBS emulation supports the PC (OEM) character set and the attribute and cursor commandssupported by the DOS ANSI.SYS device driver (AccuTerm does not use the ANSI.SYS driver). TheANSI BBS emulation only supports 7 bit escape sequences.

When AccuTerm is emulating a VT220, VT320 or VT420 terminal snipor SCO or Linux Console, it willrespond to 7-bit and 8-bit control codes (hex 00-1F and 80-9F). For convenience, command sequenceswhich may use 8-bit control codes are documented using the 8-bit control code. For every 8-bit controlcode, an equivalent 7-bit escape sequence may also be used, as shown in the following table:

CSI = ESC [

SS3 = ESC O

DCS = ESC P

ST = ESC \

This chapter documents commands used by all of the ANSI emulations supported by AccuTerm. Notevery command is valid for all ANSI emulations. Those commands which are only valid for certainemulations are shown with a reference note after the command definition. These reference are indicated

by a superscript, and are VT100 1 , VT220 2 , VT320 3 , VT420 4 , ANSI BBS A , Linux Console L , and

SCO Console S .

The AccuTerm ANSI emulations operate in a variety of modes. Some of the default operating modes aredetermined by settings in the AccuTerm configuration. Most of these modes can be changed bycommands received from the host. Operating modes which can be selected in the Settings dialog andsaved in a configuration file are:

VT52, VT100, VT220, VT320, VT420, SCO Console, Linux Console or ANSI BBS emulation

80 (normal) or 132 (extended) columns

Automatic wrap at end of line

Send 7 or 8 bit control codes

Numeric keypad sends “application” codes instead of numbers

Cursor keys send “application” codes instead of cursor codes

AccuTerm 7 Reference 235

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Backspace key sends DEL control code instead of BS control code

The following operating modes are not determined by settings in the AccuTerm configuration, but may bechanged by sending the appropriate ANSI command sequence:

Keyboard: default is unlocked.

Insert/Replace: default is replace.

Line feed / New line: default is line feed.

Origin: default is absolute.

Tabs: default is every 8 columns.

Cursor: default is on.

Print extent: default is full screen.

Printer form-feed: default is off.

Graphics mode: default is off.

AccuTerm VT220, VT320 and VT420 emulations support 5 character sets: ASCII, Multinational, ISO-Latin1, Graphics and Scientific. The default character set assignment is G0=ASCII, G1=ASCII,G2=Multinational and G3=ASCII. The GL set (hex 20-7E) defaults to G0 (ASCII) and the GR set (hexA0-FE) defaults to G2 (Multinational).

Operating Modes

ESC c

Hard reset. Re-reads AccuTerm configuration file, then resets all operating modes andcharacter sets to their default values. Clears the screen and I/O buffer.

CSI ! p

Soft reset. Resets all operating modes and character sets to their default values.234

CSI n + p

Secure reset. Re-reads AccuTerm configuration file, then resets all operating modes andcharacter sets to their default values. Clears the screen and I/O buffer. If n is non-zero, thenAccuTerm responds by sending CSI n * q back to the host. The value of n must be

between 0 and 16383. 1234

ESC SPACE F

Causes AccuTerm to send 7-bit control codes: 234

CSI = ESC [

SS3 = ESC O

DCS = ESC P

ST = ESC \

AccuTerm 7 Help236

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ESC SPACE G

Causes AccuTerm to send 8-bit control codes CSI , SS3, DCS and ST. 234

CSI 6 1 " p

Changes the emulation to VT100.234

CSI 6 2 ; n " p

Changes the emulation to VT220. If n = 1, AccuTerm will equivalent send 7-bit escapesequences for control codes CSI , SS3, DCS and ST; otherwise, 8-bit control codes will be

sent.234

CSI 6 3 ; n " p

Changes the emulation to VT320. If n = 1, AccuTerm will equivalent send 7-bit escapesequences for control codes CSI , SS3, DCS and ST; otherwise, 8-bit control codes will be

sent.234

CSI 6 4 ; n " p

Changes the emulation to VT420. If n = 1, AccuTerm will equivalent send 7-bit escapesequences for control codes CSI , SS3, DCS and ST; otherwise, 8-bit control codes will be

sent.234

CSI 2 h

Locks the keyboard.

CSI 2 l

Unlocks the keyboard.

CSI 3 h

Enable display of control characters as symbols.

CSI 3 l

Disable display of control characters (execute control characters.

CSI 4 h

Insert mode on.

CSI 4 l

Insert mode off.

CSI 12 h

Full duplex (no local echo).

CSI 12 l

Half duplex (local echo).

CSI 20 h

Process LF, VT and FF as "new line"; that is perform carriage return and line feed.

CSI 20 l

Process LF, VT and FF as line feed.

AccuTerm 7 Reference 237

Copyright 2010-2011 Schellenbach & Assoc., Inc.

CSI 42 h

Changes emulation to Wyse 60.

CSI ? 1 h

Cursor keys return application codes.

CSI ? 1 l

Cursor keys return cursor codes.

CSI ? 2 l

Enter VT52 emulation mode.

CSI ? 3 h

Extended video mode (132 columns).

CSI ? 3 l

Normal video mode (80 columns).

CSI ? 5 h

Light background, dark text.

CSI ? 5 l

Dark background, light text.

CSI ? 6 h

Causes cursor positioning to be relative to the currently defined scrolling region.

CSI ? 6 l

Causes cursor positioning to be absolute (not relative).

CSI ? 7 h

Sets autowrap mode. When the cursor is on the last character of a line, receipt of anothercharacter causes the cursor to move to the first column of the next line.

CSI ? 7 l

Resets autowrap mode. The cursor will not move past the last column of the line uponreceipt of another character.

CSI ? 9 h or CSI 0 $ ~

Status line off. 234

CSI ? 9 l

Status line on.234

CSI 1 $ ~

Display local status line. 234

CSI 2 $ ~

Display host-writable status line. 234

AccuTerm 7 Help238

Copyright 2010-2011 Schellenbach & Assoc., Inc.

CSI 0 $ }

Data sent to screen's data area. 234

CSI 1 $ }

Data sent to host-writable status line. 234

CSI ? 18 h

Causes a form-feed character (hex 0C) to be sent to the printer after each print screen.

CSI ? 18 l

No character is sent to the printer after each print screen.

CSI ? 19 h

Print screen command causes the full screen to be printed.

CSI ? 19 l

Print screen command only prints the currently defined scrolling region.

CSI ? 25 h

Cursor on.

CSI ? 25 l

Cursor off.

CSI ? 38 h or GS or ESC 1

Enters Tektronix 4014 graphics mode.

CSI ? 38 l or CAN or ESC 2

Exits Tektronix 4014 graphics mode.

CSI ? 66 h

Cursor keys return application codes. 234

CSI ? 66 l

Cursor keys return cursor codes. 234

CSI ? 67 h

Backspace keys sends BS control code. 34

CSI ? 67 l

Backspace keys sends DEL control code. 34

CSI ? 69 h

Enables vertical split screen mode. 4

CSI ? 69 l

Disables vertical split screen mode. 4

CSI ? 95 h

AccuTerm 7 Reference 239

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Do not clear screen when column mode changes. 34

CSI ? 95 l

Clear screen when column mode changes. 34

CSI ? 109 h

Set CapsLock keyboard state.

CSI ? 109 l

Clear CapsLock keyboard state.

ESC % ! 0

Enters Tektronix 4100 graphics mode.

CSI 0 SP q or CSI 1 SP q or CSI 2 SP q

Select block cursor. 234

CSI 3 SP q or CSI 4 SP q

Select underscore cursor. 234

CSI n $ |

Set number of columns to n. 34

CSI n t or CSI n * |

Set number of rows to n. 34

CSI n , q

Sets the terminal ID returned in response to the DA1 command. Valid values for n are: 0 =

VT100, 1 = VT101, 2 = VT102, 5 = VT220 and 6 = VT320. 34

CSI n * x

Selects if visual attributes which are modified by the DECCARA or DECRARA commandsare contained within the rectangular area defined by the beginning and ending positions. If n= 0 or 1 then beginning and ending positions indicate locations in the character streamdisplayed on the screen; if n = 2, then the beginning and ending positions indicate the

upper-left and lower-right corners of a rectangle. L

CSI ? 9 h

Enable mouse reporting. L

CSI ? 9 l

Disable mouse reporting. L

CSI n = L

Set erase mode. If n = 0, new lines and clear screen are filled with the current background

color. Otherwise, new lines and clear screen fill with the screen background color. S

ESC =

AccuTerm 7 Help240

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Numeric pad returns application codes.

ESC >Numeric pad returns numbers.

Character Set Selection

ESC ( B

Sets character set G0 to ASCII (default). 1234L

ESC ) B

Sets character set G1 to ASCII (default). 1234L

ESC * B

Sets character set G2 to ASCII. 234L

ESC + B

Sets character set G3 to ASCII. 234L

ESC ( <

Sets character set G0 to UPSS (the character set selected in the terminal settings). 234L

ESC ) <

Sets character set G1 to UPSS (the character set selected in the terminal settings). 234L

ESC * <

Sets character set G2 to UPSS (the character set selected in the terminal settings - this is

the default). 234

ESC + <

Sets character set G3 to UPSS (the character set selected in the terminal settings). 234

ESC ( A

Sets character set G0 to ISO-Latin1. 1L

ESC ) A

Sets character set G1 to ISO-Latin1. 1L

ESC - A

Sets character set G1 to ISO-Latin1. 234

ESC . A

Sets character set G2 to ISO-Latin1.234

ESC / A

Sets character set G3 to ISO-Latin1.234

ESC ( 0

AccuTerm 7 Reference 241

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Sets character set G0 to graphics. 1234L

ESC ) 0

Sets character set G1 to graphics. 1234L

ESC * 0

Sets character set G2 to graphics. 234

ESC + 0

Sets character set G3 to graphics. 234

ESC ( S

Sets character set G0 to scientific.234

ESC ) S

Sets character set G1 to scientific. 234

ESC * S

Sets character set G2 to scientific. 234

ESC + S

Sets character set G3 to scientific. 234

ESC ( % 5

Sets character set G0 to Multinational. 1234

ESC ) % 5

Sets character set G1 to Multinational. 1234

ESC * % 5

Sets character set G2 to Multinational. 234

ESC + % 5

Sets character set G3 to Multinational. 234

ESC ( K or ESC ( U

Sets character set G0 to codepage 437. L

ESC ) K or ESC ) U

Sets character set G1 to codepage 437. L

ESC ( VT

Sets character set G0 to codepage 437. LS

ESC ) VT

Sets character set G1 to codepage 437. LS

AccuTerm 7 Help242

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ESC ( FF

Sets character set G0 to upper half of codepage 437. LS

ESC ) FF

Sets character set G1 to upper half of codepage 437. LS

SI

Invoke character set G0 into GL (the GL set corresponds to character codes in the range of

hex 20-7E); this is the default. 1234LS

SO

Invoke character set G1 into GL. 1234LS

ESC ~

Invokes character set G1 into GR (the GR set corresponds to character codes in the range

of hex A0-FE). 234

ESC n

Invokes character set G2 into GL. 234

ESC }

Invokes character set G2 into GR (default). 234

ESC o

Invokes character set G3 into GL. 234

ESC |

Invokes character set G3 into GR. 234

SS2 or ESC N

Invokes character set G2 into GL for the next character only. 234

SS3 or ESC O

Invokes character set G3 into GL for the next character only. 234

Cursor Positioning

BS

Moves the cursor back one space. If the cursor is at the beginning of the line, no actionoccurs.

HT

Moves the cursor to the next programmed tab stop. If there are no more tab stops, thecursor moves to the right margin.

LF

Moves the cursor down one line. If the cursor is on the last line of the scrolling region, thescreen will scroll up one line.

AccuTerm 7 Reference 243

Copyright 2010-2011 Schellenbach & Assoc., Inc.

VT

Same as LF.

FF

Same as LF.

CR

Moves the cursor to the left margin of the current line.

NEL or ESC E

Moves the cursor to the first column of the next line of the scrolling region. If the cursor ison the last line of the scrolling region, the screen will scroll up one line.

IND or ESC D

Moves cursor down one line in the same column. If the cursor is on the last line of thescrolling region, the screen will scroll up one line.

CSI n T

Moves cursor down n lines in the same column. If the cursor is moved to the last line of the

scrolling region, the screen will scroll up. S

RI or ESC M

Moves the cursor up one line in the same column. If the cursor is on the first line of thescrolling region, the screen will scroll down one line.

CSI n S

Moves the cursor up n lines in the same column. If the cursor is moved to the first line of

the scrolling region, the screen will scroll down. S

CSI n B or CSI n e

Moves cursor down n lines in the same column.

CSI n E

Moves cursor down n lines and to the first column. 1234LS

CSI n A

Moves the cursor up n lines in the same column.

CSI n F

Moves the cursor up n lines and to the first column. 1234LS

CSI n D

Moves cursor left n columns.

CSI n C or CSI n a

Moves cursor right n columns.

CSI line ; column H or CSI line ; column f

Move cursor to line line, column column.

AccuTerm 7 Help244

Copyright 2010-2011 Schellenbach & Assoc., Inc.

CSI n d

Moves cursor to line n. 1234LS

CSI n G or CSI n `

Moves cursor to column n. 1234LS

HTS or ESC H or CSI 0 W

Sets a tab stop at the column where the cursor is.

CSI 0 g or CSI 2 W

Clears a tab stop at the column where the cursor is. 1234LS

CSI 3 g or CSI 5 W

Clears all tab stops. 1234LS

CSI ? 5 W

Sets tab stops every 8th column. 234

CSI n I

Move forward n tab stops. 234

CSI n Z

Move backward n tab stops. 234

CSI n V or CSI n SPACE R

Display a preceding page. If n is 0 or 1, the previous page is displayed, otherwise n

specifies the number of pages back to be displayed. 234

CSI n U or CSI n SPACE Q

Displays a following page. If n is 0 or 1, the next page is displayed, otherwise n specifies

the number of pages forward to be displayed. 234

CSI n SPACE P

Display page n. 234

CSI top ; bottom r

Set scrolling region. The first line of the scrolling region is set to top; the last line to bottom. Default values for top and bottom are 1 and 24 respectively. Once the scrolling region isdefined, if origin mode is set to relative, the cursor may be positioned into, but not out of,

the scrolling region. 1234LS

ESC 7 or CSI sALS

Save state (cursor position, video attribute, character set, autowrap, origin mode and protectmode).

ESC 8 or CSI uALS

Restore state.

AccuTerm 7 Reference 245

Copyright 2010-2011 Schellenbach & Assoc., Inc.

CSI left ; right s

Sets the left and right margins to define a horizontal scrolling region. This command onlyworks when vertical split screen mode is enabled.

ESC 6

Move cursor left one column. If the cursor is at the left margin, all data within the margin

scrolls right one column. The column that shifted past the right margin is lost. 4

ESC 9

Move cursor right one column. If the cursor is at the right margin, all data within the margin

scrolls left one column. The column that shifted past the left margin is lost.4

ESC 8

Fill screen with upper-case “E”.

Erasing and Editing

CSI 0 J

Erases from the cursor to the end of the screen, including the cursor position.

CSI 1 J

Erases from the beginning of the screen to the cursor, including the cursor position.

CSI 2 J

Erases the entire screen (the cursor position is not moved).

CSI 0 K

Erases from the cursor to the end of the line, including the cursor position.

CSI 1 K

Erases from the beginning of the line to the cursor, including the cursor position.

CSI 2 K

Erases the entire line (the cursor is not moved).

CSI ? 0 J

Erases all unprotected characters from the cursor to the end of the screen, including thecursor position.

CSI ? 1 J

Erases all unprotected characters from the beginning of the screen to the cursor, includingthe cursor position.

CSI ? 2 J

Erases all unprotected characters on the entire screen (the cursor position is not moved).

CSI ? 0 K

Erases all unprotected characters from the cursor to the end of the line, including the cursorposition.

AccuTerm 7 Help246

Copyright 2010-2011 Schellenbach & Assoc., Inc.

CSI ? 1 K

Erases all unprotected characters from the beginning of the line to the cursor, including thecursor position.

CSI ? 2 K

Erases all unprotected characters on the line (the cursor is not moved).

CSI n X

Erases n characters, beginning with the current cursor position. 234LS

CSI n @

Insert n blank characters beginning at the current cursor position. 234LS

CSI n L

Insert n blank lines beginning at the cursor line. 1234LS

CSI n P

Delete n characters beginning at the current cursor position. 1234LS

CSI n M

Delete n lines beginning at the cursor line. 1234LS

CSI n ' }

Insert n columns into the scrolling region beginning at the column that has the cursor. 4

CSI n ' ~

Delete n columns from the scrolling region beginning at the column that has the cursor. 4

CSI top ; left ; bottom ; right ; attr1 ; … ; attrn $ r

Changes visual attributes in an area defined by top, left, bottom, right. The area to bechanged is either a character stream or rectangle as defined by the DECSACE command.

See ANSI Attribute Code Table for the attribute codes. 4

CSI top ; left ; bottom ; right ; attr1 ; … ; attrn $ t

Reverse visual attributes in an area defined by top, left, bottom, right. The area to bechanged is either a character stream or rectangle as defined by the DECSACE command.

See ANSI Attribute Code Table for the attribute codes. 4

CSI top ; left ; bottom ; right $ z

Erase characters in rectangle defined by top, left, bottom, right. 4

CSI top ; left ; bottom ; right $ {

Erase unprotected characters in rectangle defined by top, left, bottom, right. 4

CSI ch ; top ; left ; bottom ; right $ x

Fill rectangle defined by top, left, bottom, right with character ch (ASCII code). 4

CSI stop ; sleft ; sbottom ; sright ; spg ; dtop ; dleft ; dpg $ v

AccuTerm 7 Reference 247

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Copy rectangle defined by stop, sleft, sbottom, sright, from page spg to page dpg at

location dtop, dleft. 4

Video Attributes

CSI n ; n ... m

Selects video attributes and/or character foreground and background colors according tothe ANSI Attribute Code Table. Characters received after this command are displayed inthe selected video attribute. If multiple parameters are used, their effects are cumulative (e.g. 0;4;5 selects blinking-underlined). A parameter value of 0 resets all attributes.

CSI 0 " q

Unprotected mode. Characters received after this command are erasable using the “erase

unprotected characters” command. 234

CSI 1 " q

Protected mode. Characters received after this command are not erasable using the “erase

unprotected characters” command. 234

ESC # 3

Double-high line top. Causes the line containing the cursor to display the top half of a

double-high line. 1234

ESC # 4

Double-high line bottom. Causes the line containing the cursor to display the bottom half of

a double-high line. 1234

ESC # 5

Single-width line. Causes the line containing the cursor to display normal width characters. 1234

ESC # 6

Double-width line. Causes the line containing the cursor to display double width characters. 1234

CSI = n F

Sets the current normal foreground color to n. Refer to “AccuTerm Programming” chapter for

color values. S

CSI = n G

Sets the current normal background color to n. S

CSI = n H

Sets the current reverse foreground color to n. S

CSI = n I

Sets the current reverse background color to n. S

AccuTerm 7 Help248

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ESC ] P nrrggbb

Set Linux Console palette. N is a single hex digit indicating which palette entry to set;

rrggbb are the hex RGB color values to be set. L

ESC ] R

Reset Linux Console palette. L

Printer Control

CSI 0 i

Prints the screen display. Either the full screen or scrolling region may be selected, and aform feed may be sent after printing (see Operating Modes section.

CSI 10 i

Prints the screen display ignoring the print extent in effect. 34

CSI ? 1 i

Prints the current cursor line.

CSI 5 i

Transparent print mode. Characters are printed, but not displayed.

CSI ? 5 i

Auto print mode. When the “Auto-print works just like a VT terminal” setting is enabled, aline is printed from the screen when the cursor moves off that line with an LF, FF, or VT

control code, or an autowrap occurs. Otherwise auto-print mode works just like Wyse auto-print mode.

CSI 4 i or CSI ? 4 i

Cancel transparent or auto print mode.

CSI 2 i

Send screen to host. 234

Terminal Reports

CSI 0 c or ESC Z

Request primary device attributes. Depending on the current emulation and terminal ID in

effect, AccuTerm will respond: 1234L VT100: CSI ? 1 ; 2 c

VT220: CSI ? 6 2 ; 1 ; 2 ; 6 ; 8 c

VT320: CSI ? 6 3 ; 1 ; 2 ; 6 ; 8 c

VT420: CSI ? 6 4 ; 1 ; 2 ; 6 ; 8 c

Linux: CSI ? 6 c

CSI > 0 c

Request secondary device attributes. AccuTerm will respond: 234

CSI > 41 ; 4 ; 1 c

AccuTerm 7 Reference 249

Copyright 2010-2011 Schellenbach & Assoc., Inc.

CSI = 0 c

Request tertiary device attributes. AccuTerm will respond (xxxxxxxx is the product serial

number in hexadecimal): 234

DCS ! |1 xxxxxxxx ST

CSI 5 n

Request terminal status. AccuTerm will respond:CSI 0 n

CSI 6 n

Request cursor position. AccuTerm will respond:CSI line ; column R

CSI ? 6 n

Request cursor position and page. AccuTerm will respond:CSI line ; column ; page R

CSI ? 1 5 n

Request printer status. If a printer is defined for the current configuration, AccuTerm will

respond: 234 CSI ? 1 0 n

If no printer is defined the response will be:CSI ? 1 3 n

CSI ? 2 5 n

Request status of user-defined keys. AccuTerm will respond: 234 CSI ? 2 0 n

CSI ? 2 6 n

Request keyboard status. AccuTerm will respond: 234 CSI ? 2 7 ; 0 ; 0 ; 0 n

CSI ? 5 5 n

Request locator status. If the mouse is currently enabled, AccuTerm will respond:234 CSI ? 5 0 n

If the mouse is not enabled, the response will be:CSI ? 5 3 n

CSI ? 5 6 n

Request locator device type. If the mouse is currently enabled, AccuTerm will respond: 234 CSI ? 5 7 ; 1 n

If the mouse is not enabled, the response will be:CSI ? 5 7 ; 0 n

CSI ? 6 2 n

Request macro space. AccuTerm will respond: 234 CSI 0 * {

CSI ? 6 3 ; id n

AccuTerm 7 Help250

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Request memory checksum. AccuTerm will respond: 234 DCS id ! ~ 0 0 0 0 ST

CSI ? 7 5 n

Request data integrity. AccuTerm will respond: 234 CSI ? 7 0 n

CSI " v

Request displayed extent. AccuTerm will respond: 34 CSI rows ; columns ; 1 ; 1 ; page " w

CSI n $ p

Request state of ANSI mode n. AccuTerm will respond: 34 CSI n ; value $ y

CSI ? n $ p

Request state of private mode n. AccuTerm will respond: 34 CSI ? n ; value $ y

CSI + x

Request function key free memory. AccuTerm will respond: 34 CSI 804 ; 804 + y

CSI 1 $ w

Request cursor information report. AccuTerm will respond with a string encoded with thecurrent cursor state including position, page, attribute and character set. The string returned

can be use to restore the cursor state. The response string is:34 DCS 1 $ u string ST

DCS 1 $ t string ST

Restore cursor state. Use string returned from previous command. 34

CSI 2 $ w

Request tabstop report. AccuTerm will respond with a string encoded with the current tab

settings. The string returned can be use to restore the tabs. The response string is: 34 DCS 2 $ u string ST

DCS 2 $ t string ST

Restore tabstops. Use string returned from previous command. 34

DCS $ q setting ST

Request setting. Setting is formed by taking the last one or two non-numeric characters of

an ANSI command. The response is: 34

DCS 0 $ r string ST

You can use the response string to restore the setting; Simply add CSI to the beginning ofthe string and send it back to the terminal.

CSI 1 $ u

Request terminal state. The complete terminal state (cursor position, character set,

AccuTerm 7 Reference 251

Copyright 2010-2011 Schellenbach & Assoc., Inc.

attributes, screen size, key lock, etc.) is encoded into a string and returned to the host.

You can use this string to restore the state later. The response is: 34 DCS 1 $ s string ST

DCS 1 $ p string ST

Restore terminal state. String is the value returned from the previous command. 34

Programming Function Keys

The AccuTerm VT220, VT320, VT420, Linux Console and SCO Console emulations support the ability todownload up to 15 function key values (the shifted function keys F6 - F20) from the host computer. Thefollowing device control sequence is used to program the function keys.

DCS n | key / value ; ... key / value ST

If n is 1, old key definitions are replaced by new definitions; if n is 0, the definition of all 15shifted function keys are cleared before loading any new definitions. The function key to beprogrammed is specified by key according to the ANSI Function Key Table, and thesequence for that key is specified by value. Value is specified in hexadecimal.

VT320 and VT420 emulations provide an extended method to program function and editing keys:

DCS " x key / mod / 100 / value / 0 ; ... ST

The key to be programmed is specified by key according to the ANSI Extended Key Table,and any modifier keys (SHIFT, CTRL, etc.) are specificed by mod, according to the sametable. The sequence for the key is specified by value in hexadecimal.

In addition, the VT420 emulation has user-definable macros. Use the following command to definemacros.

DCS id ; dt ; fn ; en ! z value ST

Id is a macro identifier, which must be in the range of 0 to 63. If dt is 1, then all currentmacros are deleted before the new macro is defined. en specifies the encoding: 0 for ASCIItext, 1 for hexadecimal. Value is the macro contents in the specified encoding format.

Invoking a macro has the same effect as if the terminal had received the macro contents from the host.The following command may be use to invoke a defined macro:

CSI id * z 4

The SCO Console emulation uses the following sequence to program function keys:

ESC Q key delim value delim

key is a single ASCII character which designates which key to program. Function keys F1 toF12 are selected by specifying 0 to ; . For SHIFT+F1 to SHIFT+F12 use < to G. For CTRL+F1 to

CTRL+F12 use H to S. For CTRL+SHIFT+F1 to CTRL+SHIFT+F12 use T to _. Delim is a single

character delimiter which encloses value.

CSI 2 + z

Restores default values to programmed keys. 34

AccuTerm 7 Help252

Copyright 2010-2011 Schellenbach & Assoc., Inc.

To program the Answerback message, use the following device control sequence:

DCS 1 v value ST

Note: the “Map F11 through F20 …” check box in the keyboard settings must be checked to accessprogrammed function keys from F13 to F20. When this item is checked, function keys F11 - F20 aremapped onto the control function keys; e.g. F15 is mapped to CTRL+F5, SHIFT+F13 is mapped toCTRL+SHIFT+F3.

VT-52 Escape Sequences

ESC A

Cursor up.

ESC B

Cursor down.

ESC C

Cursor right.

ESC D

Cursor left.

ESC F

Enter line graphics mode.

ESC G

Exit line graphics mode.

ESC H

Cursor home.

ESC I

Reverse line feed.

ESC J

Erase from cursor to end of screen.

ESC K

Erase from cursor to end of line.

ESC V

Print cursor line.

ESC ]

Print screen.

ESC W

Transparent print mode.

AccuTerm 7 Reference 253

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ESC X

Cancel transparent print mode.

ESC ^

Auto print mode.

ESC _

Cancel auto print mode.

ESC =

Keypad application mode on.

ESC >

Keypad application mode off.

ESC <

Enter VT220 mode.

ESC Z

Identify terminal.

ESC Y line col

Cursor position.

3.4.1 ANSI Tables

3.4.1.1 ANSI Attribute Code Table

The ANSI Attribute Code Table defines the attribute code character (n) used by the ANSI emulationsto assign visual attributes.

Code (n) Attribute type

0 Normal

1 Bold

2 Dim

4 Underline

5 Blinking

7 Reverse

8 Blank

22 Dim & Bold off

24 Underline off

25 Blinking off

27 Reverse off

28 Blank off

30 Black character

31 Red character

32 Green character

33 Yellow character

34 Blue character

35 Magenta character

AccuTerm 7 Help254

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Code (n) Attribute type

36 Cyan character

37 White character

40 Black background

41 Red background

42 Green background

43 Yellow background

44 Blue background

45 Magenta background

46 Cyan background

47 White background

3.4.1.2 ANSI Function Key Table

The ANSI Function Key Table defines the key code (key) used by the ANSI emulations to programfunction keys.

Key toprogram key

F6 17

F7 18

F8 19

F9 20

F10 21

F11 23

F12 24

F13 25

F14 26

F15 28

F16 29

F17 31

F18 32

F19 33

F20 34

3.4.1.3 ANSI Extended Key Table

The ANSI Extended Key Table defines the key code (key) and modifier keys (mod) used by the ANSIemulations to program extended function and keypad keys.

Key toprogram key

Modifierkeys mod

F1 112 none 0

F2 113 SHIFT 2

F3 114 ALT 3

F4 115 ALT+SHIFT 4

F5 116 CTRL 5

F6 117 SHIFT+CTRL 6

AccuTerm 7 Reference 255

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Key toprogram key

Modifierkeys mod

F7 118 ALT+CTRL 7

F8 119 ALT+CTRL+SHIFT 8

F9 120

F10 121

F11 122

F12 123

BKSP 14

TAB 16

INS 75

DEL 76

HOME 80

END 81

PGUP 85

PGDN 86

LEFT 79

RIGHT 89

UP 83

DOWN 84

ESC 110

ENTER 42

KPD ENTER 108

3.4.1.4 ANSI Key Code Table

The ANSI Key Code Table describes the default character sequence transmitted by the function,keypad and other special keys on the PC keyboard and the corresponding real terminal key.

PC Key Terminal Key Sequence

BKSP BKSP BS

SHIFT+BKSP SHIFT+BKSP BS

TAB TAB HT

SHIFT+TAB SHIFT+TAB CSI Z

INS CSI 2 ~

SHIFT+INS CSI 2 ~

DEL DEL DEL

SHIFT+DEL DEL LINE DEL

HOME HOME CSI H

SHIFT+HOME SHIFT+HOME CSI H

END CSI 1 ~

SHIFT+END CSI 1 ~

PGUP PGUP CSI 5 ~

SHIFT+PGUP SHIFT+PGUP CSI 5 ~

PGDN PGDN CSI 6 ~

SHIFT+PGDN SHIFT+PGDN CSI 6 ~

LEFT LEFT CSI D

SHIFT+LEFT SHIFT+LEFT CSI D

AccuTerm 7 Help256

Copyright 2010-2011 Schellenbach & Assoc., Inc.

PC Key Terminal Key Sequence

RIGHT RIGHT CSI C

SHIFT+RIGHT SHIFT+RIGHT CSI C

UP UP CSI A

SHIFT+UP SHIFT+UP CSI A

DOWN DOWN CSI B

SHIFT+DOWN SHIFT+DOWN CSI B

ESC ESC ESC

SHIFT+ESC SHIFT+ESC ESC

ENTER RETURN CR

SHIFT+ENTER SHIFT+ENTER CR

KPD ENTER ENTER CR

SHIFT+KPD ENTER SHIFT+ENTER CR

F1 PF1 SS3 P

F2 PF2 SS3 Q

F3 PF3 SS3 R

F4 PF4 SS3 S

F5 CSI M

F6 F6 CSI 1 7 ~

F7 F7 CSI 1 8 ~

F8 F8 CSI 1 9 ~

F9 F9 CSI 2 0 ~

F10 F10 CSI 2 1 ~

F11 F11 CSI 2 3 ~

F12 F12 CSI 2 4 ~

CTRL+F1 F11 CSI 2 3 ~

CTRL+F2 F12 CSI 2 4 ~

CTRL+F3 F13 CSI 2 5 ~

CTRL+F4 F14 CSI 2 6 ~

CTRL+F5 F15 CSI 2 8 ~

CTRL+F6 F16 CSI 2 9 ~

CTRL+F7 F17 CSI 3 1 ~

CTRL+F8 F18 CSI 3 2 ~

CTRL+F9 F19 CSI 3 3 ~

CTRL+F10 F20 CSI 3 4 ~

Note: when using 7 bit controls, CSI is sent as ESC [ and SS3 is sent as ESC O.

3.4.2 ANSI Programming Notes

Functions tagged with the following super-script symbols are only valid in the designated emulation:1 - VT1002 - VT2203 - VT3204 - VT420A - ANSI BBSL - Linux ConsoleS - SCO Console

AccuTerm 7 Reference 257

Copyright 2010-2011 Schellenbach & Assoc., Inc.

3.5 Pick PC Console Programming

The Pick Operating System on the IBM PC has its own terminal type for the system console (term type I). AccuTerm emulates the Pick PC console thus allowing you to use the same terminal codes for all

your terminals in a Pick PC environment. The advantage of using this emulation is that it gives youdirect access to legacy VGA colors and attributes.

Operating Modes

ESC * Y

Set the video mode to 80 by 25 monochrome mode. This command is ignored byAccuTerm.

ESC * ]

Sets the video mode to 80 by 25 color. This command is ignored by AccuTerm.

GS

If the graphics mode is enabled, this command puts the terminal in the Tektronix emulationmode. If the graphics mode is disabled, this command is ignored.

ESC % ! 0

Enters Tektronix 4100 graphics mode.

Cursor Positioning

BS or ESC * HT

Cursor left. The cursor is moved left one position. If the cursor is at the first column, it ismoved to the last column of the previous line.

ESC * DC3

Cursor right. Moves the cursor right one position. If the cursor is at the last column, it willwrap to the first column of the next line.

LF

Cursor down. Moves the cursor down one row. If the cursor is on the last row of the screenand the terminal is not in protected mode, the screen scrolls up one line.

ESC * LF

Cursor up. Moves the cursor up one row. If the cursor is at the top row and the terminal isnot in protected mode, the screen is scrolled down one line.

CR

Carriage return. Moves the cursor to the leftmost column of the current row.

ESC * STX

Cursor home. Moves the cursor to the upper left corner of the screen.

ESC = c r

This command positions the cursor to column c and row r. c and r are the binary cursorpositions, numbered from 0 (top row, left column). For example, to position the cursor tocolumn 10 row 10, you would send ESC = LF LF where LF is the ASCII representation of

AccuTerm 7 Help258

Copyright 2010-2011 Schellenbach & Assoc., Inc.

character 10.

Erasing and Editing

FF or ESC * SOH

Clears the screen and moves the cursor to the upper left corner of the screen.

ESC * ETX

Clears from the cursor position to the end of the screen.

ESC * EOT

Clears from the cursor position to the end of the line.

ESC * h

Insert character. A blank is inserted at the current cursor position. All characters from thecursor position to the right are moved right one column.

ESC * i

Delete character. The character at the current cursor position is deleted. All characters tothe right of the cursor are moved left one column and a blank is placed on the last column ofthe line.

ESC * j

Insert line. A blank line is inserted before the current line. The current line and all linesbelow are moved down one row. The bottom line of the screen is lost. The cursor is movedto the left most column of the inserted line.

ESC * k

Delete line. The current line is deleted. All lines below the current line are moved up oneposition. The bottom line is blank. The cursor is moved to the left most column.

Video Attributes

In Pick PC Console emulation there are several different ways to set the video attributes. The first isthrough escape sequences that start and stop individual attributes like "Underline", "Reverse", etc. Thesecond is by sending the desired foreground and background colors. Note that the PC Console treatsthe "Dim" attribute as the protected attribute. To change video attributes, use the following escapesequences.

ESC * ENQ

Start blinking characters.

ESC * ACK

Stop blinking characters.

ESC * BEL

Start dim (protected) characters.

ESC * BS

Stop dim (protected) characters.

AccuTerm 7 Reference 259

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ESC * CR

Start reverse video characters.

ESC * SO

Stop reverse video characters.

ESC * SI

Start underlined characters.

ESC * DLE

Stop underlined characters.

ESC * n

Sets the foreground/background attributes separately where n is the code from the PCConsole Color Code Table.

Protected Attributes

The Pick PC Console emulation uses the dim attribute as the protected attribute. When the protectmode is enabled, the cursor is not allowed to move to any positions that contain protected characters,the auto scroll mode is turned off, and the clear screen functions clear only the un-protected characters.

ESC * VT

Turn on the protected mode.

ESC * FF

Turn off the protected mode.

ESC * BEL

Start protected (dim) characters.

ESC * BS

Stop protected (dim) characters.

Printer Control

ESC [ ? 5 i or ESC * DC1

Transparent print mode. Characters are printed, but not displayed. When AccuTermreceives this command, it goes into transparent print mode until it receives the ANSI print offsequence below. This command is useful for printing graphics data to the printer. SinceAccuTerm requires the specific ANSI cancel command below to exit transparent print mode, there is less chance of a control character interrupting the graphic printing.

ESC [ ? 4 i or ESC * DC2

Cancel transparent print mode.

3.5.1 PC Console Color Code Table

The PC Console Color Code Table defines the color code character (n) used by the Pick PC Consoleemulation to assign the foreground and background colors.

AccuTerm 7 Help260

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Color Background Bright foreground Dim foreground

White ! ) 9

Yellow " * :

Magenta # + ;

Red $ , <

Cyan % - =

Green & . >

Blue ' / ?

Black ( 0 @

3.6 ASCII Control Codes

ASCII Control Codes

The ASCII Control Codes chart lists the ASCII 7-bit control codes, along with their decimal andhexadecimal values and the keyboard keys used to produce the code. The ANSI 8-bit control codes areshown at the end of the table along with their 7-bit equivalents.

ASCII 7-bitcontrol char

Decimal Hex Key

NUL 0 00

SOH 1 01 CTRL+A

STX 2 02 CTRL+B

ETX 3 03 CTRL+C

EOT 4 04 CTRL+D

ENQ 5 05 CTRL+E

ACK 6 06 CTRL+F

BEL 7 07 CTRL+G

BS 8 08 CTRL+H

HT 9 09 CTRL+I

LF 10 0A CTRL+J

VT 11 0B CTRL+K

FF 12 0C CTRL+L

CR 13 0D CTRL+M

SO 14 0E CTRL+N

SI 15 0F CTRL+O

DLE 16 10 CTRL+P

DC1 17 11 CTRL+Q

DC2 18 12 CTRL+R

DC3 19 13 CTRL+S

DC4 20 14 CTRL+T

NAK 21 15 CTRL+U

SYN 22 16 CTRL+V

ETB 23 17 CTRL+W

CAN 24 18 CTRL+X

AccuTerm 7 Reference 261

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ASCII 7-bitcontrol char

Decimal Hex Key

EM 25 19 CTRL+Y

SUB 26 1A CTRL+Z

ESC 27 1B CTRL+[

FS 28 1C CTRL+\

GS 29 1D CTRL+]

RS 30 1E CTRL+^

US 31 1F CTRL+_

DEL 127 7F

ANSI 8-bitcontrol char Decimal Hex 7-bit equivalent

IND 132 84

NEL 133 85

SSA 134 86

ESA 135 87

HTS 136 88

HTJ 137 89

VTS 138 8A

PLD 139 8B

PLU 140 8C

RI 141 8D

SS2 142 8E

SS3 143 8F ESC O

DCS 144 90 ESC P

PU1 145 91

PU2 146 92

STS 147 93

CCH 148 94

MW 149 95

SPA 150 96

EPA 151 97

152 98

153 99

154 9A

CSI 155 9B ESC [

ST 156 9C ESC \

OSC 157 9D

PM 158 9E

APC 159 9F

3.7 Customizing the Installation Process

The AccuTerm 7 installation process can be customized in several ways: default values can be suppliedfor any of the installation wizard prompts, the installer can run in "silent mode", and you can supply yourown files to be installed along with the AccuTerm 7 program files.

AccuTerm 7 Help262

Copyright 2010-2011 Schellenbach & Assoc., Inc.

The AccuTerm 7 installer is distributed as a single .exe file. The installer can be placed in any folder thatis accessible to the user's PC: local hard drive, portable drive such as a USB drive, network share, CD-ROM, etc.

Supplying default values for installation promptsTo supply default values for installation prompts, you need to create a text file called 'setup.ini' and placeit in the same directory that the AccuTerm 7 installation .exe file resides. A sample 'setup.ini' file isshown below:

; Custom setup for AccuTerm 7;; To use this custom setup file, remove the leading semicolon; from the item you want to define, and replace the ?? with the; value you want to use. Be sure to remove the comment after; the value! Place this file in the same directory as the; installation .exe.;[Defaults];MAINDIR=?? - define product directory;HOMEDIR=?? - directory where session files are saved;BACKUP=?? - backup replaced files to this directory;GROUP=?? - specify the Start Menu group;SHORTCUT="Y" - create shortcut on desktop;SHORTCUT="N" - do not create shortcut on desktop;ALLUSERS="Y" - shortcut created in "all users" profile;ALLUSERS="N" - shortcut created for current user only;CUSTOMCODE=?? - custom feature code (if you have one);; The AUTOUPGRADE item will bypass the initial prompt to migrate; preferences & files from earlier versions of AccuTerm.;AUTOUPGRADE="Y"- automatically migrate all preferences;AUTOUPGRADE="N"- do not migrate any preferences;; The following items are used for automatic product; activation following installation.;CDKEY1=xxxxxxx - first part of activation key;CDKEY2=xxxxxxx - second part of activation key;NAME=?? - licensed user name;COMPANY=?? - licensed company name;LOCATION=?? - licensed location;; The following items are used for product registration;ADDRESS=??;CITY=??;STATE=??;ZIPCODE=??;COUNTRY=??;EMAIL=??

To use the 'setup.ini' sample shown above, remove the leading ';' from any items you need to define, andchange the '??' to the value you want to use. Remove the comment text from any lines that you define.

AccuTerm 7 Reference 263

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Any items that are not defined will use the default for that setting.

Note: for the "home" directory, you can use specify a directory that is relative to the user's MyDocuments directory. For example, to store AccuTerm session files in a sub-folder called 'AccuTermSessions' under the user's My Documents directory, use:

HOMEDIR=My Documents\AccuTerm Sessions

The AUTOUPGRADE item is used to skip the "AccuTerm 7 Upgrade" dialog that is shown on first use ofAccuTerm 7 when an earlier version of AccuTerm is detected. Set this item to "N" to suppress thedialog and ignore all previous settings and files. Set to "Y" to migrate all possible preferences and filesfrom the earlier AccuTerm version. Set this item to a numeric value (a bit mask) to specify whichcategory of settings or files are to be automatically migrated from the earlier version of AccuTerm. Thevalues for each desired category can be added together to form the bit mask.

1 - migrate user's personal custom menu2 - migrate application custom menu4 - migrate settings from the current atwin.ini file8 - migrate preferences (stored in the HKEY_CURRENT_USER section of the registry)16 - migrate SSH keys32 - migrate custom settings from the atwin.ini file64 - migrate session files from program directory to home directory128 - migrate the phone book

Unattended InstallationThe AccuTerm 7 installer uses command-line options to perform an unattended installation. The "/q"command-line option bypasses all of the installation prompts, but does display a progress bar duringinstallation:

atw70d.exe /q

The "/s" command-line option bypasses all of the prompts and does not display the progress bar:

atw70d.exe /s

Installing user-supplied filesThe AccuTerm 7 Installer can install user supplied files after installing the AccuTerm program files. Toinstall user supplied files, create a sub-directory below the directory where the installation .exe residescalled 'VARFILES'. To copy user supplied files to the AccuTerm program directory, create a sub-directory called 'ATWIN' under the 'VARFILES' directory. Place any files (or folders) that need to becopied to the AccuTerm program directory in this directory. To copy user supplied files to the user's"home" directory (the directory where the session files are saved), create a sub-directory called 'HOME'under the 'VARFILES' directory. Place files to copy to the "home" directory in this directory.

Running a secondary installation programThe AccuTerm 7 installer can run a user supplied secondary installation program. The secondaryinstallation program must be named 'varsetup.exe' and must reside in the same directory as the mainAccuTerm installation .exe. The secondary installation program will run after the AccuTerm program filesare installed and after user supplied files have been copied. The AccuTerm installer will append twocommand line arguments to the varsetup.exe command: the path of the AccuTerm program directory

AccuTerm 7 Help264

Copyright 2010-2011 Schellenbach & Assoc., Inc.

and the "home" directory path. The arguments are each enclosed in double-quote marks.

Installing a pre-configured version of AccuTermIt is possible to create a custom installation package that installs a pre-configured version of AccuTerm.AccuTerm's initial state is defined by settings stored in the 'atwin70.ini' file in the AccuTerm programdirectory. Custom master menu/toolbar is defined by the 'menu70.ini' file in the AccuTerm programdirectory. Session settings are stored in session configuration files (.atcf files), stored in the user's"home" directory. By taking advantage of the ability of the AccuTerm installer to install user suppliedfiles you can create a pre-configured installation package.

Supply a custom atwin70.ini file in the 'VARFILES\ATWIN' directory to pre-configure AccuTerm's initialstate:

[Atwin]Version=7.0

[Options]ToolBar=TrueStatusLine=TrueSessionBar=TrueSingleInstance=TrueAutoClose=FalseNoCloseWarning=FalseNoConnectWizard=FalseNoWelcomePage=FalseLargeIcons=FalseTrackKeyboardState=FalseFuncBar=FalseFuncBarStyle=0FuncBarPos=0TitleFormat=4RecentListSize=4

[Path]Capture=""

[Xfer]DefaultDir=""

[Custom]Icon=""Title=""Splash=""

Most of the 'atwin70.ini' settings are obvious. For those values which are not True/False, please refer tothe property of the same name in the AccuTerm object. The [Custom] Icon and Splash settings are filenames. These files are usually stored in the AccuTerm program directory - in that case you do not needto include a full path. You can disable the splash screen by setting Splash=No.

To supply a pre-configured session file, copy it to the 'VARFILES\HOME' directory. The installer willcopy any files in this directory to the user's "home" directory.

AccuTerm 7 Reference 265

Copyright 2010-2011 Schellenbach & Assoc., Inc.

To supply a pre-configured master menu/toolbar, use the menu designer to configure the new mastermenu, then copy the 'menu70.ini' file from the AccuTerm program directory to the 'VARFILES\ATWIN'directory. If you want to prevent users from modifying this menu after installation, be sure to check theoverride option in the menu properties.

Top Level IntroThis page is printed before a new

top-level chapter starts

Part

IV

Features for MultiValue Users 267

Copyright 2010-2011 Schellenbach & Assoc., Inc.

4 Features for MultiValue Users

4.1 MultiValue File Transfer

To make the most effective use of AccuTerm with your MultiValue based host system, you shouldinstall the AccuTerm host programs. These programs implement the Kermit and ASCII file transferprotocols, coordinate the transfer of data between your computer and the host, import and export datain a variety of formats and provide a simple host-to-host transfer facility. See Installing MultiValueHost Programs for information on installing the host programs.

In order to understand how to best use AccuTerm’s MultiValue file transfer features, the differencesbetween the PC and MultiValue file systems must be examined. Traditional PC files may beprograms, documents or data files; in the typical MultiValue system, programs and documents arestored as individual items (records) in a file, whereas a data file is collection of related items (records)in a file, with an associated file dictionary.

When exchanging data between your computer and your MultiValue host, it is important to realize thedifference between “document files” and “data files”.

MultiValue File Transfer WizardUse the File Transfer Wizard to simplify the process of uploading or downloading data and documentsbetween your PC and MultiValue host. The wizard uses a series of simple questions to guide youthrough the file transfer process. You can use the wizard to help you upload or download data ordocument files.

MultiValue File Transfer UtilitiesWhen transferring “document files” between the PC and MultiValue host, use AccuTerm’s FT utility.This utility transfers MultiValue items to PC files and vice versa. The key concept is that eachMultiValue item becomes a separate file on the PC.

When transferring “data files” between your PC and your MultiValue host, use the FTD utility. Thisutility transfers a set of MultiValue items to a single PC file and vice versa. The key concept is that aset of items on the host becomes a single file on the PC.

You can also use AccuTerm to trasnfer data between two MultiValue hosts. The FTPICK utility isused to transfer data from one MultiValue machine to another, either directly (using two concurrentAccuTerm sessions), or using an intermediate PC file.

Kermit is the recommended file transfer protocol because of the automatic error detection andcorrection. Also, even with the increased overhead ensuing from Kermit, because the sender andreceiver are synchronized and no time delays are required, the Kermit protocol usually performsbetter than the ASCII protocol when receiving a file.

MultiValue File Transfer Functions:

Installing MultiValue Host ProgramsUpdating the MultiValue Host ProgramsDownloading documents to your PCUploading documents from your PCDownloading data files to your PC (export)Uploading data files from your PC (import)Transferring data between two MultiValue hostsIntegrating file transfer functions into MultiValue applications

AccuTerm 7 Help268

Copyright 2010-2011 Schellenbach & Assoc., Inc.

4.1.1 Installing the MultiValue Host Programs

To install the MultiValue host programs, perform the following steps.

1. Open a terminal session and connect to your MultiValue host system. If you have an existing ACCUTERM account, log on to the ACCUTERM account (a different account may be used, but it is

highly recommended that you use a dedicated ACCUTERM account). Otherwise log on to your

system administration account (SYSPROG, D3, QMSYS, UV, UD, etc.) and create an ACCUTERM

account (you may need to ask your system administrator to create the ACCUTERM account for

you).2. Check the following items before beginning the installation:

a) Make sure you are at a command prompt (TCL, ECL, etc.)b) If your system is running on a Unix, Linux or AIX host, make sure that the CTRL+ A control

character can be input. Check by typing stty -a at a *nix prompt – look for ^A - if you find it,

either disable that function or map it to a different control character. For example if you seesomething like susp = ^A you can type stty susp \^- to disable the suspend function.

c) For jBase systems, make sure you have a valid terminal type assigned.

3. While at the command prompt use MultiValue ? Host Programs ? Install from the main menuto start the host program installation wizard. Confirm that you want to install the host programs byclicking the Yes button.

4. The host program installation wizard will perform some checks to identify the type of MultiValueplatform you are running, verify that you are at a TCL prompt and turn off case inversion. You willsee meaningless text on the terminal screen during this process.

5. The installation wizard will display a list of supported MultiValue platforms. Select your platformfrom the list. If the wizard was able to identify the platform, it will be highlighted, but you canchange it by clicking a different platform if necessary.

6. If your MultiValue platform is running on IBM's AIX operating system, check the Host operatingsystem is IBM AIX check-box.

7. Click the Install Host Programs button to install a bootstrap PROC and BASIC program. You willsee these scroll up the terminal screen as they are installed. Once the bootstrap programs areinstalled, the wizard will run them to install the core FTBP programs automatically.

8. After the core FTBP programs are installed, a dialog box will be displayed where you can selectany optional program libraries (GUI, ObjectBridge, SUI) and sample programs and data that youwant to install.

9. If you have previously installed the ViaDuct host programs, the ViaDuct FT PROC conflicts withAccuTerm's FT program. If this conflict is detected, the AccuTerm installer will prompt if you wantto rename the ViaDuct FT command as "FT.VIA". Answer Y to rename.

An alternate method of installing the AccuTerm host programs is available in the event that theinstallation wizard is not compatible with your host. See Alternative Host Program Installation.

See also:Updating the MultiValue Host ProgramsActivating other accounts to use the AccuTerm host programs

4.1.1.1 Alternative Host Program Installation

To install the AccuTerm MultiValue host programs manually, perform the following steps.

1. Open a terminal session and connect to your MultiValue host system. If you have an existing ACCUTERM account, log on to the ACCUTERM account (a different account may be used, but it is

Features for MultiValue Users 269

Copyright 2010-2011 Schellenbach & Assoc., Inc.

highly recommended that you use a dedicated ACCUTERM account). Otherwise log on to your

system administration account (SYSPROG, D3, QMSYS, UV, UD, etc.) and create an ACCUTERM

account (you may need to ask your system administrator to create the ACCUTERM account for

you).2. Check the following items before beginning the installation:

a) Make sure you are at a command prompt (TCL, ECL, etc.)b) If your system is running on a Unix, Linux or AIX host, make sure that the CTRL+ A control

character can be input. Check by typing stty -a at a *nix prompt – look for ^A - if you find it,

either disable that function or map it to a different control character. For example if you seesomething like susp = ^A you can type stty susp \^- to disable the suspend function.

c) For jBase systems, make sure you have a valid terminal type assigned.d) Check the Paste Options - end-of-line setting (Clipboard Settings) and ensure that the CR

option is selected. Ensure that the Do not send line-end... option is not selected.3. While at the command prompt (TCL, ECL, etc.), click on the Edit menu and select Paste From. 4. Browse to the PICKBP folder. 5. Click on the install script for your platform (please see the readme.txt file in the PICKBP folder

for the latest platform list):

FTPINST.TXT generic MultiValue system

FTPINSADDS.TXT Mentor, Mentor Pro, MOE

FTPINSAP.TXT Advanced Pick (except PRO and AIX)

FTPINSAP_PRO.TXT Advanced Pick / Pro

FTPINSCACHE.TXT Intersystems Cache (except AIX)

FTPINSD3.TXT D3 (NT, Linux, Unix except AIX)

FTPINSENH.TXT Enhanced R83 (Altos, Fujitsu, R91, etc.)

FTPINSJB.TXT jBase 3.x (except AIX)

FTPINSJB4.TXT jBase 4.x (except AIX)

FTPINSMD.TXT Reality

FTPINSMV.TXT mvBase

FTPINSNR.TXT Northgate Reality 9+

FTPINSOI.TXT Revelation OpenInsight CTO

FTPINSON.TXT ONWare MVON (except AIX)

FTPINSPWR95.TXT Power 95

FTPINSQM.TXT QM MV Database

FTPINSR83.TXT Pick R83

FTPINSSEQ.TXT Sequoia, mvEnterprise (except Ultimate emulation and AIX)

FTPINSUD.TXT UniData (except AIX)

FTPINSULT.TXT Ultimate Plus (all except SCO Unix and AIX)

FTPINSULT_SCO.TXT Ultimate Plus on SCO Unix

FTPINSULTX.TXT Early Ultimate (as implemented on mvEnterprise)

FTPINSUV.TXT UniVerse (except AIX)

FTPINSVIS.TXT UniVision

For hosts running on IBM AIX, use the following scripts:

FTPINSAP_AIX.TXT Advanced Pick on AIXFTPINSCACHE_AIX.TXT

Intersystems Cache on AIX

FTPINSD3_AIX.TXT D3 on AIXFTPINSJB_AIX.TXT jBase 3.x on AIXFTPINSJB4_AIX.TXT jBase 4.x on AIXFTPINSON_AIX.TXT ONWare MVON on AIX

AccuTerm 7 Help270

Copyright 2010-2011 Schellenbach & Assoc., Inc.

FTPINSSEQ_AIX.TXT Sequoia, mvEnterprise on AIXFTPINSUD_AIX.TXT UniData on AIXFTPINSULT_AIX.TXT Ultimate Plus on AIXFTPINSULTX_AIX.TXT Early Ultimate on AIX (as implemented on mvEnterprise)FTPINSUV_AIX.TXT UniVerse on AIX

6. Click the Open button. AccuTerm will install a small bootstrap PROC and program which will beused to install the core file transfer programs. You will see these programs scroll up the terminalscreen as they are installed. Once the bootstrap programs have been installed, they will runautomatically and complete the installation of the core programs (FTBP file).

7. Once the core FTBP programs are installed, a dialog box will be displayed where you can selectany optional program libraries (GUI, ObjectBridge, SUI) and sample programs and data that youwant to install.

8. If you have previously installed the ViaDuct host programs, the ViaDuct FT proc conflicts withAccuTerm's FT program. If this conflict is detected, the AccuTerm installer will prompt if you wantto rename the ViaDuct FT command as "FT.VIA". Answer Y to rename.

See also:Updating the MultiValue Host ProgramsActivating other accounts to use the AccuTerm host programs

4.1.2 Updating the MultiValue Host Programs

To update the MultiValue host programs previously installed on your host, perform the following steps.

1. Open a terminal session and connect to your MultiValue host system. Log on to the ACCUTERM

account (or other account where you have the host programs installed). Make sure you are at acommand prompt (TCL, ECL, etc.)

2. While at the command prompt use MultiValue ? Host Programs ? Update from the mainmenu to start the host program update process. Confirm that you want to update the hostprograms by clicking the Yes button.

3. The AccuTerm Host Program Installation Options dialog box will be displayed. Select theReinstall FTBP option. Click the OK button to reinstall the core FTBP programs.

4. To update the optional programs and/or sample data files, use MultiValue ? Host Programs ?Update from the main menu to restart the host program update process. Confirm that you want toupdate the host programs by clicking the Yes button.

5. The AccuTerm Host Program Installation Options dialog box will be displayed again. Selectany optional program libraries (GUI, ObjectBridge, SUI) and sample programs and data that youwant to install or update.

See also:Activating other accounts to use the AccuTerm host programs

4.1.3 Activating Other Accounts to use the AccuTerm Host Programs

After installing the host programs on the ACCUTERM (or other) account on your host system, you caneasily activate these programs on other accounts. To activate the programs on another account, performthe following steps:

Features for MultiValue Users 271

Copyright 2010-2011 Schellenbach & Assoc., Inc.

1. Open a terminal session and connect to your MultiValue host system. Log on to the ACCUTERM

account (or other account where you have the host programs installed). Make sure you are at acommand prompt (TCL, ECL, etc.)

2. While at the command prompt use MultiValue ? Host Programs ? Account Setup from themain menu to start the host program account setup process. Confirm that you want to activate anaccount to use the host programs by clicking the Yes button.

3. The character-based FTSETUP program will start. From the FTSETUP menu, select option 1(enter 1, then press ENTER).

4. When prompted for the account name to activate, type the name and press ENTER.5. Repeat for any other accounts that you want to activate.6. To terminate the FTSETUP program, enter X at the FTSETUP menu, then press ENTER.

4.1.4 Downloading Documents to your PC

Use the FT utility to send MultiValue items (documents) to your PC. FT downloads each item(document) into a separate PC file. Normally, FT uses text mode, converting attribute-marks to CR LF

during the download process.

To download using FT, enter FT at the command promot. On-line help is provided for each prompt, justenter a question mark and press ENTER.

(S)end, (R)eceive, (C)onfigure, (O)ptions, (H)elp or (E)xit ?

Answer S to send, then select the file transfer protocol (answer C to modify FT configuration settings;

enter O to modify FT options):

File transfer protocol: (A)SCII or (K)ermit ?

Kermit is recommended.

Enter source (Pick) file name:

Enter the name of the host file which contains the items to be sent.

Enter source (Pick) item list:

Enter the item-IDs to be sent. If you do not enter item-IDs, any previously selected (SELECT, GET-LIST, etc.) items will be transferred; if you enter an asterisk (*), all items in the file will be transferred.

To specify a saved list, enter an open parenthesis followed by the list name. Separate item-IDs withblanks.

Enter target (DOS) directory name:

Enter the PC directory name including drive letter if desired. Separate directory names in a full pathusing back-slashes. UNC-style file names are acceptable.

Enter target (DOS) file name:

Enter the PC file name, including extension. If multiple items are being sent, multiple file names may bespecified here. Each host item will be written to a separate PC file. If no file names are specified here,the host item-ID will be used as the PC file name.

When the transfer is complete, you may see a message like:

AccuTerm 7 Help272

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Converting file to ANSI character set . . .

This indicates that the raw data has been downloaded and is being converted from the OEM characterset to the ANSI (Windows native) character set.

4.1.5 Uploading Documents from your PC to the Host

Use the FT utility to send PC files to your MultiValue host. Each PC file uploaded is saved as an item inthe host file you specify.

To upload using FT, enter FT at the command prompt and follow the prompts. On-line help is providedfor each prompt, just enter a question mark and press ENTER.

(S)end, (R)eceive, (C)onfigure, (O)ptions, (H)elp or (E)xit ?

Answer R to receive, then select the file transfer protocol (answer C to modify FT configuration settings;

enter O to modify FT options):

File transfer protocol: (A)SCII or (K)ermit ?

Kermit is recommended.

Enter source (DOS) directory name:

Enter the name of the PC directory which contains the files to be received.

Enter source (DOS) file name:

Enter the name(s) of the PC file(s) to be received. Separate multiple file names with blanks. Wildcardcharacters (? and *) are valid.

Enter target (Pick) file name:

Enter the host file name where the uploaded PC files are to be saved. Each uploaded file is stored asan item in this file.

Enter target (Pick) item list:

Enter the item-ID(s) for the uploaded file(s). If multiple files are being uploaded, multiple item-IDs may bespecified here. If no item-IDs are specified here, the PC file name will be used as the item-ID.

Before the transfer begins, you may see a message like:

Converting file to OEM character set . . .

This indicates that the PC file, which uses the ANSI (Windows native) character set is being translatedinto the OEM character set prior to transfer to your host computer.

Features for MultiValue Users 273

Copyright 2010-2011 Schellenbach & Assoc., Inc.

4.1.6 FT Options and Settings

Several configuration (permanent) and option (temporary) settings are available for the FT utility. Tochange configuration settings, enter C in response to the first prompt. A list of configuration settings will

be displayed:

Current parameter settings are:

1. Transfer mode................. Text

2. Preserve file extension....... Yes

3. Overwrite existing item....... Yes

4. Large item treatment.......... Truncate

5. Convert OEM char set to ANSI.. No

Enter parameter number (1-5) to modify:

The setting for any of these parameters may be changed by entering the parameter number.

To change option settings, enter O in response to the first prompt. A list of option settings will be

displayed. Note that the default value of the options is stored in the configuration settings:

Current parameter settings are:

1. Transfer mode................. Text

2. Preserve file extension....... Yes

3. Overwrite existing item....... Yes

An alternate way to set the value of a configuration or option setting is to answer the prompt with theparameter number, an equal sign, and the first letter of the value to which the parameter is to be set. For example, to set the first configuration parameter to "binary", respond to "Enter parameter..." with 1=B

. This alternate method is useful in cases where the FT utility is being "driven" by a PROC or by anotherprogram using the EXECUTE statement.

Transfer modePossible transfer modes are text and binary. Text causes attribute mark characters to be translated tocarriage return / line feeds and vice versa.

Preserve file extensionThis option affects uploads only. When set to "Yes", and target item-IDs are not specified, the completeDOS file name, including the file extension, is used for the item-ID. When set to "No", the extension isremoved.

Overwrite existing itemThis option can be used to protect existing files and items from being overwritten. Select "Yes" to allowexisting DOS files to be overwritten during downloads (host to PC), or existing items to be overwrittenduring uploads (PC to host). Select "No" to protect existing files (downloads) or items (uploads).

Large item treatmentFor uploads (PC to host), "Truncate" will truncate large files at about 30000 bytes, "Split" will split largefiles into multiple items of about 30000 bytes each, and "No action" will leave large file unchanged. Note:if you select "No action", be sure your host system does not have an item size limit. Split items use aspecial item-ID generated by concatenating the original item-ID, an underscore (_), and a sequentialnumber starting with 001. For downloads (host to PC), when "Split" is selected, the process is reversed.That is, multiple items, using the naming scheme described above, are joined together to form a singlelarge DOS file.

AccuTerm 7 Help274

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Convert OEM char set to ANSIIf you enable OEM/ANSI character set conversion, the file you upload or download is a temporary file.The actual file is converted before uploading and after downloading. You should not enable this optionunless you use international characters on your MultiValue host, and those characters are storedusing the OEM character set (the set used by ADDS Viewpoint, Wyse, ANSI BBS and PC Monitoremulations).

4.1.7 Downloading Data Files to your PC (export)

Use the File Transfer Wizard or FTD utility to download a set of specified (or selected) items from yourhost database to a PC file. You can specify which fields (attributes) to download. The target PC fileformat is determined by the extension of the file name you specify.

FTD can also be used to join several host items into a single PC file. This is done by setting the fielddelimiter to "CrLf", and entering an asterisk at the “Source item list” prompt.

To export data from the host using FTD, enter FTD at the command prompt, then answer the prompts.On-line help is provided for each prompt, just enter a question mark and press ENTER.

(S)end, (R)eceive, (C)onfigure, (O)ptions, (H)elp or (E)xit ?

Answer S to send, then select the file transfer protocol (answer C to modify FTD configuration settings;

enter O to modify FTD options):

File transfer protocol: (A)SCII or (K)ermit ?

Kermit is recommended.

Enter source (Pick) file name:

Enter the name of the host file which contains the data to be exported.

Enter source (Pick) item list:

Enter the item-IDs of the items (records) you want to export. If you do not enter any item-IDs, anypreviously selected (SELECT, GET-LIST, etc.) items will be exported; if you enter an asterisk (*), all

items in the file will be exported. To specify a saved list, enter an open parenthesis followed by the listname. Separate item-IDs with blanks.

Enter target (DOS) file (path) name:

Enter the full PC file name including drive letter and directory, if desired. Separate directory names in afull path using back-slashes. UNC-style file names are acceptable.

For certain file types (Excel, Access, etc.), you may need to append a modifier after the file name; seethe discussion of file types for more information.

Attributes to transfer:

Enter the list of fields, or attributes, to be exported. Enter either the attribute number or attribute nameas defined in the file dictionary. An asterisk (*) may be entered here to export all attributes including theItem-ID, from all selected items. A plus-sign (+) may be entered to export all attributes except the Item-

Features for MultiValue Users 275

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ID.

Generate Header Record (<Y>/N):

Answer Y if you want the first record in the PC file to be a "header record". The header record specifies

the names of the fields of each data record in the file and may be used as column or field identifiers bycertain Windows applications. If an asterisk was entered for the attribute list, the header record willcontain only an asterisk.

If asterisk or plus-sign was not entered for the attribute list,

Explode MultiValue Fields (Y/<N>):

Answer Y to explode all multi-valued fields. When multi-valued fields are exploded, a separate data

record will be generated for each multi-value, with any single-valued attributes repeated for each multi-value.

When the transfer is complete, you may see a message like:

Converting file to Excel file format . . .

This indicates that the raw data has been downloaded and is being formatted in the native file formatindicated by the file name you entered.

4.1.8 Uploading Data Files from your PC to the Host (import)

Use the File Transfer Wizard or FTD utility to send a DOS file to a Pick file. When prompted:

(S)end, (R)eceive, (C)onfigure, (O)ptions, (H)elp or (E)xit ?

Answer R to receive, then select the file transfer protocol (answer C to modify FTD configuration settings;

enter O to modify FTD options):

File transfer protocol: (A)SCII or (K)ermit ?

Kermit is recommended.

Enter source (DOS) file (path) name:

Enter the full PC file name including drive letter and directory, if desired. Separate directory names in afull path using back-slashes. UNC-style file names are acceptable.

For certain file types (Excel, Access, etc.), you may need to append a modifier after the file name; seethe discussion of file types for more information.

Use Header Record (<Y>/N):

Answer Y if you want the use the first record in the PC file as a "header record". The header record

specifies the names (or numbers) of the attributes to be imported. If the header record consists of asingle asterisk, all fields (attributes) in the item are assumed. If you answer Y to this prompt, the next

prompt will be "Enter target (Pick) file name", the other prompts will be bypassed.

Attributes to transfer:

AccuTerm 7 Help276

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Enter the list of attributes (fields) to be imported. Enter either the attribute number or attribute name asdefined in the file dictionary. An asterisk may be entered here to import all attributes (entire record oritem). Attribute names or numbers listed here are in the same order as the fields in the DOS file. Entera dash ( - ) to skip a field in the DOS file. Attribute definitions containing A or F correlatives cannot bespecified.

Number of header records to skip:

Enter the number of records at the beginning of the PC file which are to be considered "header records",and which are to be ignored when importing the file.

Automatically generate target (Pick) IDs (Y/<N>):

Answer Y to generate item-IDs for each record. If the item-id is not specified in response to the

"Attributes to transfer" prompt, you must generate item-IDs. The generated item-ID consists of aconstant (possibly null) prefix, followed by a sequential number. If item-IDs are not generated, the nexttwo prompts will be skipped.

Auto ID Prefix:

Enter the constant item-id prefix. Null is acceptable if the generated item-id is simply a sequentialnumber.

Auto ID Starting Number:

Enter the starting value for automatically generated item-IDs.

Enter target (Pick) file name:

Enter the name of the host file where the imported data is to be stored.

Before the transfer begins, you may see a message like:

Converting file from Excel format for upload

This indicates that the PC file data is being converted into a delimited ASCII format which can beimported to your MultiValue database prior to transfer to your host computer.

4.1.9 FTD Options and Settings

Several configuration (permanent) and option (temporary) settings are available for the FTD utility. Tochange configuration settings, enter C in response to the first prompt. A list of configuration settings will

be displayed:

Current parameter settings are:

1. Preserve file extension....... Yes

2. Overwrite existing item....... No

3. Large item treatment.......... Truncate

4. Field delimiter............... Tab

5. Convert OEM char set to ANSI.. No

Enter parameter number (1-5) to modify:

Features for MultiValue Users 277

Copyright 2010-2011 Schellenbach & Assoc., Inc.

The setting for any of these parameters may be changed by entering the parameter number.

To change option settings, enter O in response to the first prompt. A list of option settings will be

displayed. Note that the default value of the options is stored in the configuration settings:

Current parameter settings are:

1. Preserve file extension....... Yes

2. Overwrite existing item....... No

3. Field delimiter............... Tab

An alternate way to set the value of a configuration or option setting is to answer the prompt with theparameter number, an equal sign, and the first letter of the value to which the parameter is to be set. For example, to set the fourth configuration parameter to "tab", respond to "Enter parameter..." with 4=T.

This alternate method is useful in cases where the FTD utility is being "driven" by a PROC or byanother program using the EXECUTE statement.

Preserve file extensionThis option affects FT uploads only. See the FT options for more information.

Overwrite existing itemThis option can be used to protect existing files and items from being overwritten. Select "Yes" to allowexisting DOS files to be overwritten during downloads (host to PC), or existing items to be overwrittenduring uploads (PC to host). Select "No" to protect existing files (downloads) or items (uploads). Set to"Merge" to append or merge data into existing files during downloads.

Large item treatmentThis option affects FT operations only. See the FT options for more information.

Field delimiterThe field delimiter (PC file) may be set to "Tab", "Comma", "CrLf" or any user-defined string. When"Comma" is chosen, fields are enclosed in double-quote marks during downloads (host to PC) and areremoved from fields during uploads (PC to host) if present. "CrLf" can only be used for exporting data tothe PC (when importing, the field and record delimiters must be different). User-defined field delimiter isentered in hex, at the "Enter parameter..." prompt, as in 4=1A.

Convert OEM char set to ANSIIf you enable OEM/ANSI character set conversion, the file you upload or download is a temporary file.The actual file is converted before uploading and after downloading. You should not enable this optionunless you use international characters on your MultiValue host, and those characters are storedusing the OEM character set (the set used by ADDS Viewpoint, Wyse, ANSI BBS and PC Monitoremulations).

4.1.10 FTD File Types

The default file format used by the FTD utility is ASCII delimited text. In this format, records in thePC file are separated by a carriage return / line feed and fields are separated by tabs or commas. Ifthe field delimiter is a comma, then each field is enclosed in quotation marks. Embedded quotationmarks are duplicated. This file format is easily imported by many Windows database andspreadsheet programs.

Certain file extensions are recognized by AccuTerm and are assumed to be a particular format. These

AccuTerm 7 Help278

Copyright 2010-2011 Schellenbach & Assoc., Inc.

extensions are:

.accdb Microsoft Access database

.db2 dBase II

.dbf dBase III/IV

.htm, .html HTML table

.mdb Microsoft Access database

.sym Lotus Symphony

.wb1 Quattro

.wk1 Lotus v1-v2

.wks Lotus v3-v5

.xl, .xls Microsoft Excel

.xlsb, .xlsm, .xlsx Microsoft Excel 2007

Excel import and exportWhen exporting and importing from Excel workbook files, the FTD utility has the ability to referenceexplicit worksheets and ranges of cells. To use this feature, specify the Excel file name as:

d:\path\file.xls!sheet!range

where d:\path\file.xls is the path of the Excel file, sheet is the worksheet name or tab

number (sheet may be null to use the first worksheet in the workbook), range is the range of cells to

access. Either a named range may be used or a cell location (e.g. A4) or cell range (e.g. B3:F42)may be specified.

When exporting data to Excel, the range identifies the upper-left cell of the target worksheet; the

number of columns and rows is determined by the data being sent. If a range is specified and the

Overwrite option is set to "Yes", new data is written beginning at the upper-left cell of the specifiedrange. Cells outside the specified range are not modified. If Overwrite is set to "Merge", you normallydo not specify a range. In this case, new data is appended to the specified sheet. If no sheet is

specified, a new worksheet is created.

When importing data from Excel, the range specifies the entire block of data to be imported. To

specify only the upper-left corner of the block (the number of columns and rows determined by theextent of the worksheet), follow the cell with a trailing colon (e.g. B3: ).

Access import and exportWhen exporting and importing from Access databases, the table name must be appended to the filename as:

d:\path\file.mdb!table!connect

where d:\path\file.mdb is the path of the Access database file, table is the name of an

existing or new table, and connect is an optional connection string that may be required to connect

to the specified data source. If Overwrite is set to "Yes", and the specified table exists, then the

table is cleared and new data is added. If Overwrite is set to "Merge", then new data is appended toan existing table.

Features for MultiValue Users 279

Copyright 2010-2011 Schellenbach & Assoc., Inc.

4.1.11 Transferring Data Between MultiValue Hosts

The FTPICK utility will transfer specified (or selected) Pick items from one MultiValue computer toanother. This transfer can be done in one step if you have two AccuTerm sessions open, connected toeach of the MultiValue host computers. AccuTerm will also let you transfer data from one host toanother using an intermediate file stored on your PC. This transfer requires two steps: transfer from firsthost to intermediate file, then transfer from the intermediate file to the second host.

Direct Host-to-Host (one step) transfer Host-to-Host transfer using Intermediate PC file (two step) FTPICK Options and Settings

4.1.11.1 Direct Host-to-Host file transfer

The direct transfer requires two sessions running on AccuTerm - one session connected to the filesource host (sending machine), and one session connected to the target host (receiving machine). If youcannot run two sessions, you must use an intermediate PC file to store the data temporarily (see Host-to-Host transfer using Intermediate PC file ).

To use the FTPICK direct transfer method, activate the AccuTerm session connected to the target host,and start FTPICK. When prompted:

(S)end, (R)eceive, (C)onfigure, (O)ptions, (H)elp or (E)xit ?

Answer R to receive files, then select the direct mode:

Receive (D)irectly from PICK file or from (I)ntermediate DOS file ?

by answering D. A panel titled "AccuTerm Pick-to-Pick File Transfer" will be displayed on the target

screen. You can cancel the Host-to-Host transfer at any time by pressing the ESC key while the targetsession is active.

Next, activate the AccuTerm session connected to the source host, or sending machine, and start FTPICK. When prompted:

(S)end, (R)eceive, (C)onfigure, (O)ptions, (H)elp or (E)xit ?

answer S to send files. Then enter the name of the source host file to be sent:

Enter PICK source file name:

Enter the name of the source host file which contains the items to be sent.

Enter source (Pick) item list:

Enter the item-IDs to be sent. If you do not enter item-IDs, any previously selected (SELECT, GET-LIST, etc.) items will be transferred; if you enter an asterisk (*), all items in the file will be transferred.

To specify a saved list, enter an open parenthesis followed by the list name. Separate item-IDs withblanks.

Send (D)irectly to PICK file or to (I)ntermediate DOS file ?

Answer D to send the file directly to the target machine.

AccuTerm 7 Help280

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Enter target PICK file name:

Enter the file name on the target machine into which the selected items will be written.

Once the target file name has been entered, the receiving session will be activated and the transferprogress will be displayed in the panel. When the transfer is complete, press the ESC key to terminatethe receiving FTPICK program, or activate the sending session to send another file.

4.1.11.2 Host-to-Host file transfer

If you cannot open one session to each MultiValue host machine, or if you want to send the same file toseveral target machines, you can save the data in an intermediate PC file. The procedure is similar tothe direct method, except that the send must be done first, and a PC file must be specified for both thesend and receive steps.

Step 1: Transferring Host items to an intermediate DOS fileOpen an AccuTerm session connected to the source machine, and start FTPICK. When prompted:

(S)end, (R)eceive, (C)onfigure, (O)ptions, (H)elp or (E)xit ?

answer S to send files. Then enter the name of the source file to be sent:

Enter PICK source file name:

Enter the name of the source file which contains the items to be sent.

Enter source (Pick) item list:

Enter the item-IDs to be sent. If you do not enter item-IDs, any previously selected (SELECT, GET-LIST, etc.) items will be transferred; if you enter an asterisk (*), all items in the file will be transferred.

To specify a saved list, enter an open parenthesis followed by the list name. Separate item-IDs withblanks.

Send (D)irectly to PICK file or to (I)ntermediate DOS file ?

Answer I to send the file to an intermediate PC file.

Enter intermediate DOS file name:

Enter the full PC file name of the intermediate file including drive letter and directory, if desired. Separatedirectory names in a full path using back-slashes.

Upon entering the PC file name, the selected items will be transferred to the specified PC file in aspecial format used by the FTPICK utility.

Step 2: Transferring From an Intermediate File to the Target HostOpen an AccuTerm session connected to the target machine, and start FTPICK. When prompted:

(S)end, (R)eceive, (C)onfigure, (O)ptions, (H)elp or (E)xit ?

Features for MultiValue Users 281

Copyright 2010-2011 Schellenbach & Assoc., Inc.

answer R to receive files. Then enter the name of the intermediate PC file which contains the desired

data:

Receive (D)irectly from PICK file or from (I)ntermediate DOS file ?

Answer I to retrieve data from an intermediate file.

Enter intermediate DOS file name:

Enter the full PC file name of the intermediate file including drive letter and directory, if desired. Separatedirectory names in a full path using back-slashes.

Enter target PICK file name:

Enter the file name on the target machine into which the retrieved items will be written.

If the intermediate PC file is in the correct format, the items contained in the file will be transferred andstored into the target host file.

4.1.11.3 FTPICK Options and Settings

One configuration setting (permanent) and option setting (temporary) is available for the FTPICK utility.To change configuration setting, enter C in response to the first prompt. A list of configuration settings

will be displayed:

Current parameter settings are:

1. Overwrite existing item........ Yes

Enter parameter number (1-1) to modify:

The "overwrite existing file" setting may be changed by entering the parameter number (1).

When using the direct mode, both the sender and receiver must have "Overwrite existing file" set to"Yes" in order for existing items to be overwritten. If either the sender or receiver has this settings set to"No", existing items will not be overwritten.

To change option setting, enter O in response to the first prompt. A list of option settings will be

displayed. Note that the default value of the options is stored in the configuration settings:

Current parameter settings are:

1. Overwrite existing item........ Yes

Enter parameter number (1-1) to modify:

An alternate way to set the value of a configuration or option setting is to answer the prompt with theparameter number, an equal sign, and the first letter of the value to which the parameter is to be set. For example, to set the first configuration parameter to "binary", respond to "Enter parameter..." with 1=Y

. This alternate method is useful in cases where the FTPICK utility is being "driven" by a PROC or byanother program using the EXECUTE statement.

AccuTerm 7 Help282

Copyright 2010-2011 Schellenbach & Assoc., Inc.

4.1.12 Integrating File Transfer Functions into Pick Applications

There are two ways to integrate AccuTerm file transfer functions into your applications: either call one ofthe supplied file transfer subroutines, described below, or use one of the command-line file transferprograms, passing parameters via STON or DATA statements.

File Transfer SubroutinesThere are 7 callable file transfer subroutines that are provided for integrating AccuTerm file transferfunctions with your applications:

FTSEND sends one or more items from the host to the PC.

FTRECV retrieves one or more files from the the PC.

FTEXPORT exports a specified or selected set of items from the host database to a PC file. Several fileformats are supported including delimited text, Excel worksheet and Access database table.

FTEXPORTDA exports a dynamic array from the host to a PC file. Several file formats are supportedincluding delimited text, Excel worksheet and Access database table.

FTIMPORT imports data from a PC file, worksheet or table, updating one or more items in the hostdatabase. The PC file being imported should be a database or table file, such as a spreadsheet,delimited text file, html table or other supported database.

DOSSVC performs three functions (each is optional). First, a "file" is sent to the PC; next a Windows orDOS command is executed (this may be a BATCH file); finally, a file is retrieved from the PC.

FTS performs a simple "file" transfer to or from the PC. The "file" (a dynamic array) to be sent to (orreceived from) is passed as an argument to the subroutine.

Command-line File Transfer UtilitiesAs an alternative to calling one of the subroutines, you can use the FT and FTD command-line programsin PROCs or BASIC programs using the EXECUTE statement. Responses to all of the prompts may be"stacked" and fed to the file transfer utility.

4.1.12.1 FTSEND

The FTSEND subroutine sends one or more items from the host to the PC. Each MultiValue itembecomes a file on the PC. The calling syntax is:

CALL FTSEND(MODE,HOST.FILE,HOST.IDS,REMOTE.PATH,REMOTE.FILES,ITEM.COUNT,BYTE.COUNT,STAT)

Input arguments:

MODE options separated by commas (first letter is sufficient):

KERMIT - use the Kermit file transfer protocol (recommended)

ASCII - use the ASCII file transfer protocol

OVERLAY - overwrites existing files

NO OVERLAY - skips existing files

Features for MultiValue Users 283

Copyright 2010-2011 Schellenbach & Assoc., Inc.

TEXT - convert AM to CR/LF

BINARY - no AM conversion

UNLIMITED - no item size limit (overrides "large item" configsetting)

LIMIT - 32K item size limit (overrides "large item" configsetting)

JOIN - joins large item (overrides "large item" config setting)

Y - perform OEM to ANSI character set translation

Z - no character set translation

HOST.FILE source file name on host

HOST.IDS source item list:

explicit item-ID list separated by AM

'*' (asterisk) to send all items in the file

null to use an active external select list

(SAVEDLIST to use a saved list

REMOTE.PATH target directory on the PC

REMOTE.FILES target file names (used to rename files):

explicit file name list separated by AM, corresponding to eachitem being sent

null to use the source item-ID as the target file name

Output arguments:

ITEM.COUNT number of items sent

BYTE.COUNT number of bytes sent

STAT null indicates success, otherwise an error message

4.1.12.2 FTRECV

The FTRECV subroutine retrieves one or more files from the the PC. Each PC file becomes a MultiValueitem. The calling syntax is:

CALL FTRECV(MODE,HOST.FILE,HOST.IDS,REMOTE.PATH,REMOTE.FILES,ITEM.COUNT,BYTE.COUNT,STAT)

Input arguments:

MODE options separated by commas (first letter is sufficient):

KERMIT - use the Kermit file transfer protocol (recommended)

ASCII - use the ASCII file transfer protocol

OVERLAY - overwrites existing files

NO OVERLAY - skips existing files

AccuTerm 7 Help284

Copyright 2010-2011 Schellenbach & Assoc., Inc.

TEXT - convert CR/LF to AM

BINARY - no CR/LF conversion

PRESERVE EXT - includes file extension in target item-ID

IGNORE EXT - removes file extension from target item-ID

UNLIMITED - no item size limit (overrides "large item" configsetting)

LIMIT - 32K item size limit (overrides "large item" configsetting)

JOIN - joins large item (overrides "large item" config setting)

Y - perform OEM to ANSI character set translation

Z - no character set translation

REMOTE.PATH source directory on the PC

REMOTE.FILES source file names, separated with AM; wildcard characters '*' and '?'are allowed.

HOST.FILE target file name on the host

HOST.IDS target item list (used to rename files):

explicit item-ID list separated by AM, corresponding to eachfile being received

null to use the source file name as the target item-ID

Output arguments:

ITEM.COUNT number of items received

BYTE.COUNT number of bytes received

STAT null indicates success, otherwise an error message

4.1.12.3 FTEXPORT

The FTEXPORT subroutine exports a specified or selected set of items from the host MultiValuedatabase to a PC file. You can specify which fields (attributes) to export. Several file formats, includingExcel worksheet and Access database table, are supported by FTEXPORT. The calling syntax is:

CALL FTEXPORT(MODE,HOST.FILE,HOST.IDS,REMOTE.FILE,ATTRS,ITEM.COUNT,BYTE.COUNT,STAT)

Input arguments:

MODE options separated by commas (first letter is sufficient):

KERMIT - use the Kermit file transfer protocol (recommended)

ASCII - use the ASCII file transfer protocol

OVERLAY - overwrites existing files

NO OVERLAY - skips existing files

MERGE - appends data to existing file, worksheet or table. Iffile, worksheet or table does not exist, it is created.

Features for MultiValue Users 285

Copyright 2010-2011 Schellenbach & Assoc., Inc.

DELIM=TAB - creates a tab-delimited text file

DELIM=COMMA - creates a comma-delimited text file (CSV)

DELIM=CRLF - merges multiple items into a single text file

DELIM=hex - creates a delimited text file with user-defineddelimiter

HEADER - first line of target file contains attribute names ascolumn headings

LABEL - first line of target file contains column headings fromfile dictionary

EXPLODE - repeats single-valued columns based on numberof multi-values in the record

Y - perform OEM to ANSI character set translation

Z - no character set translation

HOST.FILE source file name on host

HOST.IDS source item list:

explicit item-ID list separated by AM

'*' (asterisk) to send all items in the file

null to use an active external select list

(SAVEDLIST to use a saved list

REMOTE.FILE target file name on the PC. See FTD File Types for special file syntaxfor updating ranges of existing worksheets or specifying Accessdatabase tables.

ATTRS Multi-valued list of attributes to export. Use attribute numbers ordictionary names, or '*' (asterisk) for all attributes, or '+' (plus sign) forall attributes except the item-ID.target file names (used to renamefiles).

Output arguments:

ITEM.COUNT number of items exported

BYTE.COUNT number of bytes exported

STAT null indicates success, otherwise an error message

Note: it is possible to have partial success, such as when the user clicks the Abort button while atransfer is in progress. Check the ITEM.COUNT & BYTE.COUNT variables to test for partial success.

4.1.12.4 FTEXPORTDA

The FTEXPORTDA subroutine exports a dynamic array from the host to a PC file. The data to beexported is passed as a subroutine argument as a dynamic array. Each attribute is exported as a row inthe target file and each value is a column within the row. Several file formats, including Excel worksheetand Access database table, are supported by FTEXPORTDA. The calling syntax is:

CALL FTEXPORTDA(MODE,CONTENTS,ATTRS,REMOTE.FILE,ITEM.COUNT,BYTE.COUNT,STAT)

AccuTerm 7 Help286

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Input arguments:

MODE options separated by commas (first letter is sufficient):

KERMIT - use the Kermit file transfer protocol (recommended)

ASCII - use the ASCII file transfer protocol

OVERLAY - overwrites existing files

NO OVERLAY - skips existing files

MERGE - appends data to existing file, worksheet or table. Iffile, worksheet or table does not exist, it is created.

DELIM=TAB - creates a tab-delimited text file

DELIM=COMMA - creates a comma-delimited text file (CSV)

DELIM=CRLF - merges multiple items into a single text file

DELIM=hex - creates a delimited text file with user-defineddelimiter

HEADER - first line of target file contains attribute names ascolumn headings

Y - perform OEM to ANSI character set translation

Z - no character set translation

CONTENTS dynamic array containing data to be exported

ATTRS multi-valued list of column headings, if HEADER option is specified.

REMOTE.FILE target file name on the PC. See FTD File Types for special file syntaxfor updating ranges of existing worksheets or specifying Accessdatabase tables.

Output arguments:

ITEM.COUNT number of items exported

BYTE.COUNT number of bytes exported

STAT null indicates success, otherwise an error message

Note: it is possible to have partial success, such as when the user clicks the Abort button while atransfer is in progress. Check the ITEM.COUNT & BYTE.COUNT variables to test for partial success.

4.1.12.5 FTIMPORT

The FTIMPORT subroutine imports data from a PC file, worksheet or table. The PC file being importedshould be a database or table file, such as a spreadsheet, delimited text file, html table or otherdatabase table supported by AccuTerm. The calling syntax is:

CALL FTIMPORT(MODE,REMOTE.FILE,HOST.FILE,ATTRS,HDR.SKIP,ID.PREFIX,ID.START,ITEM.COUNT,BYTE.COUNT,STAT)

Input arguments:

MODE options separated by commas (first letter is sufficient):

KERMIT - use the Kermit file transfer protocol (recommended)

Features for MultiValue Users 287

Copyright 2010-2011 Schellenbach & Assoc., Inc.

ASCII - use the ASCII file transfer protocol

OVERLAY - overwrites existing files

NO OVERLAY - skips existing files

MERGE - merges data with existing items. Attributes notspecified in the ATTRS argument are not updated

DELIM=TAB - imports from a tab-delimited text file

DELIM=COMMA - imports from a comma-delimited text file(CSV)

DELIM=hex - imports from a delimited text file with user-defined delimiter

HEADER - first line of target file contains column headingswhich are used as dictionary names. ATTRS argument isignored if this option is specified. If first line of source containsa single asterisk, the imported item is created from all thecolumns in the source and no data conversions (date, mask,etc) are performed.attribute names as column headings

GENERATE - generates sequential item-IDs for importeditems. The item-ID is formed by concatenating the specifiedID.PREFIX to a sequential number starting with ID.START

Y - perform OEM to ANSI character set translation

Z - no character set translation

REMOTE.FILE source file on the PC. See FTD File Types for special file syntax forimporting ranges of worksheets or specifying Access database tables

HOST.FILE target file name on the host

ATTRS Multi-valued list of attributes to import. Use attribute numbers ordictionary names, or '*' (asterisk) for all attributes. Use '-' (minus sign)to skip a column in the source file. Use '0' (zero) for the column thatcontains the item-ID. If no columns contain item-ID, use theGENERATE option in the MODE argument to automatically generatesequential item-IDs for imported data. This argument is ignored if theHEADER mode option is present.

ID.PREFIX Prefix for automatically generated sequential item-IDs. This argumentis ignored unless the GENERATE mode option is present.

ID.START Starting number for automatically generated sequential item-IDs. Thisargument is ignored unless the GENERATE mode option is present.

Output arguments:

ITEM.COUNT number of items imported

BYTE.COUNT number of bytes imported

STAT null indicates success, otherwise an error message

Note: it is possible to have partial success, such as when the user clicks the Abort button while atransfer is in progress. Check the ITEM.COUNT & BYTE.COUNT variables to test for partial success.

AccuTerm 7 Help288

Copyright 2010-2011 Schellenbach & Assoc., Inc.

4.1.12.6 DOSSVC

The DOSSVC subroutine performs three functions (each is optional). First, a "file" is sent from the hostto the PC; next a Windows or DOS command is executed (this may be a BATCH file); finally, a file isretrieved from the PC. The data to be sent, PC file name, and Windows / DOS command are passed asarguments to the subroutine, and the received file is passed back to the calling program. The callingsyntax is:

CALL DOSSVC(CMD,SEND.PATH,SEND.FILE,SEND.DATA,GET.PATH,GET.FILE,GET.DATA)

Input arguments:

CMD DOS or Windows command to execute after sending the data to thePC. This argument may be null if no command should be executed.

SEND.PATH Target directory on the PC where SEND.DATA is saved beforeexecuting CMD.

SEND.FILE Target file name on the PC. If this argument is null, no data is sent tothe PC.

SEND.DATA Contents are stored in the target file on the PC before executingCMD.

GET.PATH Source directory on the PC where GET.DATA is retrieved from.

GET.FILE Source file name on the PC where GET.DATA is retrieved from. If thisargument is null, no data is retrieved from the PC after executingCMD.

Output arguments:

GET.DATA Contents of GET.FILE retrieved from the PC after executing CMD.

Note: the SEND.DATA and GET.DATA arguments must be different variables!

4.1.12.7 FTS

The FTS subroutine performs a simple "file" transfer to or from the PC. The "file" (a dynamic array) to besent to (or received from) is passed as an argument to the subroutine. The calling syntax is:

CALL FTS(MODE,PATH,FILE,ITEM,STAT)

Input arguments:

MODE options separated by commas (first letter is sufficient):

SEND - send file to PC

RECEIVE - retrieve file from PC

KERMIT - use the Kermit file transfer protocol (recommended)

ASCII - use the ASCII file transfer protocol

OVERLAY - overwrites existing files

NO OVERLAY - skips existing files

Features for MultiValue Users 289

Copyright 2010-2011 Schellenbach & Assoc., Inc.

TEXT - convert AM to CR/LF

BINARY - no AM conversion

PRESERVE EXT - includes file extension in target item-ID

IGNORE EXT - removes file extension from target item-ID

XLATE - perform OEM to ANSI character set translation

PATH directory on the PC where the item is sent to or retrieved from

FILE file name on the PC, including file extension, where the item is sentto or retrieved from.

ITEM body of item to send to PC

Output arguments:

ITEM body of item retrieved from PC

STAT null indicates success, otherwise an error message

4.2 MultiValue Server

When AccuTerm is connected to a MultiValue host, and the host is running a special server program, FTSERVER, installed with the AccuTerm host programs, other Windows applications (client applications)

can request and update data from the host database using the ActiveX Server object.

The Server object, in conjunction with the FTSERVER host program, provides a simple method for

performing common host database operations, including reading and writing files, executing commands,calling BASIC subroutines and converting data. The Server object can be used in any ActiveX enabledclient application, such as Microsoft Word, Excel, and Visual Basic.

When an AccuTerm session is in server mode, it is dedicated to providing MultiValue database servicesto client programs, and cannot be used as a normal terminal. A “Server Mode” status message isdisplayed while the session is in server mode. When server mode is terminated, normal terminalfunctions are resumed. To start server mode, enter “FTSERVER” at the TCL command line. To terminate

server mode, click the Cancel button below the server status message.

See also:Configuring the MultiValue Server Using the MultiValue Server The Server object

4.2.1 Configuring FTSERVER

After installing the host programs, use the FTSETUP utility to configure the server. Use FTSETUP togive your host a meaningful server name - the server name is shown in the file browser when openingfiles from the wED editor or GUI designer. You can also enable or disable individual services (read, write,convert, execute) using FTSETUP.

AccuTerm 7 Help290

Copyright 2010-2011 Schellenbach & Assoc., Inc.

4.2.2 Using the MultiValue Server

When AccuTerm is connected to a MultiValue host, and the host is running a special server program,FTSERVER (installed when you install the AccuTerm host programs), other Windows applications(client applications) can request and update data from the host database using AccuTerm's MultiValueServer object.

To access the MultiValue host, open an AccuTerm session to the desired host, and type FTSERVER at

the TCL command prompt. AccuTerm should respond by displaying a “Server Mode” status panelidentifying the host server name (you can configure the host server name by running the FTSETUPprogram from the ACCUTERM account and selecting menu option 6).

Next, start the client application (Word, Excel, VB, etc.) and open its VBA editor or equivalent tool(Tools Macro Visual Basic Editor or Developer Visual Basic for Office 2007). Add a reference to“AccuTerm 7 MultiValue Server” (Tools References). Note: it is not strictly necessary to add thereference, but doing so allows for automatic parameter type check ing and provides a slight performanceincrease. If you do not add the reference, declare your server object variable as type Object rather than

as atMVSvr7.Server. Next, add a module (Insert Module). In your Sub or Function, declare a variable

for the server object:

Dim MVServerObject As atMVSvr7.Server

Next, use the CreateObject() function to create an instance of the server object:

Set MVServerObject = CreateObject("atMVSvr7.Server")

Use the Connect method of the server object to establish a connection to the host:

If MVServerObject.Connect() Then …

The Connect method returns True if the connection is successful.

Use the ReadItem, WriteItem, AddItem, DeleteItem, UnlockItem, OConv, IConv, Execute,CallSub, Download, Upload, Export or Import methods to access the host database.

When you are finished using the server, you can Disconnect and destroy the server object:

MVServerObject.DisconnectSet MVServerObject = Nothing

If you are going to use the server object multiple times (perhaps from several Subs or Functions), youcan make the server object variable global (declare it before all Subs or Functions in the module). Thenyou could write a common function to create the server object and connect to the host:

Features for MultiValue Users 291

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Dim MVServerObject As atMVSvr7.Server

Private Function ConnectServer() As BooleanOn Error Resume NextIf Not MVServerObject Is Nothing Then

ConnectServer = TrueElse

Set PickServerObject = CreateObject(“atPickServer.Server”)

If Not PickServerObject Is Nothing ThenIf PickServerObject.Connect() Then

ConnectServer = TrueExit Function

ElseSet PickServerObject = Nothing

End IfEnd IfConnectServer = False

End IfEnd Function

All other Subs or Functions which require MultiValue host database access would first call the ConnectServer() function to make sure that services are available:

Public Function MVRead(File As String, ID As String) As StringIf ConnectServer() Then

MVRead = MVServerObject.ReadItem(File, ID) End If

End Function

After calling any of the server methods, check the result of the operation by examining the LastErrorproperty. To get a description of the error, use the LastErrorMessage property.

If MVServerObject.LastError ThenMsgBox “Server Error: “ & MVServerObject.LastErrorMessage

End If

Some standard errors returned by the FTSERVER program are shown below; other codes may bereturned from called MV/BASIC subroutines.

-1 End of file

201 Unable to open file

202 Unable to read item

223 Item already exists

235 Unable to update locked item

260 Unable to read locked item

261 Unable to write item

For further information on using the MultiValue server, a sample Excel worksheet and Visual Basicapplication are included in the Samples sub-directory.

AccuTerm 7 Help292

Copyright 2010-2011 Schellenbach & Assoc., Inc.

See also:Server object

4.2.3 Activating Other Accounts to use the Host Programs

After installing the host programs on the ACCUTERM (or other) account on your host system, you caneasily activate these programs on other accounts. To activate the programs on another account, performthe following steps:

1. Open a terminal session and connect to your MultiValue host system. Log on to the ACCUTERM

account (or other account where you have the host programs installed). Make sure you are at acommand prompt (TCL, ECL, etc.)

2. While at the command prompt use MultiValue ? Host Programs ? Account Setup from themain menu to start the host program account setup process. Confirm that you want to activate anaccount to use the host programs by clicking the Yes button.

3. The character-based FTSETUP program will start. From the FTSETUP menu, select option 1(enter 1, then press ENTER).

4. When prompted for the account name to activate, type the name and press ENTER.5. Repeat for any other accounts that you want to activate.6. To terminate the FTSETUP program, enter X at the FTSETUP menu, then press ENTER.

4.3 Object Bridge

Object Bridge is a Windows Object extension (ActiveX Automation) for MV/BASIC programs. This allowsa MV/BASIC program to manipulate nearly any (OLE) Automation compatible object on the Windowsmachine. Examples of Automation objects include Word documents, Excel spreadsheets, and anypublic objects implemented using Visual Basic.

Object Bridge consists of three components: an MV/BASIC interface implemented as a set of callablesubroutines, a “remote procedure call” (RPC) conduit (AccuTerm session) and a Windows objectmanager (installed with AccuTerm 7). The Object Bridge programs are installed (optionally) along withthe AccuTerm host programs. If you did not install the Object Bridge programs at the time you installedthe host file transfer programs, you can install them by typing LOAD-ACCUTERM-PROGS at TCL in theACCUTERM account.

Object Bridge allows a MV/BASIC program to create and destroy instances of Windows objects, set andretrieve property values from an object, invoke methods (subroutine calls and functions) on an object andprocess events produced by an object. The MV/BASIC subroutines which provide this functionality aredescribed in the following topics.

To use Object Bridge effectively, you may need some reference material in order to understand theobject model of the application you are trying to control (Word, Excel, VB, etc). Also, the ObjectBrowser tool available in Word or Excel (Macro -> Visual Basic Editor) or in the Visual Basic IDE is veryuseful.

The basic idea is this:

1) Initialize the Object Bridge environment2) Create an object3) Set property values, get property values or call subroutines or functions (invoke methods) on the

object

Features for MultiValue Users 293

Copyright 2010-2011 Schellenbach & Assoc., Inc.

4) Respond to desired events produced by the object5) Release the object

Initializing the Object Bridge EnvironmentResetting the Object Bridge EnvironmentCreating an ObjectReleasing an ObjectSetting Object PropertiesGetting Object PropertiesInvoking Methods (calling subroutines and functions on an object)Enabling Event ProcessingPolling for EventsCompleting Event Processing

4.3.1 Initializing the Object Bridge Environment

CALL ATINITOBJMGR(ERRMSG, OPTS)

Call this subroutine before using any other Object Bridge routine. This verifies that a compatible versionof AccuTerm 7 is connected, and initializes some important state information in the OPTS variable. Youmust maintain and pass the OPTS variable to all other Object Bridge routines.

If any of the Object Bridge routines encounter an error, the ERRMSG arugment will be set to indicate theerror, otherwise it will be null. Sometimes you can ignore an error, such as when attempting to set aproperty to an invalid value; other times you should call ATRESETOBJMGR to release all your objects andterminate the program.

4.3.2 Resetting the Object Bridge Environment

CALL ATRESETOBJMGR

This routine may be called if you want to release all objects and clean up the Windows object manager.This is useful if an error occurs and you want to abort all further use of any objects. You do not need tocall ATRELEASEOBJECT if you call ATRESETOBJMGR.

4.3.3 Creating an Object

CALL ATCREATEOBJECT(CLSID, OBJID, ERRMSG, OPTS)

This routine will attempt to create an object of the desired class (CLSID). Use the returned OBJID torefer to this object. When you no longer require access to the object, call ATRELEASEOBJECT passing thesame OBJID, otherwise the object remains present in Windows memory.

CALL ATGETOBJECT(OBJNAME, CLSID, OBJID, ERRMSG, OPTS)

This routine will attempt to get a reference to an existing object. To get a reference to a documentobject, specify the OBJNAME argument (usually a file name). To get a reference to an arbitrary, specifythe desired class (CLSID). Use the returned OBJID to refer to this object. When you no longer requireaccess to the object, call ATRELEASEOBJECT passing the same OBJID, otherwise the object remainspresent in Windows memory.

AccuTerm 7 Help294

Copyright 2010-2011 Schellenbach & Assoc., Inc.

4.3.4 Releasing an Object

CALL ATRELEASEOBJECT(OBJID, ERRMSG, OPTS)

This routine releases the specified object, as well as any objects "derived" from the specified object(OBJID). A dereived object may be an object returned by a call to ATGETPROPERTY or ATINVOKEMETHODwhen the return value is itself another object.

4.3.5 Setting Object Properties

CALL ATSETPROPERTY(OBJID, PROPNAMES, PROPVALUES, ERRMSG, OPTS)

Use this routine to set the values of one or more properties of an object. Specify the property names youdesire in the PROPNAMES argument, separated by attribute marks. The corresponding property valuesto set are passed in the PROPVALUES argument, also separated by attribute marks. If an error occurs,the error message will be in the corresponding attribute of the ERRMSG argument.

4.3.6 Getting Object Properties

CALL ATGETPROPERTY(OBJID, PROPNAMES, PROPVALUES, ERRMSG, OPTS)

Use this routine to get the values of one or more properties of an object. Specify the property names youdesire in the PROPNAMES argument, separated by attribute marks. The corresponding property valuesare returned in the PROPVALUES argument, also separated by attribute marks. If an error occurs, theerror message will be in the corresponding attribute of the ERRMSG argument.

Some properties are actually objects themselves. This is a "derived" object. In this case, you can usethe returned property value as an object ID in other Object Bridge calls. When the object which returnedthe "derived" object is released, all of its derived objects will also be released. Releasing the derivedobject will not release its creator.

4.3.7 Invoking Methods

CALL ATINVOKEMETHOD(OBJID, METHNAMES, METHARGS, RESULT,ERRMSG, OPTS)

Call this routine to invoke a "method" on the object. A method is a subroutine or function. A subroutinewill not return a value (RESULT will be null). A function will return a result in the RESULT argument.Multiple methods may be called. Separate method names in the METHNAMES argument by attributemarks. If a method requires arguments, the arguments are passed in the METHARGS parameter, witharguments for each method separated by attribute marks. Within the method arguments for one method,multiple arguments are separated by value marks. Results from multiple methods are returned in theRESULTS argument separated by attribute marks.

Some methods return objects. In this case, you can use the returned value as an object ID in otherObject Bridge calls. When the object which returned the "derived" object is released, all of its derivedobjects will also be released. Releasing the derived object will not release its creator.

4.3.8 Enabling Event Processing

CALL ATSETEVENT(OBJID, EVENTNAMES, ENABLE, ERRMSG, OPTS)

Many objects support events, which notify the object’s owner of certain actions, such as closing the

Features for MultiValue Users 295

Copyright 2010-2011 Schellenbach & Assoc., Inc.

program or clicking a button. Object Bridge only notifies the Pick application of those events which havebeen enabled by calling ATSETEVENT. Specify the event names in the EVENTNAMES arguments,separated by attribute marks. Specify whether the event is enabled (1) or disabled (0) in thecorresponding ENABLE argument, also separated by attribute marks.

4.3.9 Polling for Events

CALL ATGETEVENT(OBJID, EVENTNAME, ARGS, TIMEOUT, ERRMSG, OPTS)

Call this routine to wait for an event from any objects for which you have enabled events. You do notpass OBJID to this routine, it is passed back to your program when an event occurs so you can identifythe source of the event. EVENTNAME and ARGS are also passed back to your routine. Some eventsallow you to modify one or more of their arguments, for example, to cancel an operation. You mustpreserve OBJID, EVENTNAME and ARGS (except for modified values in ARGS) when processing theevent so they can be passed to ATENDEVENT when you complete processing the event. Event argumentvalues are separated by value marks. You must always call ATENDEVENT after processing the event. Youcan call other routines in between, but no more events can be processed, and the Windows object maybe roadblocked until you call ATENDEVENT.

If you want ATGETEVENT to return to your program even if an event did not occur, you can specify thenumber of milliseconds to wait for the event in the TIMEOUT parameter. Set TIMEOUT to zero to waitforever for the event.

4.3.10 Completing Event Processing

CALL ATENDEVENT(OBJID, EVENTNAME, ARGS, ERRMSG, OPTS)

Call this routine after handling an event. Pass back the OBJID, EVENTNAME and ARGS as they werereturned by the ATGETEVENT routine, except for any argument values you have modified.

You must call this routine after processing an event returned by ATGETEVENT, otherwise no other eventsmay be processed and the Windows application which implements the object may not be able toterminate.

Top Level IntroThis page is printed before a new

top-level chapter starts

Part

V

Copyright & Trademarks 297

Copyright 2010-2011 Schellenbach & Assoc., Inc.

5 Copyright & Trademarks

Copyright notice:

This document and the accompanying software are copyright 2010-2011 Schellenbach & Assoc., Inc. dba AccuSoft Enterprises and J. E.Goldthwaite & Assoc. Portions of the software are copyright 1993-2006Sax Software / Polar Engineering & Consulting, http://www.kenai.com/vb4tools. The accompanying software uses the Freeimage open sourceimage library. See http://freeimage.sourceforge.net for details.Freeimage is used under the Freeimage Public License version 1.0.

Trademark notices:

AccuTerm is a trademark of Schellenbach & Assoc., Inc.

DEC, VT52, VT100, VT220, VT320 and VT420 are trademarks of DigitalEquipment Corp.

IBM is a registered trademark of International Business MachinesCorp.

Microsoft and Microsoft Windows are registered trademarks ofMicrosoft Corp.

Pick and D3 are trademarks of Tiger Logic Corporation.

Print Wizard is copyright Rasmussen Software, Inc.

Procomm is a trademark of Datastorm Technologies, Inc.

Tektronix 4010/4014/4100 is a trademark of Tektronix, Inc.

UniVerse and UniData are trademarks of Rocket Software, Inc.

Viewpoint is a trademark of Applied Digital Data Systems.

Wyse-50 and Wyse-60 are trademarks of Wyse Technology.

Other trademarks and registered trademarks appearing in thisdocument are the property of their respective owners.

AccuTerm 7 Help298

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Index- . -.mdb 277

.xls 277

.xlsx 277

- A -Access 277

AccountName property 100

AccuSoft company information 69

ACCUTERM account 268, 270

AccuTerm constants 194

AccuTerm Menu Designer 25

AccuTerm Object 83

AccuTerm Object Reference 82

AccuTerm Programming 198

AccuTerm User Interface 23

Action property 97

Activate method 91, 148

Activating accounts 270, 292

Activating an evaluation version 23

ActiveSession property 84

ActiveX 82

Adapter script 53

Add method 160

AddClone method 160

AddItem 102

ADDS 41

ADDS 4000 226

ADDS Viewpoint 226

ADDS Viewpoint Enhanced 207

Advanced Pick 268

AIX 268

Altos 268

ANSI 41

AnsiAppCursor property 111, 165

AnsiAppKeypad property 111, 166

AnsiAutoprint property 166

Answerback 41

Answerback property 111, 166

AppActivate statement 76

AppClose statement 76

AppFind function 77

AppGetActive function 77

AppGetPosition statement 77

AppGetState function 77

AppHide statement 77

Application menu 58

Application mode 41

Application object 82

AppList statement 78

Apply method 163

AppMaximize statement 78

AppMinimize statement 78

AppMove statement 78

AppRestore statement 78

AppSetState statement 78

AppShow statement 79

AppSize statement 79

Arrange method 92

ASCII 54

ASCII Codes 260

AsciiDelay property 111, 166

AsciiEOL property 112, 167

ATCREATEOBJECT 293

ATENDEVENT 295

ATGETPROPERTY 294

ATINITOBJMGR 293

ATINVOKEMETHOD 294

ATRELEASEOBJECT 294

ATRESETOBJMGR 293

ATSETEVENT 294

ATSETPROPERTY 294

AttributeMask property 110, 165, 167

Attributes 45, 47

atwin.ini 261

atwin70.ini 261

Authentication 36

Auto Dialer 62

AutoAnswer property 112, 167

AutoClose property 85, 112

Auxiliary port 51, 67

- B -background image 198

Background picture 48, 112, 113, 167, 168

BackgroundPictureFile property 112, 113, 167, 168

BackgroundPictureMode property 112, 113, 167,168

Index 299

Copyright 2010-2011 Schellenbach & Assoc., Inc.

BackgroundTransparency property 112, 113, 167,168

Backspace 41

Band Properties 58

Bands 57

BandType property 96

Baud property 113, 168

Baud Rate 39, 40

Beep 51

BkspSendsDel property 113, 168

Blinking 47

BoldFont property 114, 169

Border colors 47

Border style 45, 47

Break Key 34, 36

Break method 148

BreakKeyAction property 114, 169

BytesIn property 114

BytesOut property 114

- C -Caché 268

CallSub method 102

CapsLock 48

CapsLock property 115

Caption property 96, 98, 115

Capture method 148

CaptureEnd method 149

CaptureFileName property 115

CaptureMode property 115

CaptureSource property 115

case inversion 268

Chain statement 79

Changed property 116

character encoding 50

character set 50

CharacterMapping property 169

Charset property 116, 170

Checked property 98

Cipher 36, 142, 143, 190

Citrix 18

Classic Windows 45

Clear method 149

ClearSelection method 149

Clipboard Settings 53

Close method 92, 149

Col property 116

Color 45, 47

Color property 116

Color Scheme 45

Color Settings 45, 47

Colors() property 117, 170

Cols property 118

COM 82

Com port 21

Comm Port 39

Command() function 79

Commands

Private 198

Common collection 85

Common property 85

Configuring AccuTerm 31

Configuring FTSERVER 289

Connect method 102

Connected property 118

Connection settings 33

Connection Wizard 20

Baud rate 21

Data bits 21

Handshake 21

Modem 22

Parity 21

Secure Shell 21

Serial Port 21

SSH 21

Stop bits 21

Telnet 21

Terminal Type 22

ConnectTimeout property 118, 171

Console 41, 257

Context Menu 57

Control Characters 260

Control Codes 260

Controlling AccuTerm with Scripts 75

Copy method 149

CopyHistory method 150

CopyPasteShortcut property 118

Copyright 297

CopySelMode property 119, 171

Count property 95, 96

Creating an Object 293

Creating SSH keys 37

CursorType property 119, 171

Custom installation 261

Customize Menu 57

AccuTerm 7 Help300

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Customizing the Menu 25

CustomMouseTable property 85, 87, 92, 93, 119

- D -D3 66, 267, 289

Data Bits 39, 40

Data Capture 24

ending 67

starting 67

DataBits property 119, 172

DataReady event 159

Debugging a Script 74

Default Colors 45

DefaultCaptureDir property 120, 172

DefaultXferDir property 120, 172

DefaultXferMode property 120, 172

DefaultXferOverwrite property 120, 172

Delete method 150

DeleteItem method 102

Deselect method 150

Device driver 51

Device Licensing 33

Device property 120, 173

Device settings 33

DeviceLicenseMode property 121, 173

Dial method 150

Dialog method 163

DialStatus property 121

Dial-up 22

Direct Host-to-Host file transfer 279

DisableAppMode property 121, 173

Disconnect 33

Disconnect method 103

Disconnect Warning 23

DockingArea property 96

DOSSVC 66, 267, 288

DOSSVC Subroutine 282

Download 63

Download method 103, 150

DSA key 37

Dtr/Dsr 39, 40

Duplex 33

Duplex property 122, 173

- E -Echo 33

Edit Menu 25

Emulate method 151

Emulation 41

Enabled property 98

Encryption 36

ErrorMode property 100

Euro character 50

Evaluation Version 23

Excel 277

Execute DOS command 198

Execute method 103

Export 274

Export method 103

ExtCols property 122, 174

Extension event 159

ExtMode method 122

ExtRows property 122, 174

- F -Features of AccuTerm 7 16

File Download 63

File Menu 25

File Transfer 63

Direct Host-to-Host file transfer 279

DOS file to Pick item 275

DOS file to Pick items 272

DOSSVC Subroutine 282

FT options 273

FT utility 66, 267

FTD options 276

FTD utility 277

FTEXPORT Subroutine 282

FTEXPORTDA Subroutine 282

FTIMPORT Subroutine 282

FTPICK options 281

FTPICK utility 279

FTRECV Subroutine 282

FTS Subroutine 282

FTSEND Subroutine 282

Host file to PC file 274

Host items to PC file 271

Indirect Pick-to-Pick transfer 280

Index 301

Copyright 2010-2011 Schellenbach & Assoc., Inc.

File Transfer 63

Integration with applications 282

PC file to Host file 275

PC file to Host items 272

Pick file to DOS file 274

Pick items to DOS files 271

Pick Server 289

File transfer protocol

ASCII 63, 66, 267

Kermit 63, 66, 267

Xmodem 63

Ymodem 63

Zmodem 63

File transfer protocol options 54

File Transfer Settings 54

File transfer wizard 66, 267

File Upload 64

FileExists function 79, 81, 104

FileName property 122

Fingerprint 37

FKeys() property 122, 174

Flow control 39, 40

Folder Settings 33

Font 50

Font Settings 50

FontName property 123, 174

FontSize property 124, 175

FT 66, 267

FT Options and Settings 273

FTD 66, 267

FTD file types 277

FTD Options and Settings 276

FTEXPORT 66, 267, 284

FTEXPORT Subroutine 282

FTEXPORTDA 285

FTIMPORT 66, 267, 286

FTIMPORT Subroutine 282

FTPICK 66, 267

FTPICK Options and Settings 281

FTRECV 66, 267, 283

FTRECV Subroutine 282

FTS 66, 267, 288

FTS Subroutine 282

FTSEND 66, 267, 282

FTSEND Subroutine 282

FTSERVER 56, 289

FTSETUP 289

FTWIZ 66, 267

Fujitsu 268

Full Duplex 33

FuncBarPos property 86

FuncBarStyle property 86

FuncBarVisible property 86

Function key programming 48

- G -General Settings 32

GetBlock method 151

GetSelection method 151

GetText method 151

Getting Object Properties 294

GmodeEnable property 124, 175

Green Screen 45

- H -Half Duplex 33

Handshake 39, 40

Handshake property 124, 175

Hangup method 152

Hardware and Software Requirements 17

Hardware Requirements 17

Height property 86, 124

Hide method 92, 152

History 24

History buffer 43

HistoryRows property 124, 175

host character set 50

host mouse reporting 54

Host programs 63, 66, 267, 268, 270, 280, 289, 292

HostName property 125, 175

HostPort property 125, 176

HostTermType property 125, 176

Host-to-Host file transfer 280

hWnd property 125

- I -Icon property 126

IConv method 104

ID property 126

IDN 34, 36, 144, 191

Image Selection 62

Import 275

AccuTerm 7 Help302

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Import method 104

Importing SSH keys 37

Initialize method 164

Initializing the Object Bridge Environment 293

Initiate connection 131

Input method 152

InputMode property 126

Installing the MultiValue File Transfer Programs 268

Installing the Pick File Transfer Programs 268

Integrating File Transfer Functions into PickApplications 282

Integrating Pick and DOS 66, 267

Internationalized Domain Names 34, 36, 144, 191

Internet Explorer 36

Introduction 15

Invoking Methods 294

IsConnected method 104

Item function 80

Item property 95

ItemCount function 80

ItemExists function 105

- J -jBase 66, 267, 268, 289

- K -Keepalive 34, 36, 145, 192

KeepaliveInterval property 126, 176

Kermit 54, 66, 267

KermitCRC property 127, 176

KermitEOL property 127, 177

KermitErrRetry property 127, 177

KermitInitRetry property 127, 177

KermitQuote property 127, 177

KermitRept property 128, 178

KermitTimeout property 128, 178

Key Fingerprint 37

Key Management 37

Key Types 48

Keyboard Commands 24

Keyboard Settings 48

- L -Language Extensions 76

LargeIcons property 86

LastError property 100

LastErrorMessage property 101

LayoutFilename property 87, 92, 93

Left property 87, 128

Legacy Colors 45

LegibleFont property 128, 178

License 23

Line Drawing 45, 47

Line function 80

LineCount function 80

Linux 41

Load method 164

LoadImage method 152

Locate method 153, 156

LockBaudRate property 128, 178

LockFKeys property 129, 178

LockKeyboard property 129

Loopback 33

- M -Macro Recorder 71

Main Menu 23, 57, 58

MapUpperFKeys property 129, 179

Master menu 57, 58

Master menu override 58

MDI 16, 19, 23

MDName property 101

Mentor 268

Menu 23, 25

Menu Bar 57, 58

Menu Designer 25, 57

Menu file name 58

Menu icon 62

Menu Object 94, 99

Menu property 87, 129

Menu Scope 57

Menu Structure 57

Menu Tool 59

menu.ini 261

messagerows property 130, 179

MM-MON 257

MnuBand Object 95

MnuBands property 95

MnuTool Object 97

MnuTools property 96

Modem 22, 40

Index 303

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Modem settings 40

Modern Windows 45

Monochrome 45

Mouse 43, 85, 87, 92, 93

host control of 198

mouse pattern file 54

mouse pattern matching 54

Mouse Settings 54

Mouse Wheel 43

MouseEnable property 130, 179

MouseTableAdd method 153

MouseTableLoad method 153

MouseTableReset method 153

Move method 92, 153

Multiple Document Interface 16, 19, 23

MultiValue 56, 66, 267, 268, 270, 289

MultiValue Database 290

MultiValue File Transfer Programs 268, 270

MultiValue Host Programs 270, 292

MultiValue Server 289, 290

mvBase 268

mvEnterprise 268

- N -Name property 97

New connection 20

NoAutoWrap property 130, 179

NoCloseWarning property 87

Normal installation 18

NormCols property 130, 180

NormMode method 130

NormRows property 130, 180

Northgate 268

- O -Object hierarchy 82

Object Reference 82

AccuTerm object 83

Creating new session 74

Events 73

Menu object 94, 99

Methods 73

MnuBand object 95

MnuTool object 97

Predefined session objects 74

Predefined sessions objects 74

Properties 73

Session object 74, 106

Sessions collection 160

Settings object 161

ObjectBridge 292

OConv method 105

OLE 82, 292

OnLine property 131

OpenFileName function 80

OpenInsight 268

OpenLayout method 92, 93

OpenSSH 37

Orientation 135, 139, 184, 187

Output method 153

OverrideModemConfig property 131, 180

- P -Page property 131

Pages property 131, 180

Palette 47

Palette() property 131, 180

paper size 136, 140, 184, 187

Paper source 136, 140, 185, 188

Parity 39, 40

Parity property 132, 181

Password 36

Paste method 154

PasteEOFChar property 133, 181

PasteEOFMode property 133, 182

PasteEOLChar property 133, 182

PasteEOLMode property 133, 182

Pause 24

Pause statement 81

PCL 53

PC-MON 257

Personal menu 57, 58

Phone book 33

Phone directory 62

PhoneBookName property 87

Pick 66, 267, 289

Pick Database 290

Pick File Transfer and Server Programs 66, 267

Pick File Transfer Programs 268, 270

installation 66, 267

Pick PC Console 257

Pick PC Monitor 41

AccuTerm 7 Help304

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Pick Server 289, 290

Pick-to-Pick file transfer 280

PlayMidi method 154

PlayWave method 154

Popup Menu 57, 58

Port property 133, 182

Portable installation 18

Power 95 268

Pre-configured installation package 261

Print adapter 53

Print adapter script 51

Print adapters 139, 141, 186, 188

Print Screen 24

Print Wizard 51, 139, 141, 186, 188

Printer driver 51

Printer paper size 136, 140, 184, 187

Printer Settings 51

PrinterClose method 154

PrinterColorMode property 134, 182

PrinterFontBold property 134, 183

PrinterFontItalic property 134, 183

PrinterFontName property 134, 183

PrinterFontSize property 135, 183

PrinterMode property 135

PrinterName property 135, 141, 189

PrinterOff method 154

PrinterOn method 155

PrinterOrientation property 135, 184

PrinterPaperSize property 136, 184

PrinterPaperSource property 136, 185

PrinterTimeout property 137, 185

PrintJobEject property 137, 185

PrintScreen method 155

PrintScreenBackground property 137, 186

PrintScreenEject property 138, 186

PrintWizard 53

Prism 41

Private Commands 198

Private Key 36

Procomm 226

Product activation 23

ProductLicenseType property 88

ProductName property 88

ProductRelease property 88

ProductSerialNumber property 88

Programming AccuTerm 198

ProtectAttr property 138, 186

Protected Attribute 43

PTERM 268

Public Key 36

Punycode 34, 36, 144, 191

- Q -QM 66, 267, 268, 289

Quiet installation 261

- R -R83 268

R91 268

Random function 81

ReadItem method 105

Readnext method 105

ReadProperties method 165

ReadText method 155

Reality 268

Recent file list 33

RecentListSize property 88

RegisteredCompany property 89

RegisteredLocation property 89

RegisteredUser property 89

Registration 23

Releasing an Object 294

Reset Menu 25

Reset method 155

ResetComm method 155

ResetTerm method 156

Resize method 93, 156

Resume 24

Revelation 268

Row property 116

Rows property 118

RSA key 37

Rts/Cts 39, 40

Running a Script 73

Running AccuTerm 7 19

- S -Save method 156, 165

SaveAs method 156

SaveFileName function 81

SaveLayout method 93

ScaleFont property 138, 186

Index 305

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Scaling 48

SCO 41

Screen print 51

Screen Settings 43

Screen Size 43

ScreenPrintAdapterScript property 139, 186

ScreenPrintMode property 139, 187

ScreenPrintOrientation property 139, 187

ScreenPrintPaperSize property 140, 187

ScreenPrintPaperSource property 140, 188

Script 76

Chain statement 73

closing 71

controlling AccuTerm 73

creating 71

debugging 74

editing 71

loading 71

Pause statement 73

printing 71

running 73

running from command line 73

running from function key 73

running from host computer 73

running from menu or toolbar 73

saved in layout file 73

saving 71

Script Language Extensions 76

Scripting 71, 82

Scripting language 16

ScrMode property 140, 188

Scrollback 24, 43

Scrollbar 43

ScrollHistory method 156

ScrollMode property 140, 188

Secure Shell 21, 36

Select method 156

Selection 25

Selection property 140

Sending a DOS File to a Pick File 275

Sending a Pick File to a DOS File 274

Sending DOS Files to Pick Items 272

Sending MultiValue Items to DOS Files 271

Sequoia 268

Serial Port 21, 39

Serial port settings 39

Server 290

ServerID property 101

ServerName property 101

Session 57

Session Bar 23, 57, 58

Session icon 43, 56

Session Object 106

Session title 43, 56

Session Window 23

SessionBarVisible property 89

Sessions Collection 160

Sessions property 89

Sessions.Add method 160

Sessions.AddClone method 160

Sessions.Count method 160

SetBlock method 157

SetExtension method 157

SetSelection method 157

SetText method 158

Setting Object Properties 294

Settings

Attribute Colors 47

Background 48

Colors 45, 47

File Transfer 54

Font 50

General 32

Keyboard 48

Mouse 54

Palette 47

Printer 51

Sound 51

Terminal Type 41

Settings method 138

Settings Object 161

SettingsDialog method 93

setup.ini 261

Shell function 81

Shortcut 19

Show method 94, 158

ShowErrs property 141

Silent installation 261

SingleInstance property 90

Slave port 51, 67

Slave printer 51, 67

SlavePrintAdapterScript property 141, 188

SlavePrinterName property 135, 141, 189

SlavePrintMode property 142, 189

Sleep statement 81

Software Requirements 17

AccuTerm 7 Help306

Copyright 2010-2011 Schellenbach & Assoc., Inc.

Sound property 142, 189

Sounds 51

Speaker 51

Splash screen 56

SSH 21, 36

SSH Cipher 143, 190

SSHAuth property 142, 189

SSHCipher property 142, 190

SSHKey property 143, 190

SSHUseOnlyPreferredCipher property 143, 190

SSHVersion property 143, 190

Standalone installation 18

Start capturing 67

Status Bar 23, 57, 58

Status bar icon 62

Status Lines 41

StatusLineVisible property 90

Stop Bits 39, 40

StopBits property 143, 191

Strip8th property 143, 191

Sub-Menu 59

System Colors 45

System Requirements 17

- T -TCL Rules 56

TCP/IP 34, 36

TcpIdn property 144, 191

TcpNoDelay Property 144, 191

Technical support 69

Tektronix 41

Tektronix Graphics 43

Telnet 21, 34

Telnet settings 34

TelnetBinary property 144, 192

TelnetBypass property 144, 192

TelnetKeepaliveIsNOP property 145, 192

Terminal Emulation 41

Terminal Server 18

Terminal Services 18

Terminal Type 22, 34, 36, 41

Terminal Type Settings 41

Terminate connection 131

Terminate method 94, 158

TermType property 145, 192

The ScreenBlock object 99

Themes 45

Timeout 34, 36

Title Bar 23

TitleFormat property 90

Tool Properties 59

ToolBar 23, 25, 57, 58

Toolbar icon 62

ToolbarVisible property 90

ToolID property 98

Tools 57, 59

Tools Menu 25

ToolTipText property 98

Top property 90, 145

TrackKeyboardState property 90

Trademark 297

Transparency 48

Type library 82

- U -U2 66, 267, 289

Ultimate 268

Unattended installation 261

Underline 47

Unicode 101

UnicodeDelimiters property 101

UniData 268

UniVerse 268

UniVision 268

UnloadImage method 158

UnlockItem method 106

Updating the MultiValue File Transfer Programs 270

Updating the Pick File Transfer Programs 270

Upload 63

Upload method 105, 158

UserName property 102

Using the FT Utility 271, 272

Using the FTD Utility 274, 275

Using the FTPICK Utility 279

Using the MultiValue Server 290

Using the Pick Server 290

- V -VARFILES 261

VBA 16, 71

ViaDuct 268

Video Pages 43

Index 307

Copyright 2010-2011 Schellenbach & Assoc., Inc.

View Menu 25

Viewpoint 41, 226

Viewpoint Enhanced 207

Visible property 91, 97, 99, 146

Visual attributes 45, 47

Visual Basic for Applications 71

Visual Styles 45, 47

- W -WaitFor method 159

wallpaper 112, 113, 167, 168, 198

Welcome screen 19

Width property 91, 146

Window Menu 25

Windows Terminal Server 18

WindowState property 91, 146

Wizard 25, 66, 267, 271, 272, 274, 275

Word function 82

WordCount function 82

Workspace 23

WriteItem method 106

WriteProperties method 165

WriteText method 159

Wyse 41

Wyse 50 207

Wyse 60 207

- X -XferBytes property 146

XferFiles property 146

XferStatus property 147

XModem 54

XmodemTimeout property 147, 193

Xon/Xoff 39, 40

- Y -YModem 54

YmodemTimeout property 147, 193

- Z -ZModem 54

ZmodemAuto property 148, 193

ZmodemTimeout property 148, 193