Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialmatt haney
8,999 PointsRuby question...**personal project, not from lesson**
So I am writing a program, and I would like to be able to clear the console from the script. Is there any way to do this? For instanace
Question 1?\n answer\n Question 2?\n user_input\n submit input\n *clear console* return value
1 Answer
Seth Kroger
56,413 PointsA lot of the console specific functions are in a module called curses, including a clear() method: http://ruby-doc.org/stdlib-2.0.0/libdoc/curses/rdoc/Curses.html
matt haney
8,999 Pointsmatt haney
8,999 PointsThanks so much. Let me give it a go. Thanks for your time.