conio.h
is a C header file used with old MS-DOS compilers to create text user interfaces. Compilers that target other operating systems, such as Linux-based, 32-bit Windows and OS/2, provide equivalent functionality through other header files and libraries.
The #include <curses.h>
will give you almost all of the functionality provided by conio.h
.
“ncurses” needs to be installed in the first place.
If you use the Apt package manager:
sudo apt-get install libncurses5-dev libncursesw5-dev
If you use rpm
:
sudo yum install ncurses-devel ncurses
For getch
, take a look at the “NCURSES Programming HOWTO” article.
Related Posts:
- difference between
and - Bind failed: Address already in use
- Warning/error “function declaration isn’t a prototype”
- warning: initializer element is not computable at load time
- Why should we check WIFEXITED after wait in order to kill child processes in Linux system call?
- Why do I get “cast from pointer to integer of different size” error?
- Where to find the complete definition of off_t type?
- Undefined reference to main – collect2: ld returned 1 exit status
- malloc(): memory corruption
- typedef fixed length array
- Where does linux store my syslog?
- How to solve static declaration follows non-static declaration in GCC C code?
- How to know what the ‘errno’ means?
- How to use shared memory with Linux in C
- Why does ENOENT mean “No such file or directory”?
- Undefined reference to pthread_create in Linux
- what is the difference between uint16_t and unsigned short int incase of 64 bit processor?
- Openssl : error “self signed certificate in certificate chain”
- Convert char to int in C and C++
- Bad File Descriptor with Linux Socket write() Bad File Descriptor C
- Write to .txt file?
- What is the LD_PRELOAD trick?
- what is stack smashing (C)?
- How to extract C source code from .so file?
- How to print pthread_t
- connect Error: “No route to host”
- gcc: error: unrecognized command line option
- warning: incompatible implicit declaration of built-in function ‘xyz’
- The difference between stdout and STDOUT_FILENO
- Fatal error: iostream: No such file or directory in compiling C program using GCC
- Does connect() block for TCP socket?
- Creating a new directory in C
- where does stdio.o live in linux machine?
- Linux equivalent of I_PUSH
- conflicting types error when compiling c program using gcc
- What is a file with extension .a?
- Display value found at given address gdb
- What can cause a “Resource temporarily unavailable” on sock send() command
- gcc/g++: “No such file or directory”
- Efficient way to find task_struct by pid
- waitpid, wnohang, wuntraced. How do I use these
- How to initialize array to 0 in C?
- How to do scanf for single char in C
- Sign extend a nine-bit number in C
- Warning: assignment from incompatible pointer type
- Break statement not within loop or switch in C
- How to properly malloc for array of struct in C
- Cache Simulator in C
- C: error: expected ‘)’ before ‘;’ token
- Where is the C auto keyword used?
- valgrind – Address —- is 0 bytes after a block of size 8 alloc’d
- make: Nothing to be done for `all’
- (.text+0x20): undefined reference to `main’ and undefined reference to function
- Data argument not used by format strings in C
- execv vs execvp, why just one of them require the exact file’s path?
- expected expression before ‘{‘ token
- Setting std=c99 flag in GCC
- C Vector/ArrayList/LinkedList
- Convert char array to a int number in C
- Error: initializer element is not computable at load time
- What is the difference between %f and %lf in C?
- Returning an array using C
- Debug vs Release in CMake
- What is stdin in C language?
- Debug vs Release in CMake
- How to prevent multiple definitions in C?
- How to pass 2D array (matrix) in a function in C?
- error: ‘for’ loop initial declarations are only allowed in C99 mode [duplicate]
- How can you print multiple variables inside a string using printf?
- c – warning: implicit declaration of function ‘printf’
- Flushing buffers in C
- What are 0x01 and 0x80 representative of in C bitwise operations?
- How to make parent wait for all child processes to finish?
- error: aggregate value used where an integer was expected
- Undefined Reference issues using Semaphores
- What is time(NULL) in C?
- Use of cudamalloc(). Why the double pointer?
- C dynamically growing array
- Implementing shell in C and need help handling input/output redirection
- Compiling a .C file: Undefined symbols for architecture x86_64
- How to compile makefile using MinGW?
- Mapping a numeric range onto another
- Why are hexadecimal numbers prefixed with 0x?
- Portable way to check if directory exists [Windows/Linux, C]
- OpenGL — GL_LINE_LOOP —
- too many arguments for format [-Wformat-extra-args]
- How to use EOF to run through a text file in C?
- Incorrect checksum for freed object on malloc
- Valgrind complains with “Invalid write of size 8”
- Read and write to binary files in C?
- Removing trailing newline character from fgets() input
- Expression must be a pointer to a complete object type using simple pointer arithmetic
- How to copy a char array in C?
- Simple way to check if a string contains another string in C?
- What does “request for member ‘*******’ in something not a structure or union” mean?
- cast to pointer from integer of different size, pthread code
- gcc: undefined reference to
- Invalid type argument of unary ‘*’ (have ‘int’) Error in C
- Segmentation fault (core dumped) due to fgets – I think
- C subscripted value is neither array nor pointer nor vector when assigning an array element value