Re: screen clearing in ANSI C



"Ben Pfaff" <blp@xxxxxxxxxxxxxxx> wrote in message
news:87mz6cmpw0.fsf@xxxxxxxxxxxxxxxxxxx
"David T. Ashley" <dta@xxxxxxxx> writes:

"Leslie Kis-Adam" <dfighter@xxxxxxxxxxx> wrote in message
news:ek7s1a$fjk$1@xxxxxxxxxxxxxxxxxx
Hi everyone!
Does anyone know, if it is possible to clear the screen in ANSI C?
If it is,then how?
Any help would be appreciated.

I don't know about ANSI ... but in the *nix world most shell programs
emulate the VT100 ... the following program will clear the screen.

This is exactly why off-topic questions should not receive
answers: often, the given "answers" are wrong.

Non-sequitur: even if the question were on-topic, there is no guarantee I
would have answered it correctly.

Additionally, my answer is "right". The short program will clear the screen
using Putty and probably also using SSH Secure Shell.

I also pointed the original poster to VTXXX materials ... a starting point.

I'm not sure there is a single method that will clear the screen on all
platforms.

In the Unix world, the shell has nothing to do with terminal
emulation.

That is like claiming that traffic lights have nothing to do with
automobiles ...

The shell (bash or similar) usually [ultimately] interacts with the user via
some kind of terminal emulator ... terminal emulation comes into it quite
quickly unless you only output and input sequential lines of text.

http://en.wikipedia.org/wiki/Unix_shell



.



Relevant Pages

  • Re: Color in vim /shell : TERM, Emulation, and SecureCRT
    ... In general I've succeeded (I have color highlights in my shell listings ... Just try to get a matching pair - what SecureCRT says it does, ... your $TERM is telling applications to send to SecureCRT. ... terminal emulator to agree on things like cursor position, ...
    (comp.os.linux.misc)
  • Re: Color in vim /shell : TERM, Emulation, and SecureCRT
    ... If I don't explicitly set TERM it defaults to vt100 in my shell. ... so TERM is derived from what my terminal emulator reports. ... xterm is the default for most things. ... that sets the foreground color to dark blue. ...
    (comp.os.linux.misc)
  • Re: System programming - creating a shell
    ... The shell is going to be very simple that can handle IO ... > Either you or your teacher is insufficiently knowledgable. ... > literally not possible to perform IO redirection or pipes in ANSI C. ... if you just pass them on to a local command processor ...
    (comp.lang.c)
  • Re: Getting rid of incoming email notifications
    ... notification appears in every terminal emulator that I have ... messing up whatever I have in the emulator. ... It must be something to do with the way the shell ... I'm not even sure what you mean by "notification ...
    (comp.os.linux.misc)
  • Re: Problem unravaling mixed system
    ... On Wed, 2003-11-05 at 14:08, Colin Watson wrote: ... > What terminal emulator and shell are you using? ... Get alt news/views films online http://www.cultureshop.org ...
    (Debian-User)