I need to clear the screen after each iteration but i cannot place clear where it needs to go to do that. I just keep clearing the screen before i can even see the choice I make.
Hi All
I'm currently writing a very simple UNIX script to process some work. The very first thing I do on my script is use the "clear" command.
how my file looks...
clear
echo "Return status: $?"
For some strange reason, the return status being returned is 1, not 0 as i expected.
... (2 Replies)
Hi,
I have a user that has tried to print a job several times and has now filled up the que. How do i delete all the jobs in the que and what is the command?:confused: (1 Reply)
hi,
i have an unix command which is as follows:
ctmfw /work/CDFC/landing/ZORC.txt CREATE 0 60 1 10 240
I think a txt file called ZORC gets created in the mentioned directory, i am not sure what 0 60 1 10 240 is. Is my understanding correct and also let me know what those numbers denote?... (4 Replies)
hi
Any one can help me. I am using Sun_Solaris. The command history set to 100 at .cshrc. I am unable to clear the command histoy. In Linux it is very easy by giving command
history -c
I could not find any such type command to clear the history.
Is there any such type of command for solaris.... (3 Replies)
I like using VIM with color tagging (using putty to SunOS). However, when I do an "export TERM=xterm-color", I can't make use of the clear command. Clear just has the same effect as pressing enter now. How can I fix this?
Also, does anyone know how to get the directories and file colors... (6 Replies)
Dear Friends ,
From 'last' or 'lastlog' command , I can get the last login informations of the users . now as a system admin , If I want to delete the log information from this 'last' 'lastog' command , then is it possible to do ?
plz inform ... ... (1 Reply)
I am unable to use clear or cls command on bash shell. I have recently installed Cygwin and am using that for practicing unix commands.
I see that I can use Ctrl + L to clear the screen. I created an alias in my .bashrc to do the same as
alias cls='^L'
This is how i defined other aliases ... (4 Replies)
Hello everyone,
My question is quite simple, even if I didn't find an answer. I would want a command (maybe clear with some options ?) that can do the following : clear completely the console, as it is when we start a console for the first time.
My problem is that I sometimes display a lot... (5 Replies)
Hi Folks,
I need to remove log files for six hours on Solaris. before i used to do for every 24 hours below is the code for 1 day older log files, now i tried using -mmin +360 but it says command not found.
Can someone please help me out!!!
part of the code:
LOG_FILE=`find /home/Logdir... (1 Reply)
Hi Folks,
When I type clear on my unix prompt on mac terminal, it prints the help menu of a program instead of cleaning the contents of the screen.
Also, I have used the following alias command to setup some shortcuts, but soon after I logout and login, these shortcuts doesn't work.
alias... (4 Replies)
Discussion started by: jacobs.smith
4 Replies
LEARN ABOUT NETBSD
tput
TPUT(1) BSD General Commands Manual TPUT(1)NAME
tput, clear -- terminal capability interface
SYNOPSIS
tput [-T term] attribute [attribute-args] ...
DESCRIPTION
tput makes terminal-dependent information available to users or shell applications. The options are as follows:
-T The terminal name as specified in the terminfo(5) database, for example, ``vt100'' or ``xterm''. If not specified, tput retrieves
the ``TERM'' variable from the environment.
tput outputs a string if the attribute is of type string; a number if it is of type integer. Otherwise, tput exits 0 if the terminal has the
capability and 1 if it does not, without further action.
If the attribute is of type string, and takes arguments (e.g. cursor movement, the terminfo ``cup'' sequence) the arguments are taken from
the command line immediately following the attribute.
The following special attributes are available:
clear Clear the screen (the terminfo(5) ``cl'' sequence).
init Initialize the terminal (the terminfo(5) ``is2'' sequence).
longname Print the descriptive name of the user's terminal type.
reset Reset the terminal (the terminfo(5) ``rs1, rs2, rs3'' and ``rf'' sequence).
EXIT STATUS
The exit status of tput is based on the last attribute specified. If the attribute is of type string or of type integer, tput exits 0 if the
attribute is defined for this terminal type and 1 if it is not. If the attribute is of type boolean, tput exits 0 if the terminal has this
attribute, and 1 if it does not. tput exits 2 if any error occurred.
EXAMPLES
tput cl cm 5 10 clear the screen and goto line 5 column 10
tput cm 6 11 DC 6 goto line 6 column 11 and delete 6 characters
SEE ALSO termcap(3), termcap(5)HISTORY
The tput command appears in 4.4BSD.
BUGS
tput can't really distinguish between different types of attributes.
Not all terminfo entries contain the reset sequence, so using the init sequence may be more useful.
BSD September 29, 2009 BSD