ColdGrub1384 / LibTerm

iOS sandboxed terminal with Python, Lua and Clang
https://libterm.app
MIT License
639 stars 115 forks source link

Carriage return (\r) does not work #36

Closed ongyx closed 2 years ago

ongyx commented 4 years ago
Python 3.7.1 (default, Jun 23 2019, 10:58:12) 
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> print("spam\reggs")
spam
eggs
>>> 

Maybe it would be possible to overwrite the same line by detecting a \r carriage return. Tested on the latest Libterm version (5.1.3).