Sponsored Content
Full Discussion: If then logic with TIME
Top Forums Shell Programming and Scripting If then logic with TIME Post 302848445 by Corona688 on Thursday 29th of August 2013 10:03:51 AM
Old 08-29-2013
Note that if you're off by one second, it won't work...
 

We Also Found This Discussion For You

1. IP Networking

what the logic

i have a text file which contain some text like we|are|one|only i|am|learning|c++ the input from stdout will be input1 we input2 one it should search in the file where this two strings are and then give the output : output1 are output2 only similarly input1 i (2 Replies)
Discussion started by: ramneek
2 Replies
install_keyboard(3alleg4)					  Allegro manual					 install_keyboard(3alleg4)

NAME
install_keyboard - Installs the Allegro keyboard interrupt handler. SYNOPSIS
#include <allegro.h> int install_keyboard(); DESCRIPTION
Installs the Allegro keyboard interrupt handler. You must call this before using any of the keyboard input routines. Once you have set up the Allegro handler, you can no longer use operating system calls or C library functions to access the keyboard. Note that on some platforms the keyboard won't work unless you have set a graphics mode, even if this function returns a success value before calling set_gfx_mode. This can happen in environments with graphic windowed modes, since Allegro usually reads the keyboard through the graphical window (which appears after the set_gfx_mode call). Example: allegro_init(); install_timer(); install_keyboard(); /* We are not 100% sure we can read the keyboard yet! */ if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) != 0) abort_on_error("Couldn't set graphic mode!"); /* Now we are guaranteed to be able to read the keyboard. */ readkey(); RETURN VALUE
Returns zero on success, or a negative number on failure (but you may decide not to check the return value as this function is very unlikely to fail). SEE ALSO
remove_keyboard(3alleg4), poll_keyboard(3alleg4), key(3alleg4), keypressed(3alleg4), readkey(3alleg4), ureadkey(3alleg4), keyboard_call- back(3alleg4), keyboard_ucallback(3alleg4), keyboard_lowlevel_callback(3alleg4), three_finger_flag(3alleg4), key_led_flag(3alleg4), set_leds(3alleg4), set_keyboard_rate(3alleg4), set_gfx_mode(3alleg4) Allegro version 4.4.2 install_keyboard(3alleg4)
All times are GMT -4. The time now is 11:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy