您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _IPXE_LINECONSOLE_H
  2. #define _IPXE_LINECONSOLE_H
  3. /** @file
  4. *
  5. * Line-based console
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. #include <stdint.h>
  10. #include <ipxe/ansiesc.h>
  11. /** A line-based console */
  12. struct line_console {
  13. /** Data buffer
  14. *
  15. * Must initially be filled with NULs
  16. */
  17. char *buffer;
  18. /** Current index within buffer */
  19. size_t index;
  20. /** Length of buffer
  21. *
  22. * The final character of the buffer will only ever be used as
  23. * a potential terminating NUL.
  24. */
  25. size_t len;
  26. /** ANSI escape sequence context */
  27. struct ansiesc_context ctx;
  28. };
  29. extern size_t line_putchar ( struct line_console *line, int character );
  30. #endif /* _IPXE_LINECONSOLE_H */