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)
I need to concatenate all lines of a file into 1 line.
input file containing lines like
001123456400001234563 107 001578000000000000000000000000000000000000 0000000021600
001123456912345600003 107 001578000000000000000000000000000000000000 0000000992000
i am using command
echo `awk... (6 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 All,
"Please read the below information carefully."
i have tried the below code for counting the number of lines present in text file ignoring blank lines
#! /bin/bash
clear
rdCount=0;
while read myline
do
if ; then
echo "line is empty"
else
echo $myline
let... (10 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)
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)
I want to put the 3 first lines into a single line separated by ;
I've tried to use Sed and Awk but without success. I'm new to Shell scripting.
Thanks in advance!
Input
112
DESAC_201309_OR_DJ10
DJ10
1234567890123;8
1234567890124;20
1234567890125;3
expected Output... (8 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)