| | |
Text Wrap in Terminal
![]() |
•
•
Join Date: Dec 2008
Posts: 5
Reputation:
Solved Threads: 0
Hello, I have a text-based program (non-GUI) that would run solely inside the workspace terminal. Within this program there are hundreds of "print statements" showing really long texts.
e.g.
print "This is a really really really really really really really really really really really really really really really really really really long sentence."
Is there a way (e.g. a class) that I can use to wrap all outputted text (e.g. 70 characters long per line) around the workspace terminal? It would be perfect if I can create a class that runs in the background and wraps the texts automatically without calling it every time I use a print statement.
Thanks a lot!
e.g.
print "This is a really really really really really really really really really really really really really really really really really really long sentence."
Is there a way (e.g. a class) that I can use to wrap all outputted text (e.g. 70 characters long per line) around the workspace terminal? It would be perfect if I can create a class that runs in the background and wraps the texts automatically without calling it every time I use a print statement.
Thanks a lot!
![]() |
Similar Threads
- Help with automatic update problem and more (Viruses, Spyware and other Nasties)
- Doubts (Computer Science)
- Passing a filestream, how? (C++)
Other Threads in the Python Forum
- Previous Thread: urllib - check if web page exists
- Next Thread: Pattern / Image matching
| Thread Tools | Search this Thread |
alarm ansi app assignment avogadro backend beginner binary bluetooth character cipher cmd customdialog cx-freeze data decimals dictionary directory dynamic error exe file float format function generator getvalue gnu graphics halp heads homework http ideas import input ip itunes java keycontrol leftmouse line linux list lists loop maintain maze millimeter module mouse number numbers output parsing path pointer prime programming progressbar push py2exe pygame python queue random recursion schedule screensaverloopinactive script scrolledtext slicenotation sqlite ssh statistics string strings sudokusolver sum text thread threading time tlapse tuple tutorial ubuntu unicode urllib urllib2 variable variables ventrilo vigenere web webservice wikipedia write wxpython xlib






