ttydefaultschars.h 863 B

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