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.");
33 DlgBoxOk("Seems that it is all for conio.", "Let's test mouse routines.");
36 cputsxy(0, 2, CBOLDON "Now you can't see mouse (press any key)" CPLAINTEXT);
41 cputsxy(0, 3, CBOLDON "Now you see the mouse (press any key)" CPLAINTEXT);
46 // Get the current mouse coordinates and button states and print them
49 cprintf("X = %3d", info.pos.x);
51 cprintf("Y = %3d", info.pos.y);
53 cprintf("LB = %c", (info.buttons & MOUSE_BTN_LEFT)? '1' : '0');
55 cprintf("RB = %c", (info.buttons & MOUSE_BTN_RIGHT)? '1' : '0');
57 DlgBoxOk("Bye,", "Bye.");