Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!decwrl!ucbvax!hplabs!hp-pcd!hpmcaa!nacer From: nacer@hpmcaa.mcm.hp.com (Abdenacer Moussaoui) Newsgroups: comp.os.os2 Subject: VioWrtTtyAtt() ? Message-ID: <10670009@hpmcaa.mcm.hp.com> Date: 27 Nov 89 20:38:03 GMT Organization: HP McMinville Division Lines: 22 API does not provide a "sequential" write procedure (ie. write to the screen from the last cursor position using a specified color). API VioWrtTTY() comes short of what I want to do so I decided to write the following macro. However it does not seem to work apparently VioWrtCharStrAtt() does not seem to move the cursor like VioWrtTTY does. Am I doing this write? Is there a work around using strictly APIs? Thank you. #define VioWrtTtyAtt( \ buf, \ buflen, \ attr, \ handle ) \ { USHORT usLin, usCol ; \ VioGetCurPos( &usLin, &usCol, 0 ) ; \ VioWrtCharStrAtt( buf, buflen, usLin, usCol, attr, handle ); \ } \ /*_11/22/1989______________________________________________________________*/ BTW. I am not interested in supporting TTY escape sequences