How can I get the (row,column) position of the text cursor?

Open
#1,543 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

The issue names no file, test, or entry point. Start by locating prompt-toolkit's existing cursor and terminal-position APIs, then determine whether the requested Windows Terminal row and column values are exposed. Done means a clearly documented way to obtain the position or a scoped feature request with suitable test coverage.

Written by the indexing model from the issue text.

Description

I wan to to get the (Windows Terminal) (row, column) numbers of the last typed or printed character.
Can this be simply done with this toolkit? (Not the mouse pointer position!)

Dominant language
Python
Stars
10.6k
Forks
815
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prompt-toolkit/python-prompt-toolkit

All issues in prompt-toolkit/python-prompt-toolkit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.