The statement creates a scrolling region from line 5 through the bottom of the standard screen. in Java

Creator QR-Code in Java The statement creates a scrolling region from line 5 through the bottom of the standard screen.
Examples
Scan QR Code In Java
Using Barcode Control SDK for Java Control to generate, create, read, scan barcode image in Java applications.
setscrreg(5,stdscr->_maxy);
Painting QR In Java
Using Barcode generator for Java Control to generate, create QR image in Java applications.
The statement creates a scrolling region from line 5 through the bottom of the standard screen.
Reading QR Code ISO/IEC18004 In Java
Using Barcode decoder for Java Control to read, scan read, scan image in Java applications.
wsetscrreg(options,2,opbot);
Barcode Creation In Java
Using Barcode maker for Java Control to generate, create barcode image in Java applications.
Here, the statement creates a scrolling region in the window options, from line 2 (the third line) of the window through the value represented by opbot.
Read Barcode In Java
Using Barcode decoder for Java Control to read, scan read, scan image in Java applications.
Appendix A
Denso QR Bar Code Generator In Visual C#
Using Barcode generator for VS .NET Control to generate, create QR image in Visual Studio .NET applications.
NCurses Library Reference
QR Code ISO/IEC18004 Drawer In .NET Framework
Using Barcode maker for ASP.NET Control to generate, create Denso QR Bar Code image in ASP.NET applications.
Sample Program
Encode QR Code ISO/IEC18004 In Visual Studio .NET
Using Barcode printer for .NET Control to generate, create Denso QR Bar Code image in Visual Studio .NET applications.
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 27 #include <ncurses.h> int main(void) { int x = 0; int stdbot; initscr(); stdbot = stdscr->_maxy; scrollok(stdscr,TRUE); setscrreg(3,stdbot-3); attrset(A_BOLD); mvaddstr(stdbot-2,0, Press Ctrl+C to stop. ); attroff(A_BOLD); move(0,0); while(1) { printw( %d\t ,x); x++; refresh(); } endwin(); return 0; }
Create QR Code JIS X 0510 In Visual Basic .NET
Using Barcode printer for .NET framework Control to generate, create QR Code image in Visual Studio .NET applications.
The sample output is shown in Figure A-13.
UPCA Maker In Java
Using Barcode printer for Java Control to generate, create UPC-A image in Java applications.
Also See
Data Matrix Generator In Java
Using Barcode creator for Java Control to generate, create DataMatrix image in Java applications.
scrollok(), scrl()
Bar Code Drawer In Java
Using Barcode printer for Java Control to generate, create bar code image in Java applications.
Figure A-13: Only the indicated region of the window scrolls.
MSI Plessey Drawer In Java
Using Barcode creation for Java Control to generate, create MSI Plessey image in Java applications.
Appendix A
Barcode Generator In Visual Basic .NET
Using Barcode encoder for .NET Control to generate, create bar code image in VS .NET applications.
NCurses Library Reference
Code 39 Extended Printer In .NET Framework
Using Barcode creator for VS .NET Control to generate, create USS Code 39 image in .NET framework applications.
setsyx()
GTIN - 12 Creation In .NET
Using Barcode printer for .NET Control to generate, create UPC Symbol image in Visual Studio .NET applications.
The setsyx() function is used to set the virtual screen s cursor location.
Making UCC - 12 In VS .NET
Using Barcode encoder for ASP.NET Control to generate, create UPC Symbol image in ASP.NET applications.
Man Page Format
Printing UCC - 12 In VS .NET
Using Barcode creation for ASP.NET Control to generate, create UCC - 12 image in ASP.NET applications.
void setsyx(int y, int x);
Code 128 Code Set C Encoder In Visual C#.NET
Using Barcode creator for .NET framework Control to generate, create Code 128 Code Set B image in VS .NET applications.
Format Reference
Drawing Data Matrix In Visual Studio .NET
Using Barcode encoder for ASP.NET Control to generate, create ECC200 image in ASP.NET applications.
y and x are int values used to set the row and column positions of the virtual screen s cursor, respectively. Values range from 0 up through the values of LINES and COLS. When -1 is specified for both y and x, the leaveok() state is set TRUE.
Return Value
setsyx() is a macro and as such its return value should not be used.
Notes
To move the cursor in a window, use the move() function. See move(). The row, or y, argument comes first. Most often setsyx() is used internally in conjunction with getsyx(), which fetches the virtual screen s cursor location. That way the cursor s location can be saved and restored while NCurses is doing something else.
Example
setsyx(row,col);
The statement places the virtual screen s cursor to the position indicated by the row and col variables.
Sample Program
1 2 3 4 5 6 7 8 #include <ncurses.h> int main(void) { int y,x; initscr();
Appendix A
9 10 11 12 13 14 15 16 17 18
NCurses Library Reference
setsyx(5,5); getsyx(y,x); addstr( The cursor on the virtual screen is set to 5, 5.\n ); printw( And getsyx() reports %d, %d.\n ,y,x); refresh(); getch(); endwin(); return 0; }
Sample output:
The cursor on the virtual screen is set to 5, 5. And getsyx() reports 5, 5.
Also See
getsyx(), leaveok()
set_term()
The set_term() function determines which terminal to use for NCurses input and output functions. Used primarily in conjunction with newterm() when configuring unique terminal setups for NCurses.
Man Page Format
SCREEN *set_term(SCREEN *new);
Format Reference
new is the name of a SCREEN pointer, returned by newterm().
Return Value
set_term() returns a SCREEN pointer indicating which terminal was previously in use.
Notes
This is the only function that manipulates SCREEN pointers. (The delscreen() function removes space allocated to the pointers.)
Appendix A
NCurses Library Reference
Examples
old = set_term(new);
The statement activates NCurses I/O on the terminal specified by SCREEN pointer new. The terminal currently used is saved in SCREEN pointer old.
set_term(old);
The statement transfers NCurses I/O to the terminal identified by SCREEN pointer old.
Sample Program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include <ncurses.h> int main(void) { SCREEN *s; s = newterm(NULL, stdout, stdin); set_term(s); addstr( Hello! ); refresh(); getch(); endwin(); return 0; }
The program assigns standard input and output to the new terminal s, which is setup by set_term(). The addstr() function in line 10 outputs to standard output. Sample output:
Hello!
Also See
newterm(), delscreen()
Appendix A
NCurses Library Reference
slk_attr()
The slk_attr() function returns the attributes currently be used to format the soft labels.
Man Page Format
attr_t slk_attr(void);
Format Reference
The function has no arguments.
Return Value
A long int value of the NCurses attr_t type is returned, packed with values according to which formatting attributes have been applied to the soft labels. Appendix C describes the bit field.
Notes
This function is the soft label version of the attr_get() function. See attr_get().
Examples
va = slk_attr();
The statement stores attributes used to format the soft labels in the va variable.
if(slk_attr() & A_BOLD)
The evaluation is true when the A_BOLD attribute is being used to format the soft labels.
if(slk_attr() == A_BOLD)
The evaluation is true when only the A_BOLD attribute is being used to format the soft labels.
Appendix A
NCurses Library Reference
Sample Program
1 #include <ncurses.h> 2 3 #define CENTER 1 4 #define LCOUNT 8 5 6 int main(void) 7 { 8 char labels[LCOUNT][19] = { Help! , File , Print , Text , 9 Edit , Quick , Config , System }; 10 char *text; 11 int x; 12 13 slk_init(0); 14 initscr(); 15 16 for(x=0;x<LCOUNT;x++) 17 slk_set(x+1,labels[x],CENTER); 18 slk_refresh(); 19 if(slk_attr() & A_STANDOUT) 20 addstr( The labels are formatted with the ; standard attribute.\n ); 21 refresh(); 22 getch(); 23 24 endwin(); 25 return 0; 26 }
Sample output: