formulahendry / formulahendry/vscode-code-runner

Weird output with os.system('clear')

Open
#475 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

- VS Code Version: 1.33.1
- OS Version: macOS 10.14.4
- Code Runner Version: 0.9.9

**Describe the bug**
Description of what the bug is.
it produces very weird output if os.system('clear') is used in a very simple hello world program
**To Reproduce**
Steps to reproduce the behavior:

1. import os
2. os.system('clear')
3. print("Hello Buddy")
4. Run with code-runner (using python3)

**Actual behavior**
Description of what happened actually.
When I run it with code-runner I get this output.
"[3JHello Buddy"

**Expected behavior**
Description of what you expected to happen.
I just expected to see a simple message below
"Hello Buddy"

**Screenshots**
If applicable, add screenshots to help explain your problem.

![code-runner-bug](https://user-images.githubusercontent.com/39600404/57582149-83304680-74c1-11e9-93bb-27725d4c0921.jpg)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.