Skip to content
This repository was archived by the owner on Jan 6, 2020. It is now read-only.
mariomacPublic archive

About

Simple library to allow nicer Linux and Mac console programs.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better Console

This simple library has been done for my first-year students at Universitat Politècnica de Catalunya. It adds to the Linux and Mac console the next functionalities:

  • Specify foreground and background color for the printed text
  • Clear screen
  • Specify coordinates in the screen to print to.
  • Retrieve console screen size (rows and columns)
  • Empty the keyboard buffer
  • Set console type echo on/off
  • Show/hide console cursor
  • Non-blocking read of the standard input (keyboard)

Please have a look to the betterconsole.h in-comments documentation for more documentation about the library.

It includes some utilization examples.

To compile the library as well as the examples:

gcc betterconsole.c examples.c -o examples

Si te gustan mis aportaciones a github, quizás te gustará mi libro Del bit a la Nube

About

Simple library to allow nicer Linux and Mac console programs.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages