TacOS
0.2
|
#include <sys/cdefs.h>
Aller au code source de ce fichier.
Structures de données | |
struct | termios |
Macros | |
#define | NCCS 17 |
#define | TCGETS 1 |
#define | TCSETS 2 |
#define | TCSANOW 1 |
#define | INLCR 0000100 |
#define | IGNCR 0000200 |
#define | ICRNL 0000400 |
#define | IXON 0002000 |
#define | IXOFF 0010000 |
#define | OPOST 0000001 |
#define | ONLCR 0000004 |
#define | OCRNL 0000010 |
#define | ONOCR 0000020 |
#define | ONLRET 0000040 |
#define | ISIG 0000001 |
#define | ICANON 0000002 |
#define | ECHO 0000010 |
#define | ECHOE 0000020 |
#define | ECHOK 0000040 |
#define | ECHOCTL 0001000 |
#define | ECHOKE 0004000 |
#define | CSIZE 0000060 |
#define | CS5 0000000 |
#define | CS6 0000020 |
#define | CS7 0000040 |
#define | CS8 0000060 |
#define | CSTOPB 0000100 |
#define | CREAD 0000200 |
#define | PARENB 0000400 |
#define | PARODD 0001000 |
#define | HUPCL 0002000 |
#define | VINTR 0 |
#define | VQUIT 1 |
#define | VERASE 2 |
#define | VKILL 3 |
#define | VEOF 4 |
#define | VTIME 5 |
#define | VMIN 6 |
#define | VSWTC 7 |
#define | VSTART 8 |
#define | VSTOP 9 |
#define | VSUSP 10 |
#define | VEOL 11 |
#define | VREPRINT 12 |
#define | VDISCARD 13 |
#define | VWERASE 14 |
#define | VLNEXT 15 |
#define | VEOL2 16 |
Définitions de type | |
typedef unsigned int | cc_t |
typedef unsigned int | speed_t |
Fonctions | |
int | tcgetattr (int fd, struct termios *termios_p) |
Récupère la configuration du terminal. Plus de détails... | |
int | tcsetattr (int fd, int optional_actions, const struct termios *termios_p) |
Change la configuration du terminal. Plus de détails... | |
speed_t | cfgetispeed (const struct termios *termios_p) |
int | cfsetispeed (struct termios *termios_p, speed_t speed) |
void | cfmakeraw (struct termios *termios_p) |
Variables | |
__BEGIN_DECLS typedef unsigned int | tcflag_t |
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 de ce que fait le fichier
#define CREAD 0000200 |
Active le receiver.
#define CS5 0000000 |
5 bits de données.
#define CS6 0000020 |
6 bits de données.
#define CS7 0000040 |
7 bits de données.
#define CS8 0000060 |
8 bits de données.
#define CSIZE 0000060 |
Masque pour la taille.
#define CSTOPB 0000100 |
2 bits de stop au lieu d'un.
#define ECHO 0000010 |
Active l'echoing.
#define ECHOCTL 0001000 |
Si ECHO activé alors ce qui n'est pas un signal de control est affiché sous la forme ^X.
#define ECHOE 0000020 |
Si ICANON alors ERASE permet de supprimer.
#define ECHOK 0000040 |
Si ICANON alors KILL efface la ligne actuelle.
#define ECHOKE 0004000 |
Si ICANON le KILL est affiché en effaçant chaque caractère de la ligne.
#define HUPCL 0002000 |
Lower modem control lines after last process closes the device.
#define ICANON 0000002 |
Active le mode canonique.
#define ICRNL 0000400 |
Traduit les CR en NL en entrée.
#define IGNCR 0000200 |
Ignore les CR.
#define INLCR 0000100 |
Traduit les NL en CR en entrée.
#define ISIG 0000001 |
Active l'envoi de signaux (INTR, QUIT, SUSP, DSUSP).
#define IXOFF 0010000 |
Désactive le XON/XOFF sur le flux de control en sortie.
#define IXON 0002000 |
Active le XON/XOFF sur le flux de control en sortie.
#define OCRNL 0000010 |
Converti les CR en NL sur la sortie.
#define ONLCR 0000004 |
Converti les NL en CR sur la sortie.
#define ONLRET 0000040 |
Pas de CR.
#define ONOCR 0000020 |
Pas de CR sur la colonne 0.
#define OPOST 0000001 |
Enable implementation-defined output processing.
#define PARENB 0000400 |
Bit de parité à la sortie et check en entrée.
#define PARODD 0001000 |
Si activé alors parité impaire.
#define TCSANOW 1 |
Les modifications sont effectuées immédiatement.
#define VDISCARD 13 |
Toggle start/stop discarding pending output.
#define VEOF 4 |
Caractère EOF.
#define VEOL 11 |
Caractèle EOL.
#define VEOL2 16 |
Encore un autre EOL.
#define VERASE 2 |
Caractère ERASE.
#define VINTR 0 |
Caractère INTR.
#define VKILL 3 |
Caractère KILL.
#define VLNEXT 15 |
Quotes the next input character.
#define VMIN 6 |
Nombre minimum de caractère en non canonique.
#define VQUIT 1 |
Caractère QUIT.
#define VREPRINT 12 |
Reprint unread characters.
#define VSTART 8 |
Caractère Start.
#define VSTOP 9 |
Caractère Stop.
#define VSUSP 10 |
Caractère Suspend.
#define VSWTC 7 |
Caractère Switch.
#define VTIME 5 |
Time out en noncanonique.
#define VWERASE 14 |
Word erase.
int tcgetattr | ( | int | fd, |
struct termios * | termios_p | ||
) |
fd | File descriptor du terminal. |
termios_p | Pointeur vers une structure termios pour y placer le résultat. |
int tcsetattr | ( | int | fd, |
int | optional_actions, | ||
const struct termios * | termios_p | ||
) |
fd | File descriptor du terminal. |
optional_actions | Précise quand les changements doivent avoir lieu (non implémenté). |
termios_p | Pointeur vers une structure termios qui contient la configuration. |