Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

clear(3cur) [ultrix man page]

clear(3cur)															       clear(3cur)

Name
       clear, wclear - clear window

Syntax
       #include <cursesX.h>

       int clear()

       int wclear(win)
       WINDOW *win;

Description
       The routine resets the entire default window to blanks and sets the current
       (y, x) coordinates to (0, 0).

       The routine resets the entire specified window to blanks and sets the current (y, x) coordinates to (0, 0).

       The  routine  assumes  that  the  screen may have garbage on it that it doesn't know about.  The routine first calls which copies blanks to
       every position in the default window, and then which clears the physical screen completely on the next call to for

       The routine is a macro.

Return Values
       The and functions return OK on success and ERR on error.

See Also
       clearok(3cur), erase(3cur), refresh(3cur)

																       clear(3cur)

Check Out this Related Man Page

printw(3cur)															      printw(3cur)

Name
       printw, mvprintw, mvwprintw, wprintw - formatted write to a window

Syntax
       #include <cursesX.h>

       int printw(fmt [, arg] ...)
       char *fmt;

       int wprintw(win, fmt [, arg] ...)
       WINDOW *win;
       char *fmt;

       int mvprintw(y, x, fmt [, arg] ...)
       int y, x;
       char *fmt;

       int mvwprintw(win, y, x, fmt [, arg] ...)
       WINDOW *win;
       int y, x;
       char *fmt;

Description
       The  routine  adds  a string to the default window starting at the current cursor position.  This routine causes the string that would nor-
       mally be output by to be output by

       The routine adds a string to the specified window starting at the current cursor position.  This routine causes the string that would  nor-
       mally be output by to be output by

       The  routine adds a string to the default window starting at the specified cursor position.  This routine causes the string that would nor-
       mally be output by to be output by

       The routine adds a string to the specified window starting at the specified cursor position.  This routine causes  the  string  that  would
       normally be output by to be output by

       All  these  routines  are analogous to It is advisable to use the field width options of to avoid leaving unwanted characters on the screen
       from earlier calls.

Return Values
       The and functions return OK on success and ERR on error.

See Also
       addstr(3cur), waddstr(3cur), printf(3s)

																      printw(3cur)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

PHP Module

Ok..i've installed Apache 1.3.14, and it runs... BUT...I can't figure out how to get the php-4.0.4 module to run, and i've read through the install file and EVERYTYHING, aafter about 10 attempts I pissed myself off enough to goto sleep...Can anyone suggest a place to look for a lil bit more help?... (10 Replies)
Discussion started by: ComTec
10 Replies

2. UNIX for Dummies Questions & Answers

chmod 777 on all directories below...how do I do that using the "find" command?

I've got 100 directories that each have 2 directories with in them. Structered like this: /home/domains/domain1/ through to /home/domains/domain100/ and those 2 directories mentioned above are here: /home/domains/domain1/directory1/ /home/domains/domain1/directory2/ through to... (7 Replies)
Discussion started by: Neko
7 Replies

3. UNIX for Dummies Questions & Answers

Minimize ksh

Dear, Have any command which can minimize the ksh windows? I use telnet to connect to server. Wilson (7 Replies)
Discussion started by: wilsonchan1000
7 Replies

4. UNIX for Dummies Questions & Answers

DISPLAY settiing

How to set the display environment variable through a script? i tried that using "setenv" but it gave me error. is there any idea? :confused: (19 Replies)
Discussion started by: sskb
19 Replies

5. UNIX for Dummies Questions & Answers

Testing for exit status

I understand what the exit status of a command is, but I am unclear on how to test for it. A brief example is all I really need. Thanks. (7 Replies)
Discussion started by: 98_1LE
7 Replies

6. Shell Programming and Scripting

PERL: clearing the screen

I would like to clear the screen in perl scripts without having to use system(). Is there a way to do this? (7 Replies)
Discussion started by: dangral
7 Replies

7. UNIX for Advanced & Expert Users

Clear log file in use.

Hai, I have a program which updates the result in a log file, as the program runs 24*7,the size of log file keeps on increasing. Can you help me with a shell command which will clear the content of a log file in use. 1) I tried tail -10 logfile > logfile ( the content is not changed ) 2) >... (10 Replies)
Discussion started by: coolbhai
10 Replies

8. Programming

How to clear the content of a pipe (STDIN) after it is written to another program?

PROGRAM A <-> PROGRAM B PROGRAM A sends data as STDIN ro PROGRAM B and when PROGRAM B is executed from PROGRAM A, it sends output back to PROGRAM A. This is implemented using 2 pipes (fd1 & fd2). The above process happens in a loop and during the second run, the previous data that had been... (10 Replies)
Discussion started by: vvaidyan
10 Replies

9. Shell Programming and Scripting

How to clear $1 when dot-running a script.

Here's my problem: the $1 parameter is getting permanently set when you dot-run a script - and I cannot unset it. Here's how to duplicate the problem: 1) Create a script called testme and put this simple command in the script: echo 1=$1 Save the script 2) Make the testme script... (12 Replies)
Discussion started by: HobieCoop
12 Replies

10. Solaris

problem with clearing a removed LUN from solaris

Hi I have a solaris 8 server that have LUN being removed from the server but it is still show up as error device in format command and in vxvm, i have already run devfsadm -C but it does not clear up the disk, is there other command to do this without reconfiguration boot? 34. c9t2d0... (9 Replies)
Discussion started by: robertngo
9 Replies

11. Shell Programming and Scripting

Moving Files from one folder to another folder

Hi, I have a folder which contain the log files. The folder may contain sub folders as well. I want to move the contents of the log folder to tmp folder periodically. I have used the command. LOG_DIR=/logs DESTINATION_DIR=/tmp/logs find ${LOG_DIR} -mtime +1 -exec mv {}... (10 Replies)
Discussion started by: farooqpervaiz
10 Replies

12. Red Hat

Does the pam_pwdfile module support clear text passwords?

I need to utilize pam_pwdfile in order to authenticate virtual users in vsftpd. I know I can utilize htpasswd2 -m to create a password file however it is vital since I am administrating several machines in our organization that the password generated be in clear text. Does anyone on here know if... (10 Replies)
Discussion started by: colbyshores
10 Replies

13. Programming

Unclear pointer and array

Hello, The purpose of the program is to print a sub string from the prompt inputs. I do not understand why char pointer does not work but char array will for line 40 and Line 41. ./a.out thisisatest 0 8 substring = "thisisat"And my code is: #include <stdio.h> #include <stdlib.h> #include... (29 Replies)
Discussion started by: yifangt
29 Replies

14. Shell Programming and Scripting

Find help in shell - that clears away duplicate files

I am so frustrated!!! I want a nice command that clears away duplicate files: find . -type f -regex '.*{1,3}\..*' | xargs -I## rm -v '##' should work in my opinion. But it finds nothing even though I have files that have the file name: Scooby-Doo-1.txt Himalaya-2.jpg Camping... (8 Replies)
Discussion started by: Mr.Glaurung
8 Replies

15. Solaris

How to clear a removed single-disk pool from being listed by zpool import?

On an OmniOS server, I removed a single-disk pool I was using for testing. Now, when I run zpool import it will show it as FAULTED, since that single disk not available anymore. # zpool import pool: fido id: 7452075738474086658 state: FAULTED status: The pool was last... (11 Replies)
Discussion started by: priyadarshan
11 Replies