Conio h для linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Workaround compatible Turbo C’s Console Input Output library for GNU C

License

kbhagchandani/conio.h

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Console Input Output file for GNU C

This is conio.h compatible header file for gcc. Tried and tested on ubuntu linux from 9.10 to 19.04

You don’t need to any special installation for this file. Simply copy the ‘conio.h’ file to your ‘include’ directory. e.g. sudo cp conio.h /usr/include

Hint — installation copied from conio4gcc:

sudo make install copies conio.h to the include directory. sudo make uninstall removes conio.h from the include directory.

It will work without copying the conio.h to /usr/include First compile the example file gcc example.c -o example Run the example ./example

GNU C++ requires namespaces so you must enable them in the header file before using them. Please uncomment line number 54 and 207 in conio.h

Читайте также:  Linux выполнить php скрипт

About

Workaround compatible Turbo C’s Console Input Output library for GNU C

Источник

Hi! Welcome

This is a library conio.h for linux 🖥️. you can install manual library conio.h for linux step by step here.

Hi! Welcome

This is a library conio.h for linux. Copy file and paste file conio.h on /usr/include/ but don’t forget before you want copy paste on /usr/include/ you must open folder as administrator first !!

conio h

List Function

cprintf cscanf gotoxy clrscr textcolor textbackground wherex wherey getch getche ungetch kbhit putch putchar cputs clreol insline (not implemented) delline (not implemented) cgets (not implemented) getpass (not implemented) gettext (not implemented) _cprintf _cscanf _cputs _getche _kbhit _putch _ungetch 

Installation for Linux

Step 1 :

  • Open terminal sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get install git
  • git clone https://github.com/zoelabbb/conio.h.git or Clone here
  • cd conio.h

Copy Paste

Step 2 :

  • After you finish download file conio.h
  • Copy file conio.h -> !! copy file not folder !!
  • Go to /usr/include/
  • Right click on folder /usr/include/
  • Choose Open as Administrator
  • Paste file conio.h
  • Close your IDE and open again
  • Done 😀

Wanna Support me ?

Hosted on GitHub Pages — Theme by mattgraham

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

conio.h library for UNIX-like OSes

danil-kondr2016/libconio

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Библиотека conio.h для Linux и других UNIX-подобных ОС

Данная библиотека реализует функции из библиотеки conio.h, которая присутствует в Microsoft Visual C++. Она необходима для того, чтобы код с #include мог нормально компилироваться без излишних манипуляций с исходным кодом.

Данную библиотеку не рекомендуется использовать в новом программном обеспечении. Вместо неё рекомендуется использовать ncurses или любую другую подобную библиотеку (например, PDCurses, которая в большинстве своём совместима с ncurses). Это позволит улучшить переносимость кода.

Если же вы решили использовать данную библиотеку, то для того, чтобы её установить в систему, необходимо:

Для того, чтобы ею воспользоваться, необходимо указать -lconio в командной строке компилятора.

Внимание! Не рекомендуется использовать эту библиотеку на MinGW и Microsoft Visual C++ (там уже есть своя conio.h), поскольку она содержит специфичные для Linux параметры!

About

conio.h library for UNIX-like OSes

Читайте также:  Где хранятся хеши паролей linux

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

This is a library conio.h for linux 🖥️ . you can install manual library conio.h for linux step by step here.

License

zoelabbb/conio.h

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

* created a basic makefile to install in /usr/include * fixed readme to explain make usage * created a basic makefile to install in /usr/include

Git stats

Files

Failed to load latest commit information.

README.md

If you see at the top of some C/C++ code, 90% of the time you’ll see the line #include .

We’re including the file into our main program. The header file contains certain library functions that peform input and output operation.

#include is a header file, conio stands for console-input-output and (.h) is basically header file extension.

It contains some functions and methods for formatting the output and getting input in the console.

conio h fatal error

The error will be shown like below :

cprintf cscanf gotoxy clrscr textcolor textbackground wherex wherey getch getche ungetch kbhit putch putchar cputs clreol insline (not implemented) delline (not implemented) cgets (not implemented) getpass (not implemented) gettext (not implemented) _cprintf _cscanf _cputs _getche _kbhit _putch _ungetch 

Some of it’s functions which are often used :

  • kbhit — Determines if a keyboard key was pressed.
  • gcgets — Reads a string directly from the console.
  • cscanf — Reads formatted values directly from the console.
  • putch — Writes a character directly to the console.
  • cputs — Writes a string directly to the console.
  • cprintf — Formats values and writes them directly to the console.
  • clrscr — Clears the screen.
  • getch — Get char entry from the console

How To Install Library #include

This is a library conio.h for linux. Just copy file and paste file conio.h on /usr/include/ but don’t forget before you want copy paste on /usr/include/ you must open folder as ADMINISTRATOR first !!

  • Open your terminal can as root
  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get install git
  • git clone https://github.com/zoelabbb/conio.h.git or Click to Clone Repos
  • cd conio.h

Copy & Paste

Now you can using library #include .

Читайте также:  Linux mail not found

Wanna Support me ? You can buy me some coffee via :

About

This is a library conio.h for linux 🖥️ . you can install manual library conio.h for linux step by step here.

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Implementation of conio.h from ms-dos based compilers for linux systems

License

casualsnek/linuxconio

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

«conio.h» implementation for Linux

This is the implementation of «conio.h» from ms-dos based C compilers for linux/*nix systems

Why use «conio» on linux instead of «curses» or other libraries

  • Because my college forces me to use «conio» library (which is not available on linux) and i have to make sure the code i write runs on my teacher’s computer too.
  • Yes, this is the only reason

Installation is done by copying «conio.h» file to location where compiler looks for header files Or keeping «conio.h» in same directory as your code and using #include «conio.h» instead of #include

On most systems it can be installed by running following commands in terminal emulator

$ git clone https://github.com/casualsnek/linuxconio $ cd linuxconio $ sudo cp conio.h /usr/include/conio.h

Restart your IDE if you are using one and use it as you normally would

You can check if it is working properly after installing by compilling and running «testconio.c» using following commands:

$ gcc testconio.c -o testconio $ ./testconio

May not be exact to windows «conio.h» but mostly seems to work in similar ways

  • showcursor
  • nocursor
  • cagxy
  • gotox
  • gotoxy
  • clrscr
  • kbhit
  • textbackground
  • textcolor
  • getch
  • getche
  • clreol
  • delline
  • cprintf
  • cscanf
  • cputs
  • cgets
  • wherex
  • wherey
  • getpass

You can help by adding support for missing functions or improving the already existing ones. Please star this repository if you find ths useful

About

Implementation of conio.h from ms-dos based compilers for linux systems

Источник

Оцените статью
Adblock
detector