How to clear the console on the 3DS?

Discussion in '3DS - Homebrew Development and Emulators' started by pengawill, Sep 24, 2015.

  1. pengawill
    OP

    pengawill Member

    Newcomer
    10
    2
    Sep 15, 2015
    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.
     

    Attached Files:

  2. loco365

    loco365 GBAtemp Guru

    Member
    5,458
    2,674
    Sep 1, 2010
    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.
     
  3. daxtsu

    daxtsu GBAtemp Guru

    Member
    5,536
    3,925
    Jun 9, 2007
    Antarctica
  4. pengawill
    OP

    pengawill Member

    Newcomer
    10
    2
    Sep 15, 2015
    United States
    daxtsu likes this.
  5. daxtsu

    daxtsu GBAtemp Guru

    Member
    5,536
    3,925
    Jun 9, 2007
    Antarctica
    You're welcome.