scrl(3XCURSES) X/Open Curses Library Functions scrl(3XCURSES)NAME
scrl, scroll, wscrl - scroll a window
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 scrl(int n);
int scroll(WINDOW *win);
int wscrl(WINDOW *win, int n);
PARAMETERS
n number and direction of lines to scroll
win pointer to the window in which to scroll
DESCRIPTION
The scroll() function scrolls the window win up one line. The current cursor position is not changed.
The scrl() and wscrl() functions scroll the window stdscr or win up or down n lines, where n is a positive (scroll up) or negative (scroll
down) integer.
The scrollok(3XCURSES) function must be enabled for these functions to work.
RETURN VALUES
On success, these functions return OK. Otherwise, they return ERR.
ERRORS
None.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO clearok(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5)SunOS 5.11 5 Jun 2002 scrl(3XCURSES)
Check Out this Related Man Page
curs_scroll(3CURSES) Curses Library Functions curs_scroll(3CURSES)NAME
curs_scroll, scroll, scrl, wscrl - scroll a curses window
SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library ... ]
#include <curses.h>
int scroll(WINDOW *win);
int scrl(int n);
int wscrl(WINDOW *win, int n);
DESCRIPTION
With the scroll() routine, the window is scrolled up one line. This involves moving the lines in the window data structure. As an optimiza-
tion, if the scrolling region of the window is the entire screen, the physical screen is scrolled at the same time.
With the scrl() and wscrl() routines, for positive n scroll the window up n lines (line i+n becomes i); otherwise scroll the window down n
lines. This involves moving the lines in the window character image structure. The current cursor position is not changed.
For these functions to work, scrolling must be enabled via scrollok().
RETURN VALUES
All routines return the integer ERR upon failure and an integer value other than ERR upon successful completion.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO curs_outopts(3CURSES), curses(3CURSES), attributes(5)NOTES
The header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h>.
Note that scrl() and scroll() may be macros.
SunOS 5.10 31 Dec 1996 curs_scroll(3CURSES)
Input file:
x A 10
y A 10
z A 10
x B 10
y B 12
z B 10
x C 0
y C 0
Required output:
x B 10
y B 12
z B 10
i.e. printing only that section (based on 2nd field) for which third field($3) is not equal for all the lines for that 2nd field. Please help (12 Replies)
I created two functions that output two random variables. I want to output them in the output file. But it does not seem to work.
# Function rgaussian1(r1, r2)
# Gaussian random number generator
function rgaussian1(r1, r2) {
pi = 3.142
v1 = sqrt( -2 * log(rand()) )
v2... (18 Replies)
Hi guys,
I have a file which contains like this:
Command was launched from partition 0.
------------------------------------------------
Executing command in server server6
Event Text Mib Trap Status
... (16 Replies)
Hi,
I have script lyk:
nawk '{{print $1,$2,$3}}' ./$DirectoryName/AuditGroupTableTableData_$TimeStamp.txt | while read a b c
do
echo $a
echo $b
echo $c
ret=`sqlplus -s $db_user/$db_pwd@$db_sid $a $b $c <<EOF
SET HEADING OFF
SET SERVEROUTPUT ON
SET FEEDBACK OFF
DECLARE
CNT ... (42 Replies)
Hi there. I am fairly new to scripting in BASH so please forgive my clumsy syntax and analogy as I try to explain what I am trying to accomplish.
I have a list of mundane functions that I currently call from a script file. What I wish to do is to accurately record into a log file the times that... (17 Replies)
Hi guys!
Consider the following PERL script,
#!/usr/bin/perl
my $userID = `whoami`;
open(TMP, ">user.txt");
print TMP "$userID";
close(TMP);
Run on the command line it works no problem.
Run using crontab it doesn't work.
Where do I go to check errors from crontab?
I've read things... (25 Replies)
Hi Guys,
Am tried with the mail & mailx command to send mail to other localhost machine, Which are all connected in a LAN. I can not able to send, Either it wont display any error message at that time and later am receiving a failure mail.. But i can send and receive (from-to) in my machine..... (28 Replies)
i have a log file...in that there is a data like
oss1 F:\app\data\misc\server 012-07-31 08:35:15 8.1.1.
oss2 F:\app\data\misc\server 012-07-31 08:36:15 8.1.2.
oss3 F:\app\data\misc\server 012-07-31 08:37:15 8.1.3.
pss4 F:\app\data\misc\server 012-07-31... (20 Replies)
Update:
The / file system (/dev/rdsk/c1t0d0s0) is being checked
fsck unable to stat
WARNING - unable to repair the / filesystem. Run fsck manually (fsck -F ufs /dev/rdsk/c1t0d0s0).
Root password for system maintenance (control-d to bypass):
I am unable to hit control-d to by pass.
I... (50 Replies)
I have a script (/home/admin/run_bkup.sh) that I can run manually to kick off an executable job. I want to run it in crontab, but it doesn't work.
Here's the script:
shell=/bin/bash
today=$(date +"%m-%d-%y")
/opt/CPsuite-R77/fw1/bin/upgrade_tools/upgrade_export mgt-svr-bkup-$today << EOF
y... (18 Replies)
Hello, This is my first posting and attempt to create a loop using Unix and awk commands. So far this is what I have:
awk -F, 'BEGIN {months ="AP01"; months ="AP02"; months ="AP03";
months ="AP04"; months ="AP05"; months ="AP06";
months ="AP07"; months ="AP08"; months ="AP09";
months... (25 Replies)
I have a text file that looks like this:
FIELD1, FIELD2, THIS IS FIELD3, FIELD4
FIELD1, FIELD2, THIS IS FIELD3, FIELD4
FIELD1, FIELD2, THIS IS FIELD3, FIELD4
I need it to turn it into an XML file to run against a custom application. My ultimate goal is for it to look like... (15 Replies)
Hi,
I have inherited this AIX 5.3 host. I'm unable to increase the /usr file system. It gives me this error.
What needs to be done to remove this error?
vios:/home/padmin$ chfs -a size=+128M /usr
0516-304 lquerypv: Unable to find device id 0002ef4df616f9690000000000000000 in the Device
... (14 Replies)