| | |
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 |
accessdenied advanced apache application argv array beginner book builtin calculator change command converter countpasswordentry csv curved dan08 def dictionary dynamic edit enter event file float format function google homework import inches input jaunty java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysqlquery newb number numbers numeric obexftp output parameters parsing path phonebook plugin prime programming py2exe pygame pyopengl python random recursion redirect remote return reverse scrolledtext session simple skinning software sprite statictext string strings syntax table terminal text textarea threading time tlapse trick tuple tutorial twoup ubuntu unicode unit urllib urllib2 variable voip wordgame wxpython






