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)
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)
I have a file with over 100,000 lines of data with looking to compare times of about 2000 lines to get a total time of a process. The lines of unique data are as follows.
FINER: CacSoapServer:reserveNetworkResource got the sessionID
and
INFO: Created CAC session ID
The command... (5 Replies)
Hi,
I have a little problem with counting lines. I know similar topics from this forum, but they don't resolve my problem. I have file with lines like this:
2009-05-25 16:55:32,143 some text some regular expressions ect.
2009-05-25 16:55:32,144 some text.
2009-05-28 18:15:12,148 some... (4 Replies)
I have large file with around 100k+ lines. I wanted to retain only the last 100 lines in that file. One way i thought was using
tail -1000 filename > filename1
mv filename1 filename
But there should be a better solution.. Is there a way I can use sed or any such command to change the... (9 Replies)
Hello guys,
I need help with a script for removing lines that does not satisfy a condition.
For example if a file has these lines:
aaaa bbbb cccc
aaaa bbbb cccc
dddd eeee ffff
gggg hhhh iiii
jjjj kkkk llll
aaaa bbbb cccc
jjjj kkkk lllll
dddd eeee ffff
dddd eeee ffff
Then I want... (4 Replies)
i all.
This one sounds so simple, but I can't get it to work. I need to delete lines with certain keywords from a file.
I have a file called defaultRules, with keywords:
IPSEC_AH
IKE_UDP
IPMP_TEST_IFACE2
Then, I have another file called rules.txt with some rules:
... (10 Replies)
Hi Everyone !
i want to take all the lines from a file that falls in between some date... and every line in a file has a time stamp..
---some text---- 01/Jan/2010 ---- some other text ----
---some text---- 10/Jan/2010 ---- some other text ----
---some text---- 20/Dec/2010 ---- some... (3 Replies)
Hello All,
I want to copy some lines from one file to other with following condition.
Only lines between two specified strings should copy.
Example :-
"My First String "
Some_Other_String ....
Some_Other_String ....
Some_Other_String ....
"My Second String"
So only... (5 Replies)
I have a variable
$line= Some text with ERR message
I want to get the value of the index of ERR and assign to a variable say $index
I expect the output
echo $index
16
I tried to use match function of awk, but unable to pass a string as input instead of a file
Also tried the following... (4 Replies)
Dear community,
I have to remove duplicate lines from a file contains a very big ammount of rows (milions?) based on 1st and 3rd columns
The data are like this:
Region 23/11/2014 09:11:36 41752
Medio 23/11/2014 03:11:38 4132
Info 23/11/2014 05:11:09 4323... (2 Replies)