TacOS
0.2
|
Terminal posix-like. Plus de détails...
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_t * | alloc_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 |
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.
#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.
typedef struct _tty_driver_t tty_driver_t |
Structure qui sert à l'enregistrement d'un driver tty.
typedef struct _tty_operations_t tty_operations_t |
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.
tty_driver_t* alloc_tty_driver | ( | int | lines | ) |
Allocation d'un driver de terminal.
lines | Nombre de terminaux géré par ce driver. |
void tty_insert_flip_char | ( | tty_struct_t * | tty, |
unsigned char | ch | ||
) |
Ajoute un caractère dans le butter du tty.
tty | le tty qui nous intéresse. |
ch | le caractère à ajouter. |
int tty_register_driver | ( | tty_driver_t * | driver | ) |
Enregistre en tant que char device un driver alloué et configuré.
driver | Le driver à enregistrer. |