curs_scroll(3) Library Functions Manual curs_scroll(3)NAME
curs_scroll, scroll, scrl, wscrl - Scroll a Curses window
SYNOPSIS
#include <curses.h>
int scroll(
WINDOW *win ); int scrl(
int n ); int wscrl(
WINDOW *win,
int n );
LIBRARY
Curses Library (libcurses)
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
scrl, wscrl, scroll: XCURSES4.2
Refer to the standards(5) reference page for more information about industry standards and associated tags.
DESCRIPTION
The scroll routine scrolls the window up one line. This involves moving the lines in the window data structure. As an optimization, if the
scrolling region of the window is the entire screen, the physical screen is scrolled at the same time.
The scrl and wscrl routines, for positive n, scroll the current or specified window up n lines (line i+n becomes line i); otherwise, these
routines scroll the window down n lines. This operation involves moving the lines in the window character-image structure. The routines do
not change the current cursor position.
For the scroll, scrl, and wscrl functions to work, the scrollok option must be enabled.
NOTES
The header file <curses.h> automatically includes the header file <stdio.h>.
Note that scrl may be a macro.
RETURN VALUES
All routines return the integer ERR upon failure and OK upon successful completion.
SEE ALSO
Functions: curses(3), curs_outopts(3)
Others: standards(5)curs_scroll(3)
Check Out this Related Man Page
curs_scroll(3) Library Functions Manual curs_scroll(3)NAME
curs_scroll, scroll, scrl, wscrl - Scroll a Curses window
SYNOPSIS
#include <curses.h>
int scroll(
WINDOW *win ); int scrl(
int n ); int wscrl(
WINDOW *win,
int n );
LIBRARY
Curses Library (libcurses)
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
scrl, wscrl, scroll: XCURSES4.2
Refer to the standards(5) reference page for more information about industry standards and associated tags.
DESCRIPTION
The scroll routine scrolls the window up one line. This involves moving the lines in the window data structure. As an optimization, if the
scrolling region of the window is the entire screen, the physical screen is scrolled at the same time.
The scrl and wscrl routines, for positive n, scroll the current or specified window up n lines (line i+n becomes line i); otherwise, these
routines scroll the window down n lines. This operation involves moving the lines in the window character-image structure. The routines do
not change the current cursor position.
For the scroll, scrl, and wscrl functions to work, the scrollok option must be enabled.
NOTES
The header file <curses.h> automatically includes the header file <stdio.h>.
Note that scrl may be a macro.
RETURN VALUES
All routines return the integer ERR upon failure and OK upon successful completion.
SEE ALSO
Functions: curses(3), curs_outopts(3)
Others: standards(5)curs_scroll(3)
I have a file with data extracted, and need to insert a header with a constant string, say: H|PayerDataExtract
if i use sed, i have to redirect the output to a seperate file like
sed ' sed commands' ExtractDataFile.dat > ExtractDataFileWithHeader.dat
the same is true for awk
and... (10 Replies)
Hi i have a file which contains 2 lines, line 1 is static data. line 2 is a very large string(over 3000char or much more). in that string are tags which i want to delete.
e.g.
<order1>123</order1><tag1>data</tag1><new>1</new><order2>124</order2><tag1>data</tag1>
all one one line. now i... (5 Replies)
For example, I have a file with below lines containing VOB tags and VOB paths.
* /vobs/fts/FTSUSM20_VOB /ccvobsslx01/projects/vobs/eml/FTSUSM20_VOB
* /vobs/fts/FTS20_VOB /ccvobsslx01/projects/vobs/eml/FTS20_VOB
* /vobs/pmv/PMS_VOB /ccvobsslx01/projects/vobs/cpm/_/PMS_VOB
*... (4 Replies)
i am compiling a program called vasp on suse and get the following error. there are many more preprocess and ifort commands prior so i just grabbed the tail of the log file:
./preprocess <main.F | /usr/bin/cpp -P -C -traditional >main.f90 -DMPI -DHOST=\"LinuxIFC\" -DIFC -Dkind8 -DNGZhalf... (6 Replies)
Hello folks,
I have a data file in which each line has 54 numbers, and every 3 numbers are bracketed. So totally 18 pairs of brackets in each line.
A typical line is like:
{29.187000274658203 -16.148000717163086 -0.9380000233650208} {30.63800048828125 -15.977999687194824... (5 Replies)
Hi Experts,
I have a file which contain hundreds of records/lines. I want to insert the below header in the file after every 60 lines.
#Header
FirstName LastName Address
--------- ---------- ---------
Let say I saved the... (6 Replies)
i am searching how to implement vlookup functionality in AWK
i have file1 as
100,A
200,B
300,C
600,B
400,C
and file2 as
A,1
B,2
C,3
and the output should be
100,A,1
200,B,2
300,C,3
600,B,2
400,C,3 (7 Replies)
Hi,
I have a file about 100 lines. Each line is about 2000 characters (each line is fixed length). In middle of each line is following constant value
0000040029892586
Now, I want to go through each line and increment by 1.
So, line 1 will have 586
line 2 will have 587, line 3 will have... (4 Replies)
Hello,
I need help in extracting lines that meets following criteria
Grep for a particular word and return line before it, the line that has that word, and line after that
:::::::::::::::::::::::::
Subject
Hi there
My name is Jak
My last name is XYZ
Home Address... (5 Replies)
Hello,
This is very silly question as millions discussions on call-by-value vs call-by-reference for programming beginners, but I need to confirm my understanding.
#include<stdio.h>
void swap(int *p, int *q) //Line 3
{
int tmp;
tmp = *p;
*p = *q;
*q = tmp;
}
int... (15 Replies)
Hello,
This is related to the closed post in the forum for the installation of the same software called arachne, but with different error message:
In file included from ueberal/MiniSuperizer.cc:5:0:
./random/GnuRandom.h:54:5: error: ‘_G_uint32_t’ does not name a type
_G_uint32_t u;
^... (11 Replies)
Hello guys,
I would need to remove the last character ")" of a specific line. This can be from any line. Your help is appreciated. Below is the line.
HOSTNAME=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP))
Please help. (6 Replies)
Hi Guys,
How to achieve this in awk or sed:
Patterns: A.B. No. T-8346 or A.B. No. T-8xxx
will look like this:
Patterns: A.B. No. T-8346<br> or A.B. No. T-8xxx<br>
#cat file.txt
JHON VS. PETER, AGOO PET.
How Old Are Youthe file will look like this:
A.B. No. T-8346<br> January 01,... (10 Replies)
Hi all,
I have huge a tab-delimited file with the following format and I want to remove the duplicates according to their frequency based on Column2 and Column3.
Column1 Column2 Column3 Column4 Column5 Column6 Column7
1 user1 access1 word word 3 2
2 user2 access2 ... (10 Replies)
Hello,
I have a pipe separated file with two major lines. One is header and another is detail line. Header starts with H and Detail start with D.
Sample Content:
H|123456|Joes Watson|UK|4/5/2016|12/5/2016|3456|HC|NW||||||
D|123456|Joes... (13 Replies)