Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Clearing the screen in QNX4
Ref. No. QNX.000009418
Category(ies) Development
Issue We are using QNX4, and Watcom C 10.6. We want to clear the text screen using code. How do we do that?

Solution It is not hard to clear the screen, just hard to find how to do it.

An example on how to do it from C code is:
---
#include <stdio.c>
void main() { printf("f");return; }
---

If you want to clear the screen from the command line it is just a simple line:

echo "f"

You can easily alias this so you can use it like a command:

alias clrscr='echo"f"'

See Also: printf() in Watcom C Library - N to Z
sh in QNX OS Utilities - N to Z