tputs(3cur)tputs(3cur)Name
tputs - pad and output string
Syntax
tputs(str, count, putc)
register char *str;
int count;
int (*putc)();
Description
This function adds padding to the string and outputs it. The string must be either a string variable or the return value from or The vari-
able is the number of lines affected; this is set to 1 if not applicable. The function is a style routine. The characters are passed to
one at a time.
See Alsoputchar(3s), terminfo(5), tparm(3cur)tputs(3cur)
Check Out this Related Man Page
putp(3XCURSES) X/Open Curses Library Functions putp(3XCURSES)NAME
putp, tputs - apply padding information and output string
SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib
-R /usr/xpg4/lib -lcurses [ library... ]
c89 [ flag... ] file... -lcurses [ library... ]
#include <curses.h>
int putp(const char *str);
int tputs(const char *str, int affcnt, int (*putfunc) (int));
PARAMETERS
str Is a pointer to a terminfo variable or return value from tgetstr(3XCURSES), tgoto(3XCURSES), tigetstr(3XCURSES),
or tparm(3XCURSES).
affcnt Is the number of lines affected, or 1 if not relevant.
putfunc Is the output function.
DESCRIPTION
The putp() and tputs() functions are low-level functions used to deal directly with the terminfo database. The use of appropriate X/Open
Curses functions is recommended for most situations.
The tputs() function adds padding information and then outputs str. str must be a terminfo string variable or the result value from tget-
str(), tgoto(), tigetstr(), or tparm(). The tputs() function replaces the padding specification (if one exists) with enough characters to
produce the specified delay. Characters are output one at a time to putfunc, a user-specified function similar to putchar(3C).
The putp() function calls tputs() as follows:
tputs(str, 1, putchar)
RETURN VALUES
On success, these functions return OK.
ERRORS
None.
USAGE
The output of putp() goes to stdout, not to the file descriptor, fildes, specified in setupterm(3XCURSES).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO libcurses(3XCURSES), putchar(3C), setupterm(3XCURSES), tgetent(3XCURSES), tigetflag(3XCURSES), terminfo(4), attributes(5), standards(5)SunOS 5.10 5 Jun 2002 putp(3XCURSES)
Hi,
I have to sql queries like
select sno,sname from temptable;
select deptno,dname from depttable;
In excel i want to specify the column number to which my output should be displayed.
please help me in this...
thanks in advance... (6 Replies)
Hi,
I'm using KSH and calling a SQL statement inside my script which returns more than 1 record.
Result=`sqlplus -s $DB_USER/$DB_PWD@$DB_STRING <<END
set echo off
set head off
spool junk.txt
select Name from abc where job = 'Manager';
spool off
exit;
END`
echo $Result
The above... (5 Replies)
function GetInput
{
print -n "Input"
read input
export INPUT=$input
}
export COMMAND="GetInput"
$COMMAND
echo "$INPUT"
$COMMAND | tee -a Log.log
echo "$INPUT"
The first one without "tee" works fine. echo "$INPUT" displays the values I type in for input. The second... (5 Replies)
Hi,
Im programming an interactive menu that verifies the exports of my oracle DB, and im having some trouble finding a process that outputs for example a green command line when the export terminated successfully. i have something like this
cat... (15 Replies)
I have two files, "ranked.txt" and "sorted.txt". Sorted.txt is a smaller subset from ranked.txt that is sorted in alpha order. However ranked.txt preserves the ranking of words I would like to keep.
How do I check the rank of every word in sorted.txt when matched to the original ranked.txt? I... (8 Replies)
Bonjour,
I have a large script with a lot of print statements and misc commands. Standard and error outputs are redirected like into the following code :
#!/usr/bin/ksh
LOG=/<some dir>/log
> $LOG
exec >>${LOG} 2>>${LOG}
print aaaaa
print bbbbb
print ccccc
...
some_cmd
That way,... (5 Replies)
I have a strange issue.
(awk '$3 == "nfs" { cnt++ }; END { print cnt }' /etc/fstab)
This is giving different count each time.
To test this, tried the one here
-bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l
151
-bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l
145... (6 Replies)
Hello,
I am trying to return a time multiple times from a file that has varying output just before the time instance, i.e.
cat jumped
cat jumped
cat jumped
time = 1.1
cat jumped
cat jumped
time = 1.2
cat jumped
cat jumped
time = 1.3
In this case i would like to output a time.txt... (6 Replies)
Hi All,
Im trying to compare the wc -l output with another set of rowcount outputs which returned from sql...
For Eg : Im storing the first outputs as below
<srccnt=`wc -l $HOME/*.csv | awk {'print $1'}`
and comparing this with the another set of outputs.
descnt=`seclect count(*)... (7 Replies)
Hello All,
I have the following command which works partially:
gzcat *2016-03-25_*gz | gawk -F"|" '
BEGIN{format = "%-10s %-13s %-17s %-35s\n";
printf format, "EVENT_TYPE","RESPONSE_CODE","INTERNAL_ERR_CODE","FLOWNAME";
printf format, "----------", "-------------", "-----------------",... (6 Replies)
Dears,
i am stuck here
i have 3 scripts running at one time and all the three scripts finish at different time and each script generate 1 file with different name. so i will have three files.
i dnt know which script finish first
i want to have a script which check if all the there files are... (6 Replies)