Cleaning up corrupted screen

A program I have written has apparently written some escape characters
to the screen and now all I get is garbage on the screen. On Solaris, I
was able to solve this problem by executing “reset”. Is there a similar
utility for QNX 6.2.0?

…Stephen

echo the sequence ESC c 0x1b 0x63 which is the reset
sequence

Stephen Rasku wrote:

A program I have written has apparently written some escape characters
to the screen and now all I get is garbage on the screen. On Solaris, I
was able to solve this problem by executing “reset”. Is there a similar
utility for QNX 6.2.0?

…Stephen

I created the following program:

int main(int argc, char *argv[])
{

fprintf(stdout, “^[c”);
return(0);
}

but it didn’t work. (The ^[ is a verbatim escape).

…Stephen

In article <c13d1d$7aj$1@inn.qnx.com>, Warren Deitch wrote:

echo the sequence ESC c 0x1b 0x63 which is the reset
sequence

Stephen Rasku wrote:
A program I have written has apparently written some escape characters
to the screen and now all I get is garbage on the screen. On Solaris, I
was able to solve this problem by executing “reset”. Is there a similar
utility for QNX 6.2.0?

…Stephen

Try \f (form feed) that’s is a standard code that will work on all terminal
type.


“Stephen Rasku” <spr@shaw.ca> wrote in message
news:slrnc5uv7f.61q.spr@samantha.armispiansystems.ca

I created the following program:

int main(int argc, char *argv[])
{

fprintf(stdout, “^[c”);
return(0);
}

but it didn’t work. (The ^[ is a verbatim escape).

…Stephen

In article <c13d1d$7aj$> 1@inn.qnx.com> >, Warren Deitch wrote:
echo the sequence ESC c 0x1b 0x63 which is the reset
sequence

Stephen Rasku wrote:
A program I have written has apparently written some escape characters
to the screen and now all I get is garbage on the screen. On Solaris,
I
was able to solve this problem by executing “reset”. Is there a
similar
utility for QNX 6.2.0?

…Stephen

If you wrote ESC string to terminal, your program are very depend on what
terminal
your are on. The proper way is to use ncurses.

-xtang


Stephen Rasku <spr@shaw.ca> wrote in message
news:slrnc5uv7f.61q.spr@samantha.armispiansystems.ca

I created the following program:

int main(int argc, char *argv[])
{

fprintf(stdout, “^[c”);
return(0);
}

but it didn’t work. (The ^[ is a verbatim escape).

…Stephen

In article <c13d1d$7aj$> 1@inn.qnx.com> >, Warren Deitch wrote:
echo the sequence ESC c 0x1b 0x63 which is the reset
sequence

Stephen Rasku wrote:
A program I have written has apparently written some escape characters
to the screen and now all I get is garbage on the screen. On Solaris,
I
was able to solve this problem by executing “reset”. Is there a
similar
utility for QNX 6.2.0?

…Stephen

In article <slrnc5uv7f.61q.spr@samantha.armispiansystems.ca>,
spr@shaw.ca says…

I created the following program:

int main(int argc, char *argv[])
{

fprintf(stdout, “^[c”);
return(0);
}

Try cls :^)
http://ed1k.qnx.org.ru/utils/cls/cls.tgz

Eduard.