Skip to content

Commit

Permalink
i think fix output overwriting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TabulateJarl8 committed Jul 10, 2021
1 parent 86a8c6d commit 0181c24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ ti842py is a TI-BASIC to Python 3 transpiler. A transpiler is a piece of softwar
- `Ans`

### Known issues
- Calling `Prompt` after `Output` will write to STDOUT over the Output

Issues can be found at [https://github.com/TabulateJarl8/ti842py/issues](https://github.com/TabulateJarl8/ti842py/issues)

# Installation

Expand Down
2 changes: 1 addition & 1 deletion ti842py/__version__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__title__ = "ti842py"
__description__ = "TI-BASIC to Python 3 Transpiler"
__url__ = "https://github.com/TabulateJarl8/ti842py"
__version__ = "0.7.6"
__version__ = "0.7.7"
__author__ = "Tabulate"
__author_email__ = "[email protected]"
__license__ = "GPLv3"
Expand Down
6 changes: 1 addition & 5 deletions ti842py/utils/output.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
import sys


def output(y, x, text):
sys.stdout.write("\x1b7\x1b[%d;%df%s\n\x1b8" % (y, x, text))
sys.stdout.flush()
print("\033[" + str(y) + ";" + str(x) + "H" + text)

0 comments on commit 0181c24

Please sign in to comment.