Effacer le Console

Author:


{filelink=12342}

public class EffacerConsole {
  public static void main(String args[])
  {
    String ANSI_CLS = "u001b[2J";
    String ANSI_HOME = "u001b[H";
    String ANSI_BOLD = "u001b[1m";
    String ANSI_AT55 = "u001b[10;10H";
    String ANSI_REVERSEON = "u001b[7m";
    String ANSI_NORMAL = "u001b[0m";
    String ANSI_WHITEONBLUE = "u001b[37;44m";
    System.out.println(ANSI_CLS);
    System.out.println       (ANSI_AT55 + ANSI_REVERSEON + "Bonjour Le Monde " + ANSI_NORMAL);
    System.out.println       (ANSI_HOME + ANSI_WHITEONBLUE + "Bonjour Le Monde" + ANSI_NORMAL);
    System.out.print       (ANSI_BOLD + "Appuyez sur une touche..." + ANSI_NORMAL);
    try {
System.in.read();
}
catch(Exception e){
}
    System.out.println(ANSI_CLS);
    }
  }

A Voir sur le même Sujet:

  • java aligner les nombres a droite en console
  • system.out.println effacer la console
  • effacer en console perl
  • effacer sorties console python
  • effacer une console en c++

Leave a Reply

Your email address will not be published. Required fields are marked *