The statement scrolls the standard screen up one line, which is the same as the scroll() function. in Java

Painting QR Code ISO/IEC18004 in Java The statement scrolls the standard screen up one line, which is the same as the scroll() function.
Examples
QR Code 2d Barcode Decoder In Java
Using Barcode Control SDK for Java Control to generate, create, read, scan barcode image in Java applications.
scrl(1);
Make QR In Java
Using Barcode generator for Java Control to generate, create QR Code ISO/IEC18004 image in Java applications.
The statement scrolls the standard screen up one line, which is the same as the scroll() function.
Denso QR Bar Code Scanner In Java
Using Barcode decoder for Java Control to read, scan read, scan image in Java applications.
wscrl(viewer,-3);
Printing Bar Code In Java
Using Barcode generator for Java Control to generate, create barcode image in Java applications.
The statement scrolls the text in the window viewer down three rows.
Decoding Bar Code In Java
Using Barcode decoder for Java Control to read, scan read, scan image in Java applications.
Sample Program
QR Code Drawer In C#.NET
Using Barcode creator for .NET framework Control to generate, create Denso QR Bar Code image in VS .NET applications.
1 2 3 4 5 6 7 8 9 10 11 #include <ncurses.h> int main(void) { int ch; initscr(); scrollok(stdscr,TRUE); keypad(stdscr,TRUE); noecho();
Painting Denso QR Bar Code In VS .NET
Using Barcode maker for ASP.NET Control to generate, create QR Code ISO/IEC18004 image in ASP.NET applications.
Appendix A
Make QR Code ISO/IEC18004 In .NET Framework
Using Barcode generation for .NET Control to generate, create QR Code image in .NET applications.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Encoding QR Code JIS X 0510 In Visual Basic .NET
Using Barcode creator for Visual Studio .NET Control to generate, create QR Code JIS X 0510 image in .NET applications.
NCurses Library Reference
Create EAN / UCC - 14 In Java
Using Barcode encoder for Java Control to generate, create UCC-128 image in Java applications.
addstr( Press Enter to quit; Up/Down to scroll ); mvaddstr(LINES/2,0, Scroll me! ); refresh(); do { ch = getch(); if(ch == KEY_UP) scrl(1); if(ch == KEY_DOWN) scrl(-1); } while( ch != \n ); endwin(); return 0; }
Generate Data Matrix ECC200 In Java
Using Barcode printer for Java Control to generate, create Data Matrix 2d barcode image in Java applications.
Sample output: Use the up/down arrows on the keyboard to scroll the text on the screen. Press Enter to quit.
Making Bar Code In Java
Using Barcode generation for Java Control to generate, create barcode image in Java applications.
Also See
Encode International Standard Serial Number In Java
Using Barcode encoder for Java Control to generate, create ISSN - 13 image in Java applications.
10, scrollok(), setscrreg()
Make Data Matrix In VB.NET
Using Barcode maker for Visual Studio .NET Control to generate, create Data Matrix 2d barcode image in VS .NET applications.
scroll()
Scanning Bar Code In Java
Using Barcode decoder for Java Control to read, scan read, scan image in Java applications.
The scroll() function scrolls text in a window up one line.
Drawing EAN 13 In VB.NET
Using Barcode drawer for VS .NET Control to generate, create GS1 - 13 image in .NET applications.
Man Page Format
USS Code 39 Maker In VS .NET
Using Barcode encoder for .NET framework Control to generate, create Code39 image in Visual Studio .NET applications.
int scroll(WINDOW *win);
Creating Code 128 Code Set B In VB.NET
Using Barcode generation for VS .NET Control to generate, create Code 128 image in .NET framework applications.
Format Reference
Reading USS Code 128 In Visual Studio .NET
Using Barcode recognizer for Visual Studio .NET Control to read, scan read, scan image in .NET applications.
win is the name of a WINDOW variable representing the window to be scrolled. Text in that window is moved up one line; the top line of text is removed and a new blank line is inserted at the bottom.
Painting Bar Code In .NET Framework
Using Barcode creation for ASP.NET Control to generate, create barcode image in ASP.NET applications.
Return Value
Always OK.
Appendix A
NCurses Library Reference
Notes
The scroll() function is a macro equivalent to wscrl(win,1). See wscrl(). Also see scrl() for more notes and information.
Example
scroll(main);
The statement scrolls the contents of the window main up one line.
Sample Program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include <ncurses.h> int main(void) { initscr(); scrollok(stdscr,TRUE); mvaddstr(LINES/2,0, Watch me scroll up! ); refresh(); getch(); scroll(stdscr); refresh(); getch(); endwin(); return 0; }
Sample output:
Watch me scroll up!
Press Enter and the line scrolls up one notch.
Also See
10, scrollok(), scrl()
Appendix A
NCurses Library Reference
scrollok()
The scrollok() function enables scrolling in a window.
Man Page Format
int scrollok(WINDOW *win, bool bf);
Format Reference
win is the name of a WINDOW variable representing a window created in your code. Bf is a Boolean value, either TRUE or FALSE as defined in NCURSES.H. When TRUE, scrolling for window win is activated. FALSE is the default condition, meaning that the window isn t scrolling.
Return Value
OK on success; ERR on failure.
Notes
The scrollok() function enables scrolling. That means any text displayed after the last line, or a newline or line feed on the last line, pops text up by one row in the window. The top row of text is lost, and a new blank row appears on the bottom to allow for the next text. The scrollok() setting is inherited by subwindows. If you set scrollok() TRUE for a window, then all its subwindows will also have the ability to scroll. Otherwise, new windows and new subwindows start out with scrollok() disabled. Text can be manually scrolled by using the scroll() or scrl() functions. Pads cannot be scrolled. Trying to apply scrollok() to a pad returns ERR.
Example
scrollok(main,TRUE);
The statement enables scrolling for the window main.
Appendix A
NCurses Library Reference
Sample Program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #include <ncurses.h> int main(void) { int x = 0; initscr(); scrollok(stdscr,TRUE); while(1) { printw( %d\t ,x); x++; refresh(); } endwin(); return 0; }
Sample output: Incrementing numbers are displayed in columns that scroll up the screen. Press Ctrl+C to halt the program.
Also See
10, scroll(), scrl(), setscrreg()
setscrreg()
The setscrreg() function determines which region (between two rows) of the screen will be scrolled.
Man Page Format
int setscrreg(int top, int bot); int wsetscrreg(WINDOW *win, int top, int bot);
Appendix A
NCurses Library Reference
Format Reference
top is an int value indicating the top row for the scrolling region. Values range from 0 for the top row, to the value of bot minus 1. bot is in int value indicating the bottom row of the scrolling region. Values range from top+1 to the bottom of the window. Refer to the w entry elsewhere in this appendix for information on the win argument.
Return Value
OK on success, ERR on failure. The function fails when top is greater than or equal to bot, or when bot is greater than the bottom of the window.
Notes
This function works only after scrolling has been enabled for the window via the scrollok() function. See scrollok(). Unless setscrreg() is used, the top and bottom rows of the window define the scrolling region. The bottom row of the window can be returned using w->_maxy, where w is the window s WINDOW variable name. Text can still be written to the window below the scrolling region, specifically by using the various mv-prefix text output functions.