Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

instr(3) [osf1 man page]

curs_instr(3)						     Library Functions Manual						     curs_instr(3)

NAME
curs_instr, instr, innstr, winstr, winnstr, mvinstr, mvinnstr, mvwinstr, mvwinnstr - Get a string of characters from a Curses window SYNOPSIS
#include <curses.h> int instr( char *str ); int innstr( char *str, int n ); int winstr( WINDOW *win, char *str ); int winnstr( WINDOW *win, char *str, int n ); int mvinstr( int y, int x, char *str ); int mvinnstr( int y, int x, char *str, int n ); int mvwinstr( WINDOW *win, int y, int x, char *str ); int mvwinnstr( WINDOW *win, int y, int x, char *str, int n ); LIBRARY
Curses Library (libcurses) STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: instr, innstr, winstr, winnstr, mvinstr, mvinnstr, mvwinstr, mvwinnstr: XCURSES4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
These routines return the string of characters in str, starting at the current cursor position in the named window and ending at the right margin of the window. Attributes are stripped from the characters. The four functions with n as the last argument return a string that is at most n characters long. NOTES
The header file <curses.h> automatically includes the header file <stdio.h>. Note that all routines except winnstr may be macros. RETURN VALUES
All routines return ERR upon failure. Upon successful completion, the *instr routines return OK, and the *innstr routines return the number of characters read into the string. SEE ALSO
Functions: curses(3) Others: standards(5) curs_instr(3)

Check Out this Related Man Page

curs_instr(3)						     Library Functions Manual						     curs_instr(3)

NAME
curs_instr, instr, innstr, winstr, winnstr, mvinstr, mvinnstr, mvwinstr, mvwinnstr - Get a string of characters from a Curses window SYNOPSIS
#include <curses.h> int instr( char *str ); int innstr( char *str, int n ); int winstr( WINDOW *win, char *str ); int winnstr( WINDOW *win, char *str, int n ); int mvinstr( int y, int x, char *str ); int mvinnstr( int y, int x, char *str, int n ); int mvwinstr( WINDOW *win, int y, int x, char *str ); int mvwinnstr( WINDOW *win, int y, int x, char *str, int n ); LIBRARY
Curses Library (libcurses) STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: instr, innstr, winstr, winnstr, mvinstr, mvinnstr, mvwinstr, mvwinnstr: XCURSES4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
These routines return the string of characters in str, starting at the current cursor position in the named window and ending at the right margin of the window. Attributes are stripped from the characters. The four functions with n as the last argument return a string that is at most n characters long. NOTES
The header file <curses.h> automatically includes the header file <stdio.h>. Note that all routines except winnstr may be macros. RETURN VALUES
All routines return ERR upon failure. Upon successful completion, the *instr routines return OK, and the *innstr routines return the number of characters read into the string. SEE ALSO
Functions: curses(3) Others: standards(5) curs_instr(3)
Man Page

13 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

printing to HP jetdirect

How can I print from Unix (AIX) to a printer running HP Jetdirect card. I've been reading so much stuff from the internet that it made me so confused already. The ip address of my printer is 10.1.1.75. Could somebody please give me an instruction on how to accomplish this. Thanks. (6 Replies)
Discussion started by: nseal101
6 Replies

2. Shell Programming and Scripting

Lightwight Process monitor

We've been having some problems with a specific program in our nightly processing, so I whipped up a little script to run to monitor it, and send an e-mail when it's complete (failure or not). My primary problem is that I cannot modify the binary or the script that calls it, since the developers... (7 Replies)
Discussion started by: LivinFree
7 Replies

3. UNIX for Dummies Questions & Answers

Raid and multibooting

Hi all, I'm about to reconfigure my system with Raid Level 0. I haven't been able to find out much about Raid and Linux through searching. I'll be multi-booting with Win 2K, XP, Mandrake 9 and Red Hat 8. I have 3 drives (2 X 60GB and 1 X 80GB) and want to use Raid 0 to configure the drives... (9 Replies)
Discussion started by: onestepto
9 Replies

