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

Backspace (\b) and Carriage Return (\r) not working as expected in C++ output #691

Open
TWJackXD opened this issue Oct 5, 2024 · 0 comments

Comments

@TWJackXD
Copy link

TWJackXD commented Oct 5, 2024

Hello,

I encountered an issue while using the Piston API with C++. When I run the following code:

#include <iostream>
using namespace std;

int main() {
    cout << "ABCD\b\b1234" << endl;
    return 0;
}

In other compilers, the output I get is:

AB1234

However, when I try the same code using the Piston API, it does not produce the expected result.

Expected Output:

AB1234

Actual Output:

ABCD1234

The backspace (\b) escape sequence does not seem to function as expected, and the carriage return (\r) appears to have similar behavior.

I would appreciate it if you could look into this issue or provide guidance on how to handle escape sequences like \b and \r with the Piston API. Thank you for your time and assistance!

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

No branches or pull requests

1 participant