clearscreen in c

hey there
i 'm a student and i'm learning C now
last year we leart to program in turbo pascal
there we used clrscr to clear the screen
how does i go in C
also gotoxy from turbo can it be don in C,

Comments

  • : hey there
    : i 'm a student and i'm learning C now
    : last year we leart to program in turbo pascal
    : there we used clrscr to clear the screen
    : how does i go in C
    : also gotoxy from turbo can it be don in C,
    :
    In Borland Turbo C these can be done with a library call of some sort (I didn't memorize it because I don't have Borland, sorry). There is no built in function for doing either of these in Microsoft VC++

    "Who is General Failure and why is he reading my hard disk?!"

  • : : hey there
    : : i 'm a student and i'm learning C now
    : : last year we leart to program in turbo pascal
    : : there we used clrscr to clear the screen
    : : how does i go in C
    : : also gotoxy from turbo can it be don in C,
    [b][blue][green]Windows :[/green]
    [italic]#include [/italic] and use the function as you know them in pascal.
    OR
    do it in assembler :)

    [green]Linux :[/green]
    clrscr() : use [italic]printf("e[2j");[/italic]
    gotoxy() : use [italic]printf("e[x;yH");[/italic] and replace x and y by your possition.

    By the way : Look at your Turbo C/C++ v3.0 help, everythings in there.
    [/blue][/b]

    Warlockzzz
    "I am not sleeping, I am slimply preparing myself to work!"

  • : : : hey there
    : : : i 'm a student and i'm learning C now
    : : : last year we leart to program in turbo pascal
    : : : there we used clrscr to clear the screen
    : : : how does i go in C
    : : : also gotoxy from turbo can it be don in C,
    : [b][blue][green]Windows :[/green]
    : [italic]#include [/italic] and use the function as you know them in pascal.
    : OR
    : do it in assembler :)
    :
    : [green]Linux :[/green]
    : clrscr() : use [italic]printf("e[2j");[/italic]
    : gotoxy() : use [italic]printf("e[x;yH");[/italic] and replace x and y by your possition.
    :
    : By the way : Look at your Turbo C/C++ v3.0 help, everythings in there.
    : [/blue][/b]
    :
    : Warlockzzz
    : "I am not sleeping, I am slimply preparing myself to work!"
    :
    : thanx warlockzzz

  • : : hey there
    : : i 'm a student and i'm learning C now
    : : last year we leart to program in turbo pascal
    : : there we used clrscr to clear the screen
    : : how does i go in C
    : : also gotoxy from turbo can it be don in C,
    : :
    : In Borland Turbo C these can be done with a library call of some sort (I didn't memorize it because I don't have Borland, sorry). There is no built in function for doing either of these in Microsoft VC++
    :
    : "Who is General Failure and why is he reading my hard disk?!"
    :
    : thanx

  • : : : hey there
    : : : i 'm a student and i'm learning C now
    : : : last year we leart to program in turbo pascal
    : : : there we used clrscr to clear the screen
    : : : how does i go in C
    : : : also gotoxy from turbo can it be don in C,
    : [b][blue][green]Windows :[/green]
    : [italic]#include [/italic] and use the function as you know them in pascal.
    : OR
    : do it in assembler :)
    :
    : [green]Linux :[/green]
    : clrscr() : use [italic]printf("e[2j");[/italic]
    : gotoxy() : use [italic]printf("e[x;yH");[/italic] and replace x and y by your possition.
    :
    : By the way : Look at your Turbo C/C++ v3.0 help, everythings in there.
    : [/blue][/b]

    Just wanted to point out the ANSI sequence is y;x and not x;y :)
  • : : : hey there
    : : : i 'm a student and i'm learning C now
    : : : last year we leart to program in turbo pascal
    : : : there we used clrscr to clear the screen
    : : : how does i go in C
    : : : also gotoxy from turbo can it be don in C,
    : [b][blue][green]Windows :[/green]
    : [italic]#include [/italic] and use the function as you know them in pascal.
    : OR
    : do it in assembler :)
    :
    : [green]Linux :[/green]
    : clrscr() : use [italic]printf("e[2j");[/italic]
    : gotoxy() : use [italic]printf("e[x;yH");[/italic] and replace x and y by your possition.
    :
    : By the way : Look at your Turbo C/C++ v3.0 help, everythings in there.
    : [/blue][/b]
    :
    : Warlockzzz
    : "I am not sleeping, I am slimply preparing myself to work!"
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories