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

mariomac/better-console

master
Switch branches/tags

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?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages