D Program code on CLS

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Wed Nov 13 20:46:50 PST 2013


On Thursday, 14 November 2013 at 03:35:59 UTC, Vincent wrote:
> how can I clear the screen for example I input first letter (A)
> and second letter (B) and show the result AB then after pressing
> enter it will clear the screen before it display again the Input
> first letter
>
>
> Input first letter : A
> Input second letter: B
> result: AB
> Input first letter: _
>
> it should not be displaying the previous output like this...
> After showing the result it should be cleared the previous 
> output
> before it shows the input first letter again...

I've been using std.process.system("cls"); which I guess is 
std.process.execute("cls"); now.

If you want something cross platform you're probably getting into 
ncurses like libraries.


More information about the Digitalmars-d-learn mailing list