Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tools] Fix heapsnapshot console crashes
`Console.cursorPosition` can return null when you are typing too fast because it is implemented by sending an escape code to the terminal and reading what it responds. This response is naturally intermingled with normal input and the implementation does nothing to guard against that. We do not really need to know the cursor position though we are simply interested in keeping cursor on the same row. But this can be achieved by sending _horizontal position absolute_ which only changes column rather than _cursor position_ which sets both row and column. [email protected] TEST=manually tested Change-Id: Ie1a064e37b90bc4529ac4f5c1259642ad5680ca6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388340 Commit-Queue: Slava Egorov <[email protected]> Reviewed-by: Martin Kustermann <[email protected]>
- Loading branch information