Test the PW command. This macro, in conjunction with the TSTY.TEC macro, test basic file input and output. The P, N, _ and A commands are special cases of basic file input and output, and should be tested after the PW and Y commands. This macro tests the PW command with empty edit buffers, full ones with the gap at the beginning, middle and end, and with lines containing CR/LF, ESC/CR/LF, FF, and VT, and empty lines, with the gap at various places. If this macro executes without error, the only thing that can be said is that the file output code hasn't bombed, not that file output works. You should run the TSTY.TEC macro after running this one. TSTY.TEC will read the files output by this macro and verify that the contents are correct. Of course, that macro tests file input, so if it fails, the error could be in either file input or file output code. Please strike any key to continue, or ^A to exit Test file output commands.   Test output when edit buffer is empty  ewE1.TpwefewE2.T5pwefewE3.Tpw5pwpwef  Test buffer full (contains "test"), CP at beginning of buffer  itestj ewTB1.Tpwef ewTB2.T5pwef ewTB3.Tpw5pwpwef ewTB4.Thpwef ewTB5.Thpef ewTB6.T2,3pef ewTB7.T2,3pwef  Test buffer full (contains "test"), CP at middle of buffer  2c ewTM1.Tpwef ewTM2.T5pwef ewTM3.Tpw5pwpwef ewTM4.Thpwef ewTM5.Thpef ewTM6.T2,3pef ewTM7.T2,3pwef  Test buffer full (contains "test"), CP at end of buffer  zj ewTE1.Tpwef ewTE2.T5pwef ewTE3.Tpw5pwpwef ewTE4.Thpwef ewTE5.Thpef ewTE6.T2,3pef ewTE7.T2,3pwef  Test buffer containing CR/LFs, CP at beginning of buffer  hkitest1 test2 test3 j ewCB1.Tpwef ewCB2.T5pwef ewCB3.Tpw5pwpwef ewCB4.Thpwef ewCB5.Thpef ewCB6.T2,3pef ewCB7.T2,3pwef  Test buffer containing CR/LFs, CP before a CR  s1 ewCBC1.Tpwef ewCBC2.T5pwef ewCBC3.Tpw5pwpwef ewCBC4.Thpwef ewCBC5.Thpef ewCBC6.T2,3pef ewCBC7.T2,3pwef  Test buffer containing CR/LFs, CP before an LF  c ewCBL1.Tpwef ewCBL2.T5pwef ewCBL3.Tpw5pwpwef ewCBL4.Thpwef ewCBL5.Thpef ewCBL6.T2,3pef ewCBL7.T2,3pwef  Test buffer containing CR/LFs, CP after an LF  c ewCAL1.Tpwef ewCAL2.T5pwef ewCAL3.Tpw5pwpwef ewCAL4.Thpwef ewCAL5.Thpef ewCAL6.T2,3pef ewCAL7.T2,3pwef  Test buffer containing CR/LFs, CP at end of buffer  zj ewCE1.Tpwef ewCE2.T5pwef ewCE3.Tpw5pwpwef ewCE4.Thpwef ewCE5.Thpef ewCE6.T2,3pef ewCE7.T2,3pwef  Test buffer containing ESC/CR/LFs, CP at beginning of buffer  hk@i/test1test2test3/j ewDB1.Tpwef ewDB2.T5pwef ewDB3.Tpw5pwpwef ewDB4.Thpwef ewDB5.Thpef ewDB6.T2,3pef ewDB7.T2,3pwef  Test buffer containing ESC/CR/LFs, CP before an ESC  s1 ewDBD1.Tpwef ewDBD2.T5pwef ewDBD3.Tpw5pwpwef ewDBD4.Thpwef ewDBD5.Thpef ewDBD6.T2,3pef ewDBD7.T2,3pwef  Test buffer containing ESC/CR/LFs, CP before a CR  c ewDBC1.Tpwef ewDBC2.T5pwef ewDBC3.Tpw5pwpwef ewDBC4.Thpwef ewDBC5.Thpef ewDBC6.T2,3pef ewDBC7.T2,3pwef  Test buffer containing ESC/CR/LFs, CP before an LF  c ewDBL1.Tpwef ewDBL2.T5pwef ewDBL3.Tpw5pwpwef ewDBL4.Thpwef ewDBL5.Thpef ewDBL6.T2,3pef ewDBL7.T2,3pwef  Test buffer containing ESC/CR/LFs, CP after an LF  c ewDAL1.Tpwef ewDAL2.T5pwef ewDAL3.Tpw5pwpwef ewDAL4.Thpwef ewDAL5.Thpef ewDAL6.T2,3pef ewDAL7.T2,3pwef  Test buffer containing ESC/CR/LFs, CP at end of buffer  zj ewDE1.Tpwef ewDE2.T5pwef ewDE3.Tpw5pwpwef ewDE4.Thpwef ewDE5.Thpef ewDE6.T2,3pef ewDE7.T2,3pwef  Test buffer containing FFs, CP at beginning of buffer  hkitest112iitest2 j ewFB1.Tpwef ewFB2.T5pwef ewFB3.Tpw5pwpwef ewFB4.Thpwef ewFB5.Thpef ewFB6.T2,3pef ewFB7.T2,3pwef  Test buffer containing FFs, CP before an FF  s1 ewFBF1.Tpwef ewFBF2.T5pwef ewFBF3.Tpw5pwpwef ewFBF4.Thpwef ewFBF5.Thpef ewFBF6.T2,3pef ewFBF7.T2,3pwef  Test buffer containing FFs, CP after an FF  c ewFAF1.Tpwef ewFAF2.T5pwef ewFAF3.Tpw5pwpwef ewFAF4.Thpwef ewFAF5.Thpef ewFAF6.T2,3pef ewFAF7.T2,3pwef  Test buffer containing FFs, CP at end of buffer  zj ewFE1.Tpwef ewFE2.T5pwef ewFE3.Tpw5pwpwef ewFE4.Thpwef ewFE5.Thpef ewFE6.T2,3pef ewFE7.T2,3pwef  Test buffer containing VTs, CP at beginning of buffer  hkitest111itest2 j ewVB1.Tpwef ewVB2.T5pwef ewVB3.Tpw5pwpwef ewVB4.Thpwef ewVB5.Thpef ewVB6.T2,3pef ewVB7.T2,3pwef  Test buffer containing VTs, CP before a VT  s1 ewVBV1.Tpwef ewVBV2.T5pwef ewVBV3.Tpw5pwpwef ewVBV4.Thpwef ewVBV5.Thpef ewVBV6.T2,3pef ewVBV7.T2,3pwef  Test buffer containing VTs, CP after a VT  c ewVAV1.Tpwef ewVAV2.T5pwef ewVAV3.Tpw5pwpwef ewVAV4.Thpwef ewVAV5.Thpef ewVAV6.T2,3pef ewVAV7.T2,3pwef  Test buffer containing VTs, CP at end of buffer  zj ewVE1.Tpwef ewVE2.T5pwef ewVE3.Tpw5pwpwef ewVE4.Thpwef ewVE5.Thpef ewVE6.T2,3pef ewVE7.T2,3pwef Done.  hkex