Saiyine
Punto Com

CLI output staying at the same line

2006-10-25 02:57:53

Sometimes, we need our text mode's program to keep showing the data in a single line without feeding, just like the DOS era compressors (think PkZip).

This is really easy to do with console commands, like the one to come back to the begining of the line without line feeding.

        for (int i=0; i<10; i++)
        {
                System.out.print("this is line " + i + "\r");
        }
        System.out.println();   

Rollos antiguos

2006-10-25 02:57:15 - Salida en modo texto se mantiene en la misma linea.

2006-10-25 02:54:49 - Knowing what key has been pressed.

2006-10-25 02:54:05 - Saber que tecla ha sido pulsada.

2006-10-25 02:50:27 - Storing objects in PHP with serialize.

2006-10-25 02:49:52 - Guardar objetos en PHP con serialize.

Saiyine

Selfie of meHi! Welcome to Saiyine Punto Com where I talk about anything that goes through my mind!

Puedo prometer y prometo que a la mayor brevedad aquí irá un menú o algo asín.