jquast / blessed

Blessed is an easy, practical library for making python terminal apps
http://pypi.python.org/pypi/blessed
MIT License
1.18k stars 71 forks source link

Correct "bottom of the screen" example #188

Closed pyfisch closed 3 years ago

pyfisch commented 3 years ago

Due to the line break emitted by the print statement the text doesn't appear at the bottom of the screen but one line above. Using end='' ensures the text appears at the bottom of the terminal window.

This took me a rather long time to figure out. :laughing:

codecov[bot] commented 3 years ago

Codecov Report

Merging #188 (dae84c9) into master (b22d3aa) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #188   +/-   ##
=======================================
  Coverage   95.32%   95.32%           
=======================================
  Files           9        9           
  Lines        1006     1006           
  Branches      160      160           
=======================================
  Hits          959      959           
  Misses         44       44           
  Partials        3        3           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b22d3aa...dae84c9. Read the comment docs.

jquast commented 3 years ago

Thanks, I think we should also update some docs at https://blessed.readthedocs.io/en/latest/location.html and spell out in the first paragraph, the usual need for end='' for print function, and from __future__ import print_function for python 2.