8 struct mouse_info info;
11 DlgBoxOk("Now the screen will be", "cleared.");
15 DlgBoxOk("Now a character will be", "written at 20,20");
20 DlgBoxOk("Now a string will be", "written at 0,1");
22 cputsxy(0,1, CBOLDON "Just" COUTLINEON "a " CITALICON "string." CPLAINTEXT );
24 DlgBoxOk("Write text and finish it", "with a dot.");
32 DlgBoxOk("Seems that it is all for conio.", "Let's test mouse routines.");
35 cputsxy(0,2,CBOLDON "Now you can't see mouse (press any key)" CPLAINTEXT);
39 cputsxy(0,3,CBOLDON "Now you see the mouse (press any key)" CPLAINTEXT);
44 /* Get the current mouse coordinates and button states and print them */
47 cprintf ("X = %3d", info.pos.x);
49 cprintf ("Y = %3d", info.pos.y);
51 cprintf ("LB = %c", (info.buttons & MOUSE_BTN_LEFT)? '1' : '0');
53 cprintf ("RB = %c", (info.buttons & MOUSE_BTN_RIGHT)? '1' : '0');
56 DlgBoxOk("Bye,", "Bye.");