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

Add ansi escape codes #199

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add ansi escape codes #199

wants to merge 9 commits into from

Conversation

csos95
Copy link

@csos95 csos95 commented Feb 15, 2022

No description provided.

@ponylang-main ponylang-main added the status - new The RFC is new and ready for discussion. label Feb 15, 2022
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Feb 15, 2022
@csos95 csos95 changed the title add rfc for adding ansi escape codes Add ansi escape codes Feb 15, 2022
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
Comment on lines 53 to 55
## Alternative to the rfc as a whole
These escape codes can simply be printed independently of whatever is supported by functions on `ANSI`.
Having them available on `ANSI` simply makes it so that users do not need to look the codes up themselves.
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand what you mean by this.

Copy link
Member

Choose a reason for hiding this comment

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

I do not understand this under the "Alternatives" section.

text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
Co-authored-by: Sean T Allen <sean@seantallen.com>
Copy link
Member

@rhagenson rhagenson left a comment

Choose a reason for hiding this comment

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

I left some comments mostly about use of default values, additional functionality, preventing errors, and my opinion on the direction I would prefer.

text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
Comment on lines 53 to 55
## Alternative to the rfc as a whole
These escape codes can simply be printed independently of whatever is supported by functions on `ANSI`.
Having them available on `ANSI` simply makes it so that users do not need to look the codes up themselves.
Copy link
Member

Choose a reason for hiding this comment

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

I do not understand this under the "Alternatives" section.

text/0000-add-ansi-escape-codes.md Outdated Show resolved Hide resolved
@jemc
Copy link
Member

jemc commented Feb 22, 2022

As discussed in the sync call, I'd like to request that the RFC include the method signatures for the new methods.

Comment on lines +39 to +40
- The `clear` function moves the cursor to the top left and then clears the screen.
This may have been done to create the same result that this escape code gave on DOS.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- The `clear` function moves the cursor to the top left and then clears the screen.
This may have been done to create the same result that this escape code gave on DOS.
- The `clear` function moves the cursor to the top left and then clears the screen.
This may have been done to create the same result that this escape code gave on DOS.

Copy link
Author

Choose a reason for hiding this comment

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

If that extra newline is added, the next line would be split out into a separate paragraph instead of being attached to the bullet point about the functionality of the current clear function.

Comment on lines +43 to +44
for the parameters.
To enforce the safety of these functions using the type system, four primitives
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
for the parameters.
To enforce the safety of these functions using the type system, four primitives
for the parameters.
To enforce the safety of these functions using the type system, four primitives

@SeanTAllen
Copy link
Member

During sync we discussed that we'd like to see more detailed information about function signnatures for new methods.

@SeanTAllen SeanTAllen removed the discuss during sync Should be discussed during an upcoming sync label Feb 22, 2022
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Feb 22, 2022
csos95 and others added 3 commits February 22, 2022 13:10
Co-authored-by: Borja o'Cook <ergl@users.noreply.github.com>
Co-authored-by: Sean T Allen <sean@seantallen.com>
Co-authored-by: Sean T Allen <sean@seantallen.com>
@SeanTAllen SeanTAllen removed the discuss during sync Should be discussed during an upcoming sync label Feb 22, 2022
Co-authored-by: Sean T Allen <sean@seantallen.com>
Copy link
Member

@rhagenson rhagenson left a comment

Choose a reason for hiding this comment

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

Thank you for splitting the modifications into a separate RFC! As well, thank you for adding example codes inline within the added escape codes list -- it is far easier to cross-reference the suggestions here with escape code tables now.

As this RFC stands I see no reason against these additions, although (as discussed on sync by Joe) I would like to see the API being suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status - new The RFC is new and ready for discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants