Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Use virtual terminal processing on Windows #473

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mislav
Copy link
Collaborator

@mislav mislav commented Nov 24, 2022

This removes:

  1. Manual conversion of ANSI escape codes to Windows syscalls, and
  2. Windows-specific Cursor implementation

in favor of the 3rd-party go-colorable module that implements all those conversions plus more. Furthermore, go-colorable will attempt to enable "virtual terminal processing" under Windows which is a mode where ANSI escape codes are recognized natively by the system, and no conversions whatsoever will be necessary.

Note: doesn't work yet. Not sure why, but any prompt is now hanging. I suspect the Windows-specific runereader is not liking the changes to Cursor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant