Skip to content

Enter raw mode before 'getCursorPosition' is called #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

mrkct
Copy link

@mrkct mrkct commented Apr 27, 2025

Otherwise kilo will halt at startup because we'll block reading the response until the user types an explicit newline.

This can happen if, in getWindowSize, this condition is true ioctl(1, TIOCGWINSZ, &ws) == -1 || ws.ws_col == 0 and we have to get the terminal's size using raw vt100 commands.

Otherwise kilo will halt at startup because we'll block
reading the response until the user types an explicit newline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant