From a6959ac1f80e415617b091bc08935422b05059c7 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Thu, 4 Nov 2021 17:37:19 +0100 Subject: [PATCH] external functions in readme ok --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 0567cd0..51dc27d 100644 --- a/README.md +++ b/README.md @@ -102,9 +102,12 @@ - **perror** : `void perror(const char *s);` produces a message on standard error describing the last error encountered during a call to a system or library function ### termcap : The termcap data base describes the capabilities of hundreds of different display terminals in great detail The termcap library is provided for easy access this data base in programs that want to do terminal-independent character-based display output + - **tgetent** : `int tgetent (char *buffer, char *termtype);` finds the description of the terminal type and remembers it internally so that you can interrogate it about specific terminal capabilities + Each piece of information recorded in a terminal description is called a capability There are three functions to use to get the value of a capability : + - **tgetflag** : `int tgetflag (char *name);` get a boolean value - **tgetnum** : `int tgetnum (char *name);` get a capability value that is numeric - **tgetstr** : `char *tgetstr (char *name, char **area);` get a string value