Skip to content

Add cls command to repl #52206

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: main
Choose a base branch
from
Open

Conversation

MrJithil
Copy link
Member

@MrJithil MrJithil commented Mar 25, 2024

add .cls command which will be very convinient for clearing the active screen

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. repl Issues and PRs related to the REPL subsystem. labels Mar 25, 2024
@MrJithil MrJithil force-pushed the addClsCommandToRepl branch 3 times, most recently from 2e75463 to afe8eea Compare March 26, 2024 05:34
@cola119
Copy link
Member

cola119 commented Mar 31, 2024

I understand the proposal for a new command, but given the existing ctrl+l to clear the screen, I'm curious about the unique use cases for it. Could you share the specific motivations and scenarios for this addition?

@MrJithil
Copy link
Member Author

MrJithil commented Apr 1, 2024

I understand the proposal for a new command, but given the existing ctrl+l to clear the screen, I'm curious about the unique use cases for it. Could you share the specific motivations and scenarios for this addition?

In most CLI and REPL having a command to clear the screen. People who is more using commands instead of shortcuts will a little hard to clear the screen while using Node.js REPL.
So, I though to provide .cls command to solve the issue.

@cola119 cola119 added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 6, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 6, 2024
@nodejs-github-bot
Copy link
Collaborator

@MrJithil MrJithil added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 24, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 24, 2024
@nodejs-github-bot
Copy link
Collaborator

repl: add cls command
`.cls` will clear the current repl screen
@MrJithil MrJithil force-pushed the addClsCommandToRepl branch from afe8eea to 1d743e5 Compare July 9, 2024 03:56
@MrJithil MrJithil requested a review from joyeecheung August 9, 2024 13:18
@MrJithil MrJithil requested a review from cola119 August 25, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run. repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants