Console Selection
Important
This document describes console platform functionality that is no longer a part of our ecosystem roadmap. We do not recommend using this content in new products, but we will continue to support existing usages for the indefinite future. Our preferred modern solution focuses on virtual terminal sequences for maximum compatibility in cross-platform scenarios. You can find more information about this design decision in our classic console vs. virtual terminal document.
An accessibility application needs information about the user's selection in the console. To retrieve the current console selection, call the GetConsoleSelectionInfo function. The CONSOLE_SELECTION_INFO structure contains information about the selection, such as the anchor, coordinates, and status.