📄 tty.h
字号:
#ifndef _TTY_H#define _TTY_H#include "termios.h"#include "task.h"#define TTY_BUF_SIZE 1024struct tty_queue { unsigned long data; unsigned long head; unsigned long tail; struct task_struct * proc_list; char buf[TTY_BUF_SIZE]; };#define INIT_C_CC "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0"struct tty_struct { struct termios termios; int pgrp; int stopped; void (*write)(struct tty_struct * tty); struct tty_queue read_q; struct tty_queue write_q; struct tty_queue secondary; };#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -