- Tocleardatafromthecurrentcursorpositiontheendofaline,youusetputel.Forexample,youcanloopthroughprojectsandupdatetheirstatusesbasedonthecurrentcursorposition(seeListing5).Althoughthemouseisarelativepointingdevice—movingthemousemovesthecursorbasedupont...
- 23414
- Crossonacirclegame,withthecursorcontrolusingcircleporkonaskewer.Asthecursorcontrolledbythemouseismovedacrossthescreen,thepinsriseandfalltorepresentthetextacrosswhichtheyaremoving....
- 10582
- Therearealsosomethoughtfultouches-liketheblinkingcursor.Ratherthanstareatablinkingcursorwaitingpatientlyforsomeindicationthatalliswell,youcannowinsertaprobetogiveyoureal-timefeedback.IfyouinsteaduseGetString,samething:blinkingcursor,thefunctionisjust...
- 28861
- Loopthroughthecursor.Usecursorhintingtoindicatepliancy.Sometimeschargedcursorprogramsforgettochangetheappearanceofthecursor.Achargedcursoralsodemandsgoodcancelidioms.Otherwise,howdoyouharmlesslydischargethecursor?Thedragcursormustvisuallyidentifythes...
- 23519
- Someframeworksalsoprovideaseriesofstandardizedkeycodesthatrepresentkeyboard-basedevents(suchashittingtheEscapekey,Returnkey,cursorkeys,andsoforth).Thegameoperate:Passgame.Thecursorkey"←"meantoleftshiftmove,"→"meanthatmoverightwards.Thereiscerta...
- 13740