Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

scroll(3cur) [ultrix man page]

scroll(3cur)															      scroll(3cur)

Name
       scroll - scroll window

Syntax
       #include <cursesX.h>

       int scroll(win)
       WINDOW *win;

Description
       The window is scrolled up one line.  This involves moving the lines in the window data structure.

       You  would not normally use this routine as the terminal scrolls automatically if is enabled.  A typical case where might be used is with a
       screen editor.

Return Values
       The function returns OK on success and ERR on error.

See Also
       scrollok(3cur)

																      scroll(3cur)

Check Out this Related Man Page

scroll(3NCURSES)														  scroll(3NCURSES)

NAME
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); 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 may be scrolled at the same time. For positive n, the scrl and wscrl routines 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 VALUE
These routines return ERR upon failure, and OK (SVr4 only specifies "an integer value other than ERR") upon successful completion. X/Open defines no error conditions. This implementation returns an error if the window pointer is null, or if scrolling is not enabled in the window, e.g., with scrollok. NOTES
Note that scrl and scroll may be macros. The SVr4 documentation says that the optimization of physically scrolling immediately if the scroll region is the entire screen "is" per- formed, not "may be" performed. This implementation deliberately does not guarantee that this will occur, to leave open the possibility of smarter optimization of multiple scroll actions on the next update. Neither the SVr4 nor the XSI documentation specify whether the current attribute or current color-pair of blanks generated by the scroll function is zeroed. Under this implementation it is. PORTABILITY
The XSI Curses standard, Issue 4 describes these functions. SEE ALSO
ncurses(3NCURSES), outopts(3NCURSES) scroll(3NCURSES)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Man command

I know what the man command does and I know how to use it, but i am trying to find an answer to a question. When you run man on an other command it will give you the first page on your screen and then you hit the space bar and it brings up the second page. What command option would I use if I... (5 Replies)
Discussion started by: shipoffools
5 Replies

2. UNIX for Dummies Questions & Answers

Is there a way scroll text instead of page?

Is there a way to slowly scroll the output of a file instead of page or cat ? Instead of one page at a time, I would like to slowly scroll the displayed output of the file. (12 Replies)
Discussion started by: darthur
12 Replies

3. Shell Programming and Scripting

Vi horizontal scrolling

I have to look through logfiles where lines are several hundred characters long and if I open the log in Vi it automatically word wraps the line. In Vim you can use the -nowrap option to stop this, but how can you do this in Vi? I ask because I don't want to see the whole line, just the first few... (8 Replies)
Discussion started by: rupweb
8 Replies

4. UNIX for Dummies Questions & Answers

scroll bars in Exceed X-windows

I am using this as my command line in Hummingbird Exceed XSession: xterm -ls -geometry 150x60 -display @D -bg white -fg black The problem is that I need scroll bars. Any ideas on what to add? (7 Replies)
Discussion started by: yankee428
7 Replies

5. UNIX for Dummies Questions & Answers

missing scrollbar

Hi, My tcsh window doesn't have a scrollbar, so I don't get a lot of history! Can you help to get scrollbar? Thanks (3 Replies)
Discussion started by: parisa_3456
3 Replies

6. Solaris

right scrollbar on xterm

I'm using exceed on a Windows PC to open a xterm to my SunOs 5.8 system. Everything works fine except for one thing, I can't have my scrollbar on the right side of the xterm windows. Here's a copy of my .Xdefaults file: # xterm xterm*loginShell: True xterm*background: black... (3 Replies)
Discussion started by: ce9888
3 Replies

7. UNIX and Linux Applications

command scrolling using arrow keys

hi, can anyone tell me how to enable arrow keys to scroll thru the commands on command prompt. I am using C shell ( I know, in k shell, set -o vi would enable vi command history, but set -o doesnte exist in c shell) (4 Replies)
Discussion started by: hemangi13
4 Replies

8. Programming

Does anybody know how to simulate press Fn+Scroll Lk in Linux c

Does anybody know how to simulate press Fn+Scroll Lk in Linux c? Thanks in advance! (10 Replies)
Discussion started by: liuyan03
10 Replies

9. Shell Programming and Scripting

Paging/Scrolling a List of files for selection

Hi All, I have the following script and would like to add page up and down functionality to be able to stroll through the list. Is this possible? If so, Any pointers to examples, info, tips, suggestions would be appreciated. BTW, Any suggestion for better practices on the following code... (5 Replies)
Discussion started by: Festus Hagen
5 Replies

10. Shell Programming and Scripting

Scroll records from database, one at a time

Hi, I need to come up with a site that will display all the records in the database, but one at a time. Not sure how to go about it. Please pour in your suggestions. Thanks ---------- Post updated at 04:38 AM ---------- Previous update was at 12:52 AM ---------- Can... (3 Replies)
Discussion started by: sh_kk
3 Replies

11. AIX

Matching command scroll - ksh

In ksh is there a was to scroll thru all matching commands? For example I executed several commands over several days. Is there a way to scroll thru all the matching 'find' commands only that was executed? No messing with the .history file. Anyway to do this from the command prompt? TIA. (3 Replies)
Discussion started by: Un1xNewb1e
3 Replies

12. HP-UX

How to scroll back and forwrd in HP-UX?

How to scroll back and forwrd in HP-UX? 1.How to auto complete commands in HP-UNIX, which key should be used as in Linux "tab" key is being used. 2. How to scroll back and forward in HP-UX ; in Linux we use up and down arrow.:confused::confused::confused::confused: (3 Replies)
Discussion started by: manalisharmabe
3 Replies

13. UNIX for Dummies Questions & Answers

[SOLVED] How to set a default of 200000 as scrollback size in Putty ?

Putty release : 0.61 For saved sessions , you can configure Scrollback size just once using "Lines of Scrollback" in the 'Window' menu For a non-saved session (an ad-hoc session ) , If you want a higer scrollback size for a putty session , you have to set the "Lines of Scrollback" manually... (4 Replies)
Discussion started by: kraljic
4 Replies

14. Shell Programming and Scripting

Scrolling through text while interacting with program prompts

Hi all, I am trying write a shell script to automate the installation of a program, but during the process of the installation, the installation program requires the user to scroll through 10 pages of a license agreement. Since this is coming from stdout and is not a prompt, I am unable to send... (4 Replies)
Discussion started by: nanlee
4 Replies

15. What is on Your Mind?

Posts Converted to Divs - Overflow Works - Now Testing

Hey, Success! I have converted the posts (each of the main posts) from table tags to div tags and the problem with the scroll bar and code tags is fixed, as I predicted (Yay!). Now I'm testing this (only I see the new results because the new code is restricted to my userid) but I would... (27 Replies)
Discussion started by: Neo
27 Replies