typeahead(3cur)typeahead(3cur)Name
typeahead - check for typeahead
Syntax
int typeahead(fd)
int fd;
Description
If is enabled, the program looks for typeahead input periodically while updating the screen. If input is found, the current update will be
postponed until or is called again. This allows faster response to commands typed in advance.
Normally, the input FILE pointer passed to the routine, will be used to do this typeahead checking. If the routine was called, the input
FILE pointer is passed to
The routine specifies that the file descriptor is to be used to check for typeahead. If is -1, then typeahead is disabled.
Return Values
No return values are defined for this function.
See Alsodoupdate(3cur), initscr(3cur), newterm(3cur), refresh(3cur)typeahead(3cur)
Check Out this Related Man Page
typeahead(3XCURSES) X/Open Curses Library Functions typeahead(3XCURSES)NAME
typeahead - check for type-ahead characters
SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib
-R /usr/xpg4/lib -lcurses [ library... ]
c89 [ flag... ] file... -lcurses [ library... ]
#include <curses.h>
int typeahead(int fd);
PARAMETERS
fd Is the file descriptor that is used to check for type-ahead characters.
DESCRIPTION
The typeahead() function specifies the file descriptor (fd) to use to check for type-ahead characters (characters typed by the user but not
yet processed by X/Open Curses).
X/Open Curses checks for type-ahead characters periodically while updating the screen. If characters are found, the current update is
postponed until the next refresh(3XCURSES) or doupdate(3XCURSES). This speeds up response to commands that have been typed ahead. Nor-
mally, the input file pointer passed to newterm(3XCURSES), or stdin in the case of initscr(3XCURSES), is used for type-ahead checking.
If fd is -1, no type-ahead checking is done.
RETURN VALUES
On success, the typeahead() function returns OK. Otherwise, it returns ERR.
ERRORS
None.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO doupdate(3XCURSES), getch(3XCURSES), initscr(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5)SunOS 5.11 5 Jun 2002 typeahead(3XCURSES)
Hi Dears,
I have one script to create new users with information in one plain text file. This script will read all lines in the file and create one users for one line.
Sample file:
#action;login,full name title,expire date,project
+;gmwen,Bruce Wen QA,04/01/2012,BT
+;xxdeng,Shown Deng... (4 Replies)
HI Unix Gurus,
I an stuck in an interesting issue, where I am trying to execute a script on remote server after ssh.
The script on remote server is interactive,. Whenever it is called it hangs where it expects input from terminal and I have to terminate it.
I have searched through fourm... (12 Replies)
Hi All
I want to use the echo command to had some lines to a file but the lines i want to have contain " and ;
here is my command
system("echo user_pref("accessibility.typeaheadfind.flashBar", 0); > $profile");
but i think there are too many " and so it barfs
n e ideas
thanks
A (5 Replies)
I'm new to scripting, and this forum has been invaluable in helping me out. I'm hoping I can get some personal help now though.
I have a korn script that takes a list of servers and either telnets or sshs into it (only some are set up for ssh). What I'm doing now is trying to telnet first, and... (10 Replies)
Hi all,
How write a script for send AT commando to modem?
I can use only Screen but i don't have Minicom on my embedded board:
Is possible run Screen and after write AT command like:
AT+CGREG
AT!PADCONF?1
....etc..
PS:how install minicom for a board with ARM? i must compiling source?
i... (15 Replies)
I need to put/get files from Windows machine to Unix machine and vice-versa.
I wrote a text file "ftp1.txt" as below.
naga
naga06
cd /root/Naga
prom off
get time.unl
bye
I wrote another bat file "ftp.bat" as below.
ftp -n -s:C:\Users\Naga\Desktop\ftp1.txt IP_ADDRESS
but... (2 Replies)
Hi guys
I'm trying to connect to CISCO router using termios. So I decided to have two threads one for reading data and the other one for writing data.
And here's my code :
int mainfd=0;
char ch = {NULL};
void *write(void *)
{
char temp;
while(1)
{
temp =... (3 Replies)
Hello,
I am trying to use mutt in order to send emails. I have installed mutt using yum and pasted some details about it later in the post.
When I try to run:
echo test | mutt -s "Test Email" user@id.com
It doesn't do anything. I dont receive any emails. I have the SMTP details for... (1 Reply)