select

fun select(anchor: Int, cursor: Int)

Selects from anchor to cursor, where the cursor is placed.