My name is Andrea. I'm using Turbo C++ on an old PII 350 MHz with dos 7. I've written a while cycle which does something. I have to check a which letter of the keyboard has been pressed without checking it in the cycle in order to avoid it to slow down. Is there a way to set an interrupt like in arduino to stop the cycle only when a key is pressed? I've tried with bioskey(0) in the cycle but it slows it down too much....
Keyboard interrupt on Turbo C++ 3.1
151 Views Asked by Batman At
1
There are 1 best solutions below
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in KEYBOARD
- On iOS, the keyboard does not offer a 6-character SMS code
- Using javaFx, how to distinguish between return-key and enter-key on the numpad?
- Way to adding emoji to textarea with keyboard, other than copy/paste
- Win32api send message and Pydirectinput and Powertoy (Keyboard Manager ) Not working when open the application
- Keyboard not appearing when connecting smart card reader to iPhones with type-c port. i.e. iPhone 15/ 15 pro
- Xamarin android emulate usb PC Keyboard
- Pygame response to superfast human key presses?
- Why am I getting keyboard letter repeats with Chrome and not Firefox?
- python keyboard libary problem with writhing too many characters
- Wordpress keyboard navigation
- is on keyboard one side alt is more prominent than other side while using them in shortcut keys
- Preserving TextField Input After Keyboard Dismissal in Flutter
- combine KeyCode pressed and modifiers to get final KeyCode
- Shadcn Drawer component with Inputs on mobile, keyboard hides inputs or shows a blank space hiding them
- Create an onscreen swipe keyboard for Mac
Related Questions in INTERRUPT
- the end of the I/O operation is notified to the system by an interrupt.how much system time do the mentioned operations occupy?
- Unable to set an interrupt affinity in linux?
- fastLED degrades PWM outputs Arduino
- Difficulty understanding virtual LPIs in GICv3
- IRQ interrupt obtaining abnormal possibilities
- MKL02Z32xxx4 (FRDM-KL02Z Board) Timer overflow interrupt not firing
- Interrupt handling with push buttons in ARMv7
- Ultrasonic range finder HC-SR04 using one timer
- Does the Direct Memory Access (DMA) interfere with the execution of user program execution?
- How to write the external interrupt callback function of Linux kernel v3.10?
- Interaction with a thread from ISR using C++ Standard Library on ESP32
- Global variable value doesn't change in ISR in C
- The module first installed the alarm when it started
- ATTiny1606 Timer TCA0 interrupt not triggering
- RT linux isr routine
Related Questions in DOS
- DOSbox automatically freezes and crashes without any prompt warnings
- How to limit printing contents of ASCII file to once while using recursion?
- Move string to end of file assembly
- I search a unit to solve the turbo pascal 255 string limit
- Unknown error in assembly language code, the result of multiplication operation is always random symbol
- is there analog of unix program "which" in DOS operating system?
- will gwbasic run on 32 bit windows 7
- "Symbol not defined : @STACK " error in ASM code for 8086. Compiled using DOSBOX ,MASM
- Why does code in MS-DOS Debug does not run and makes the prompt disappear?
- Error in emulator output for pong game in assembly language
- x86 MS Macro Assembler Hello World program crashes
- Convert DOS od (dump) file output to txt
- MS-DOS D-Fend Reloaded file encoding "application/octet-stream; charset=binary" to ASCII in ubuntu
- Checking for collision of snake with border in 8088 assembly language
- Question for the dos EGA 0E mode port programming
Related Questions in TURBO-C++
- Breaking of infinite loop in turbo c
- gets(name) not working if i do goto or main(); in turbo c++
- Issues while installing libgraph (for graphics.h library) at Fedora 38
- Turbo C++ tools produce "No DOS extensions in the DPMI server" when compiling and linking code
- how can I use getline function in c?
- how to solve error ( functions containing switch are not expanded inline ) in C++
- Changing the printed statement using user input
- Idk why i have a declaration syntax error(I'm just a beginner)
- I am Working with Doubly Linked Lists in C and I am Using Turbo C++ but The Compiler is Taking Two Additional Nodes without Adding
- Keyboard interrupt on Turbo C++ 3.1
- Why for loop is not working in switch case control?
- I get wrong and signed value in 'C' language
- Echelon form of a Matrix using Gauss-Elimination [C Programming]
- String program(replace letter)
- Can I change keyboard shortcut in turbo c++
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use the
getch()function in<conio.h>, which pauses program execution until one key is pressed, and returns the character of the pressed key.Example:
Note that
<conio.h>is a non-standard library. The<conio.h>library and the function are also available in modern versions of Visual C++, but the function is called_getch().