Team Ai
Datasetpublic

hschumann2/TempleOS-Source-Code

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes847downloads
CursorMove.txt40 linesDownload Raw Back to DolDoc
1 2U0 CursorMovementDemo()3{4  I64 i;5  for (i=0;i<100;i++) {6    "%03d ",i;7    "$CM,-4,1$";8    if (i%10==9)9      "$CM,4,-10$";10  }11 12  //+LX is relative to left side.13  //See <CTRL-l> with cursor-movement for all the flags.14  //Check "Quote" to set-up a cmd for in quotes.15  "$CM+LX,0,+10$\n";16}17 18CursorMovementDemo;19 20/*The word-wrap Off and On cmds are21$WW,0$ and $WW,1$.22 23You might need DocMax() to adjust24the cmd line window buf size.25It counts cmds, not lines.26 27The +H flag will hold-onto an entry28so it doesn't get pushed-out of the document.29This is useful for a $WW+H,1$ cmd.30 31See ::/Doc/DolDocOverview.DD for documentation on32all flags and cmds.33 34Note: the default page length is 66 lines35and branching back more than the page length36will rst the column to 1.  So, set page37length to a large number if you want to38branch back a long distance.39*/40