Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mvwscanw(3cur) [ultrix man page]

scanw(3cur)															       scanw(3cur)

Name
       scanw, mvscanw, mvwscanw, wscanw - formatted read from window

Syntax
       #include <cursesX.h>

       int scanw(fmt [, arg] ...)
       char *fmt;

       int wscanw(win, fmt [, arg] ...)
       WINDOW *win;
       char *fmt;

       int mvscanw(y, x, fmt [, arg] ...)
       int y, x;
       char *fmt;

       int mvwscanw(win, y, x, fmt [, arg] ...)
       WINDOW *win;
       int y, x;
       char *fmt;

Description
       These  routines	correspond  to The function reads input from the default window.  The function reads input from the specified window.  The
       function moves the cursor to the specified position and then reads input from the default window.  The function moves  the  cursor  to  the
       specified position and then reads input from the specified window.

       For  all  the  functions, the routine is called to get a string from the window, and the resulting line is used as input for the scan.  All
       character interpretation is carried out according to the function rules.

Return Values
       Upon successful completion, the and functions return the number of items successfully matched.  On end-of-file, they return EOF.  Otherwise
       they return ERR.

See Also
       wgetstr(3cur), scanf(3s)

																       scanw(3cur)

Check Out this Related Man Page

curs_scanw(3CURSES)					     Curses Library Functions					       curs_scanw(3CURSES)

NAME
curs_scanw, scanw, wscanw, mvscanw, mvwscanw, vwscanw - convert formatted input from a curses widow SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library ... ] #include <curses.h> int scanw(char *fmt, /* arg */ ...); int wscanw(WINDOW *win, char *fmt, /* arg */ ...); int mvscanw(int y, int x, char *fmt, /* arg */ ...); int mvwscanw(WINDOW *win, int y, int x, char *fmt, /* arg */...); int vwscanw(WINDOW *win, char *fmt, va_list varglist); DESCRIPTION
The scanw(), wscanw(), and mvscanw() routines correspond to scanf() (see scanf(3C)). The effect of these routines is as though wgetstr() were called on the window, and the resulting line used as input for the scan. Fields which do not map to a variable in the fmt field are lost. The vwscanw() routine is similar to vwprintw() in that it performs a wscanw() using a variable argument list. The third argument is a va_list, a pointer to a list of arguments, as defined in <varargs.h>. RETURN VALUES
vwscanw() returns ERR on failure and an integer equal to the number of fields scanned on success. Applications may interrogate the return value from the scanw, wscanw(), mvscanw(), and mvwscanw() routines to determine the number of fields which were mapped in the call. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
curs_getstr(3CURSES), curs_printw(3CURSES), curses(3CURSES), scanf(3C), attributes(5) NOTES
The header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h>. SunOS 5.11 31 Dec 1996 curs_scanw(3CURSES)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

A short history of UNIX by l.madden@ic.ac.uk

<h1>A short history of UNIX</h1> <p>In the late 1960's Ken Thompsom joined the computing-science research group at Bell Laboratories, which is the research arm of the giant American corporation ATT. He and many colleagues had been collaborating with MIT and GE on the development of an... (0 Replies)
Discussion started by: Neo
0 Replies

2. Answers to Frequently Asked Questions

Lost root password / Can't login as root

We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies

3. Programming

How do you detect keystrokes in canonical mode?

I'm writing a command shell, and I want to be able to detect when the user presses an arrow key (otherwise it just prints [[A, [[B, etc.). I know it's relatively easy (although somewhat more time-consuming) to detect keystrokes in noncanonical mode, but I've noticed that the bash shell detects... (4 Replies)
Discussion started by: Ultrix
4 Replies

4. UNIX for Dummies Questions & Answers

Linux (Ubuntu) = Unix (NOT IMPORTANT - NO RUSH)

I'm learning off Linux (Ubuntu) right now. I want to move up to Unix, but I don't want to rush like I did when it came to Windows --> to Linux. What is the best Unix OS that fits in pretty well with Ubuntu. In other words is there kind of an equal Linux with Unix? Also what do I need to... (10 Replies)
Discussion started by: Linux_Guy
10 Replies

5. IP Networking

Can I change my hostname without messing things up?

I noticed my hostname is <my-full-name>s-macbook.local. I'm not sure exactly what information leaves the local network, and whether the hostname is included, but if it is, this would mean people on the Internet can look at my hostname and see who I am. Before anyone says that's not possible,... (4 Replies)
Discussion started by: Ultrix
4 Replies