Homebrew How to clear the console on the 3DS?

  • Thread starter Thread starter pengawill
  • Start date Start date
  • Views Views 3,739
  • Replies Replies 7

pengawill

Member
Newcomer
Joined
Sep 15, 2015
Messages
10
Reaction score
2
Trophies
0
Age
30
XP
106
Country
United States
Hi, a bit of help would be much appreciated. I'm doing a programming project for a college class, and decided to make my own small text adventure game with the 3DS console. I'm using C, but my current progress could easily be migrated to C++ if need be.

How do you clear the damn console? Is it a command in relation to C or C++, or is the command proprietary to the 3DS?

Again, if someone could shed some light on the subject, I would really appreciate it. Also, if you'd like to check out my current progress, you can look at the .rar that's included at the bottom. There's a .3dsx, .smdh, and a .elf in the zip; most of you should know how to run them.
 

Attachments

I was porting a console text-based craps game that I made to the DS just last night (Might try a 3DS port later), and I used

Code:
printf("\e[1;1H\e[2J");

to clear the screen. Give it a try and see if it works.
 
What is the syntax for consoleClear? consoleClear()? Thanks :)
Seeing as this thread was made in 2015. The op and one person not being seen since 2016 and one who's last post in their post history was 2018. I dont think you are going to get a answer from any of them.
 
Just use the escape sequence "\x1b[2J" in printf() as mentioned above. You don't need consoleClear(). For more escape sequence tricks see the printing examples coming with the 3DS examples in your devkitARM installation
 
  • Like
Reactions: Momoro

Site & Scene News

Popular threads in this forum