Serenity Operating System
at master 47 lines 863 B view raw
1/* 2 * Copyright (c) 2021, Daniel Bertalan <dani@danielbertalan.dev> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <Kernel/API/POSIX/termios.h> 10#include <Kernel/API/ttydefaults.h> 11 12#ifdef __clang__ 13# pragma clang diagnostic push 14# pragma clang diagnostic ignored "-Wc99-designator" 15#endif 16 17#ifdef __cplusplus 18extern "C" { 19#endif 20 21static const cc_t ttydefchars[NCCS] = { 22 [VINTR] = CINTR, 23 [VQUIT] = CQUIT, 24 [VERASE] = CERASE, 25 [VKILL] = CKILL, 26 [VEOF] = CEOF, 27 [VTIME] = CTIME, 28 [VMIN] = CMIN, 29 [VSWTC] = CSWTC, 30 [VSTART] = CSTART, 31 [VSTOP] = CSTOP, 32 [VSUSP] = CSUSP, 33 [VEOL] = CEOL, 34 [VREPRINT] = CREPRINT, 35 [VDISCARD] = CDISCARD, 36 [VWERASE] = CWERASE, 37 [VLNEXT] = CLNEXT, 38 [VEOL2] = CEOL2 39}; 40 41#ifdef __clang__ 42# pragma clang diagnostic pop 43#endif 44 45#ifdef __cplusplus 46} 47#endif