Skip to content
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

feat: add input validation #34

Merged
merged 1 commit into from
Feb 1, 2024
Merged

feat: add input validation #34

merged 1 commit into from
Feb 1, 2024

Conversation

roele
Copy link
Collaborator

@roele roele commented Jan 31, 2024

No description provided.

@roele roele linked an issue Jan 31, 2024 that may be closed by this pull request
self.term.move_cursor_right(self.cursor)?;

// if there is an error, move the cursor up from error message and right to the input
match self.err {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cursor handling is a nightmare. i wonder if i'm doing something wrong here but without being able to get the initial cursor position i don't see another way than working backwards from end of the output.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yikes.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's all I have to say lol

@roele roele force-pushed the issues/validation branch 2 times, most recently from af78ad5 to 9f80ff8 Compare February 1, 2024 02:27
@roele roele merged commit bb53720 into jdx:main Feb 1, 2024
1 check passed
@roele roele deleted the issues/validation branch February 1, 2024 12:50
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.

input - add support for validation
2 participants