4. Shell Programming and Scripting

Substring/Instring of a string with datestamp

Hi, I have just started working on unix today. I want to get the instring of a string (filename). Eg. JAN_BILS_PRINT_01-01-08.txt Now i want to extract the datestamp from the file and convert the date to the format mm/dd/yyyy. How do i do this? Please hel pme with this. Regards,... (10 Replies)
Discussion started by: bhalotias
10 Replies

5. Solaris

what is that 1 in the instruction!~ (please help fast)

Hi all, make_lofs /.cdrom/<something>/<something> 1 what does this instruction mean? Note:both the "something" are obviously different . I would like to know what that 1 means, the rest of the instruction is clear!! Thanks (6 Replies)
Discussion started by: wrapster
6 Replies

6. Linux

There is anyone whu can be my MASTER, my Teacher, my Instractor and my Friend.,

Hellooo Salute to All. I am a mini poor STUDENT from a Thirldworld country for learning abt UNIX,MINIX,LINUX etc. I have not enough wisdom abt above topics. But I want to walk,run & fly in UNIX,Linux platform. But I studied in computer science degree...what i did'nt comple at all. Though i... (8 Replies)
Discussion started by: AhsanPrince
8 Replies

7. Solaris

patch update instructions

Hi All, I need to update my solaris with a particular patch. When reading the instruction on the sun web site, I got this: Installation Requirements: Reboot immediately after installing this patch on an active boot environment to bring the system to a consistent state. An alternative may... (8 Replies)
Discussion started by: itik
8 Replies

8. Programming

how to discard instruction from previous signal

hello everyone, I'm having a problem doing signal handling so I post this thread to see if I could get help. I want asynchronous signal handling, that means when I'm processing a signal (signal 1), if the same signal comes (signal 2) that signal (signal 2) shall be processed; and moreover,... (7 Replies)
Discussion started by: nvhoang
7 Replies

9. Shell Programming and Scripting

ksh interrupt read instruction with signal

Dear shell experts, I spent last few days porting ksh script from ksh88/SunOS to ksh93/Linux. Basically, things are going well and I do not have too much troubles porting ks88 script to ksh93, but I stuck on one item. It's about sending and handling the signal. I found two similar... (8 Replies)
Discussion started by: bzk
8 Replies

10. AIX

Getting error when instrumenting a C program with Purify

When I use this command: purify gcc -g hello_world.c to instrument a C program with Purify, I get this error : Purify engine:Error: The /usr/lib/syscalls.imp file either does not exist or has incorrect permissions.You may need to install bos.adt.syscalls I understand that I need to install... (11 Replies)
Discussion started by: SteAlma
11 Replies

11. Solaris

Illegal Instruction error

I keep getting a Illegal instruction error when running my MCP file below is the dump error message followed by truss log, dose anyone have any ideas? /opt/builds/bin/core: ELF 32-bit MSB core file SPARC Version 1, from 'mcp' *** Select Close or Exit from the window menu to close this window... (12 Replies)
Discussion started by: Wpgn
12 Replies

12. Shell Programming and Scripting

[perl script] print the assembly instruction and count the occurence

Hi, I have a input file(text file) with the following lines. 0x000000 0x5a80 0x0060 BRA.l 0x60 ;file:UserCall.s ;function:_user_call_table ;C_sourceLine:24 0x000002 0x1bc5 RETI ;file:UserCall.s ;function:_user_call_table ;C_sourceLine:30 0x000003 0x6840 MOV R0L,R0L ;file:UserCall.s... (6 Replies)
Discussion started by: acdc
6 Replies

13. Shell Programming and Scripting

Substr/Instr in shell script or extract part of text

Hi, I need to extract part of a text to two variables text is "PL/SQL procedure successfully completed. ERROR ----------------------------------------------------------------- Test Error Message PLUSVAR ---------- 1" I want "Test Error Message" in one variable and "1" in another variable.... (11 Replies)
Discussion started by: vedavrath
11 Replies