TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
Structures de données | Macros | Définitions de type | Fonctions | Variables
Référence du fichier tty.h

Terminal posix-like. Plus de détails...

#include <types.h>
#include <termios_types.h>
#include <fd_types.h>
Graphe des dépendances par inclusion de tty.h:
Ce graphe montre quels fichiers incluent directement ou indirectement ce fichier :

Aller au code source de ce fichier.

Structures de données

struct  _tty_struct_t
 
struct  _tty_operations_t
 
struct  _tty_driver_t
 
struct  winsize
 Structure qui contient la taille d'une fenetre. Plus de détails...
 

Macros

#define TIOCGWINSZ   3
 
#define TIOCSCTTY   4
 
#define MAX_INPUT   255
 
#define TTY_DRIVER_TYPE_SYSTEM   1
 
#define TTY_DRIVER_TYPE_CONSOLE   2
 
#define TTY_DRIVER_TYPE_SERIAL   3
 
#define TTY_DRIVER_TYPE_PTY   4
 
#define INIT_C_CC   {3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 21, 23, 22, 0}
 

Définitions de type

typedef struct _tty_struct_t tty_struct_t
 
typedef struct _tty_operations_t tty_operations_t
 
typedef struct _tty_driver_t tty_driver_t
 

Fonctions

tty_driver_talloc_tty_driver (int lines)
 
int tty_register_driver (tty_driver_t *driver)
 
void tty_insert_flip_char (tty_struct_t *tty, unsigned char ch)
 
void tty_init ()
 Initialisation du système de terminaux.
 

Variables

struct termios tty_std_termios
 

Description détaillée

Auteur
TacOS developers

LICENSE

Copyright (C) 2010, 2011, 2012 - TacOS developers.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.

DESCRIPTION

Documentation des macros

#define MAX_INPUT   255

Taille du buffer où sont enregistrés les caractères prêt pour la lecture.

#define TIOCGWINSZ   3

Request get window size.

#define TIOCSCTTY   4

Request set ctrl terminal.

Documentation des définitions de type

typedef struct _tty_driver_t tty_driver_t

Structure qui sert à l'enregistrement d'un driver tty.

Contient les opérations fournies par le tty driver.

typedef struct _tty_struct_t tty_struct_t

Structure qui est passée à chaque appel de fonction (open, close, write...) au tty driver.

Documentation des fonctions

tty_driver_t* alloc_tty_driver ( int  lines)

Allocation d'un driver de terminal.

Paramètres
linesNombre de terminaux géré par ce driver.
Renvoie
le driver alloué.

Voici le graphe d'appel pour cette fonction :

Voici le graphe des appelants de cette fonction :

void tty_insert_flip_char ( tty_struct_t tty,
unsigned char  ch 
)

Ajoute un caractère dans le butter du tty.

Paramètres
ttyle tty qui nous intéresse.
chle caractère à ajouter.

Voici le graphe d'appel pour cette fonction :

Voici le graphe des appelants de cette fonction :

int tty_register_driver ( tty_driver_t driver)

Enregistre en tant que char device un driver alloué et configuré.

Paramètres
driverLe driver à enregistrer.
Renvoie
0 en cas de succès (mais ne détecte pas encore les erreurs...).

Voici le graphe d'appel pour cette fonction :

Voici le graphe des appelants de cette fonction :