Skip to content

Commit

Permalink
Added more functionality to puts()
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackeryRSmith committed Mar 27, 2022
1 parent 7a96b2a commit e025849
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tercontrol.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,8 @@ def getkey():
# Quality of life functions #
#################################

def puts(string): sys.stdout.write(string); sys.stdout.flush()
def puts(*values, end=""):
for val in values:
sys.stdout.write(val)
sys.stdout.write(end)
sys.stdout.flush()

0 comments on commit e025849

Please sign in to comment.