Equivalent function of [ kbhit() ] In TURBO C

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
# 1  
Equivalent function of [ kbhit() ] In TURBO C

ANy one knows equivalent function of [ kbhit() ] which in Turbo C.

I want to Execute Certain loop until any key is pressed.

i.e while(!kbhit)

This code work fine in DOS but NOt in LINUX
i try to use [ getc_unblocked(stdin) ] but not getting the expected result

Waiting for Reply

Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #487
Difficulty: Easy
A program's entry point is always defined by a main function or method.
True or False?

9 More Discussions You Might Find Interesting

1. Answers to Frequently Asked Questions

Running Turbo-cad and circuit wizard programmes.

Hi. i am new to Linux. i have a Turbo-cad and circuit wizard programme on CD that I want to install and run. I keep getting the message I do not have an auto-run programme. Do I need to install specific drivers for this? What programme do I need? (1 Reply)
Discussion started by: Alfred Kruger
1 Replies

2. UNIX for Dummies Questions & Answers

Shell equivalent of matlab fwrite function

I have some matlab code that sends the serial port elements of an array using matlab's fwrite function, e.g.: fwrite(s, , 'uchar'); What would be a unix shell equivalent? E.g., after successfully accessing the port using instructions here: Simple terminal serial port program for Linux/MacOSX... (3 Replies)
Discussion started by: darwin_886
3 Replies

3. Shell Programming and Scripting

Java - Arrays.binarySearch function equivalent in awk

Hi all Does anyone know Java-Arrays.binarySearch function equivalent in awk I tried like this but it's not correct one,it just returns array index if and only when searched value available in array, for some reason if searched value not found then I want to return upper nearest neighbour index.... (1 Reply)
Discussion started by: Akshay Hegde
1 Replies

4. Programming

Turbo C

Does anybody here know some tutorial sites for turbo c and C++ and other programming language? We had that lesson when i was in first year but i can't easily catch up or something i don't know much. just a little..so i just wanted to learn more about that programming language..if you know some... (4 Replies)
Discussion started by: ryxin
4 Replies

5. Programming

Equivalent function for matlab on scilab

Hello everyone, i need help with this , i need the equivalent matlab funtion tf(x,y) in scilab and what do u recommend best from those three for a linux user (i need it for Control theory): 1-matlab 2-Scilab 3-Octave thank you for your time (0 Replies)
Discussion started by: abu_malek
0 Replies

6. Shell Programming and Scripting

shell script equivalent for tcl function

Hello, I need experts help in converting the below tcl function to korn shell function equivalent. proc lsNetMaskToBits {mask} { set dw ; # Top N bits set set dw 0x ; # Make sure it's hexadecimal, else XOR fails. puts "lsNetMaskToBits dw $dw" set dw ; # Complement => low 32-N bits... (1 Reply)
Discussion started by: JackMelson
1 Replies

7. Shell Programming and Scripting

Bash equivalent of perl's pack function ?

Is there an equivalent of perl's pack function in bash ? Or in other words, how can I achieve the same thing in bash ? Much appreciated. (1 Reply)
Discussion started by: NewDeb
1 Replies

8. Programming

equivalent function for wherey( ) ??

what is the equivalent function for wherey( ) ?? That is to return the current column position? (2 Replies)
Discussion started by: rockgal
2 Replies

9. Filesystems, Disks and Memory

How can i get start both sco unix and turbo linux?

I think and believe that i could start both the two OS from HardDisk until i installed Turbo Linux after the SCO unix . If I do anything ,Ican only start Turbo,but if i run "fdisk /mbr",the SCO unix can normally start,but the Turbo Linux could not start with unless you insert the bootdisket,which... (4 Replies)
Discussion started by: sensir163
4 Replies
KeyMap(3U)						    InterViews Reference Manual 						KeyMap(3U)

KeyMap - activates controls given their keyboard equivalents SYNOPSIS
#include <Unidraw/keymap.h> DESCRIPTION
KeyMap supports keyboard equivalents, which allow the user of a Unidraw application to execute menu commands or select from a palette of controls by typing rather than pointing and clicking with the mouse. The KeyMap can activate a control given its key code as defined by its ControlInfo object. Only those controls registered with the KeyMap can be activated through the KeyMap. By default, the Editor base class handles key events by having its KeyMap execute the key code. PUBLIC OPERATIONS
KeyMap() Construct a new keymap, initially with no registrants. void Register(UControl*) void Register(KeyMap*) void Unregister(UControl*) void Unregister(KeyMap*) Register and unregister a control or another KeyMap. Registering a KeyMap is equivalent to registering all its registered controls individually. void Execute(const char* keyCode) Execute the given key code by activating the corresponding control. Each UControl contains a ControlInfo object that specifies its key code; thus the mapping between key codes and controls is defined by the ControlInfo objects collectively. Key codes among reg- istered controls should be unique. SEE ALSO
ControlInfo(3U), KeyMap(3U), UControl(3U), kybd(3U) Unidraw 1 August 1990 KeyMap(3U)

Featured Tech Videos