Explanation in Java

Printing Quick Response Code in Java Explanation
Explanation
Recognize QR Code 2d Barcode In Java
Using Barcode Control SDK for Java Control to generate, create, read, scan barcode image in Java applications.
The scr_dump() function writes window data to disk. It writes the visible data to disk (what you see on the screen), as well as various window settings and options. To restore the visible screen, the scr_restore() function is used. However, to restore both the screen and the window settings, scr_init() must be used before scr_restore(). Or, to make things easier, the scr_set() function can be used, which is a combination of scr_init() followed by scr_restore().
Generate QR In Java
Using Barcode encoder for Java Control to generate, create QR Code image in Java applications.
Man Page Format
QR-Code Scanner In Java
Using Barcode scanner for Java Control to read, scan read, scan image in Java applications.
int scr_init(const char *filename);
Create Barcode In Java
Using Barcode creator for Java Control to generate, create barcode image in Java applications.
Format Reference
Scanning Barcode In Java
Using Barcode reader for Java Control to read, scan read, scan image in Java applications.
filename is the name of a file in which the standard screen data has been saved. The value is a string, not a FILE pointer.
Creating QR In Visual C#
Using Barcode creation for .NET framework Control to generate, create QR image in .NET framework applications.
Appendix A
QR Code Drawer In .NET
Using Barcode drawer for ASP.NET Control to generate, create Quick Response Code image in ASP.NET applications.
NCurses Library Reference
Creating Quick Response Code In VS .NET
Using Barcode creation for .NET Control to generate, create QR Code JIS X 0510 image in VS .NET applications.
Return Value
Create QR Code JIS X 0510 In VB.NET
Using Barcode creation for .NET Control to generate, create QR-Code image in .NET framework applications.
OK on success or ERR on failure.
Generating ANSI/AIM Code 128 In Java
Using Barcode printer for Java Control to generate, create Code 128 image in Java applications.
Notes
Printing Data Matrix ECC200 In Java
Using Barcode drawer for Java Control to generate, create ECC200 image in Java applications.
By itself, scr_init() merely reads window setting information from the named file. The information scr_init() sets in memory can be updated to the screen by using a wrefresh(curscr) statement. The scr_init() function pays heed to the terminfo rmcup and nrrmc capabilities. When rmcup exists, the function returns ERR. (Refer to 1 for a description of rmcup.)
Draw GTIN - 13 In Java
Using Barcode drawer for Java Control to generate, create EAN13 image in Java applications.
Example
British Royal Mail 4-State Customer Code Generator In Java
Using Barcode creator for Java Control to generate, create British Royal Mail 4-State Customer Code image in Java applications.
if(scr_init( windata.bin ) == ERR)
EAN 128 Encoder In VS .NET
Using Barcode creation for ASP.NET Control to generate, create EAN 128 image in ASP.NET applications.
The statement checks to see if the scr_init() function returns ERR. If not, information from the WINDATA.BIN file is read from disk and used to configure NCurses window structures.
EAN-13 Creator In Visual C#
Using Barcode encoder for .NET framework Control to generate, create EAN / UCC - 13 image in .NET applications.
Sample Program
Creating USS-128 In C#.NET
Using Barcode generator for Visual Studio .NET Control to generate, create EAN / UCC - 13 image in VS .NET applications.
Refer to the entry for scr_restore() for a sample program and output.
European Article Number 13 Drawer In .NET Framework
Using Barcode encoder for ASP.NET Control to generate, create EAN13 image in ASP.NET applications.
Also See
Recognize Code 128 In Visual Studio .NET
Using Barcode scanner for VS .NET Control to read, scan read, scan image in .NET framework applications.
scr_dump(), scr_restore(), scr_set()
UPCA Encoder In Visual Studio .NET
Using Barcode creation for ASP.NET Control to generate, create UPC Code image in ASP.NET applications.
scr_restore()
Create Barcode In C#.NET
Using Barcode drawer for VS .NET Control to generate, create bar code image in VS .NET applications.
The scr_restore() function fetches a previously saved screen dump and loads it into memory, replacing the current virtual screen.
Man Page Format
int scr_restore(const char *filename);
Format Reference
filename is the name of a file to which screen data has been saved. It is not a FILE pointer.
Appendix A
NCurses Library Reference
Return Value
OK or ERR, based on success or failure.
Notes
The scr_restore() function does not display the screen data. A call to doupdate() is required to display the restored screen. While the cursor s location is saved in the window file by scr_dump(), the scr_restore() function does not restore the cursor s location. The cursor instead remains at whatever location it was at when scr_restore() was issued. To fix this, scr_init() should be called before scr_dump().
Example
scr_restore( windump.dat );
The statement restores the screen previously saved to disk in the file WINDUMP.DAT.
Sample Program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 #include <ncurses.h> #define FILENAME windump int main(void) { int r; initscr(); addstr( Press Enter to restore the screen\n ); refresh(); getch(); /* restore the window from disk */ r = scr_init(FILENAME); if( r != ERR) { scr_restore(FILENAME); wrefresh(curscr); } else { addstr( Error reading window file: press Enter\n ); refresh(); }
Appendix A
27 28 29 30 31 getch(); endwin(); return 0; }
NCurses Library Reference
Sample output: The previously saved screen (see scr_dump()) is restored.
Also See
14, scr_dump(), scr_set(), getwin()
scr_set()
The scr_set() function combines the abilities of the scr_init() and scr_restore() functions.
Man Page Format
int scr_set(const char *filename);
Format Reference
filename is the name of a screen data file. It is a text constant, not a FILE pointer.
Return Value
OK on success or ERR on failure.
Notes
The scr_set() function is equivalent to a call to scr_init() followed by a call to scr_restore(). Refer to scr_init() or scr_restore() for more information.
Example
rc = scr_set(fname);
The scr_set() function loads window data from a file referenced by the fname (string) variable. Both the window s settings and visual data are
Appendix A
NCurses Library Reference
loaded. The int variable rc contains either OK or ERR depending on the function s success or failure.
Sample Program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 #include <ncurses.h> #define FILENAME windump int main(void) { int r; initscr(); addstr( Press Enter to restore the screen\n ); refresh(); getch(); /* restore the window from disk */ r = scr_set(FILENAME); if( r == ERR) addstr( Error reading window file: press Enter\n ); wrefresh(curscr); getch(); endwin(); return 0; }
Sample output is the same as for scr_restore().
Also See
14, scr_dump(), scr_restore(), scr_set()
scrl()
The scrl() function scrolls text in a window up or down a given number of lines.
Man Page Format
int scrl(int n); int wscrl(WINDOW *win, int n);
Appendix A
NCurses Library Reference
Format Reference
n is an int value indicating the number of lines to scroll the window. When n is positive, n lines are scrolled up; when n is negative, n lines are scrolled down. Refer to the w entry later in this appendix for information on the win argument.
Return Value
Always OK.
Notes
Scrolling must be enabled for the window for scroll() to function properly. See scrollok(). Scrolling does not affect the cursor s location in the window. If the cursor is on row 5, then scrolling the text in the window up or down moves only the text; the cursor remains at row 5. When text is scrolled up, blank lines are inserted at the bottom of the window; lines at the top are removed. When text is scrolled down, blanks lines are inserted at the top of the window, with lines at the bottom being removed.