This tip is relevant if you run XyWrite 4 in multiple configurations of vDosXy using different screen dimensions. If you use the same screen dimensions always and everywhere, you don't need it -- although implementing it will do no harm, and will avoid errors if you ever change your vDosXy screen dimensions in the future. This technique ensures that Xy4's screen length and screen width (defaults SL and SW) always correspond to the LINS= and COLS= settings in vDosXy's CONFIG.TXT. The one-time setup requires three steps, each of which is critical and must not be omitted: Step 1 Remove any blank spaces in the LINS= and COLS= statements in your CONFIG.TXT files. For example, if you have: LINS = 43 COLS = 80 change them to LINS=43 COLS=80 Step 2 In your AUTOEXEC.TXT files, make sure that the PATH statement includes the directory that has vDos.exe. This technique will NOT work otherwise! Step 3 In XyWrite, CAll SYNC.INT (attached to this message) and MErge its contents into STARTUP.INT anywhere below the lines that load SETTINGS.DFL and any printer files (i.e., below any SETP command). Post-positioning is critical since SETTINGS.DFL and printer files may introduce SL and SW settings that differ from the vDosXy-compliant values. The code snippet to be added to STARTUP.INT reads the LINS= and COLS= settings in the active CONFIG.TXT file and sets Xy's SL and SW defaults to the same values. Once you have it, screen mismatches between Xy4 and vDosXy will become a thing of the past. PS: For U2 users, here's an ENCODEd version of SYNC.INT (decode with DECODE): XPLeNCODE v2.0 b-gin [UNTITLED] ;*; Sync Xy screen dimensions with vDosXy CONFIG LINS and COL S settings[cr|lf]{<}SX01,{<}VA=CONFIG.TXT,LINS={>}{>}{<}SX02, {<}VA=CONFIG.TXT,COLS={>}{>};*;[cr|lf]{<}IF{<}VA{021}01{>}+{< }VA{021}02{>}>1{>}[BX_]d sl={<}PV01{>},sw={<}PV02{>}[Q2_]{<}E I{>};*;[cr|lf];*;[cr|lf] -nd XPLeNCODE -- Carl Distefano cld@xxxxxxxx Attachment: SYNC.INT
Description: Binary data