📄 terminal.h
字号:
// This file is part of MANTIS OS, Operating System// See http://mantis.cs.colorado.edu///// Copyright (C) 2003,2004,2005 University of Colorado, Boulder//// This program is free software; you can redistribute it and/or// modify it under the terms of the mos license (see file LICENSE)/** Project Mantis File: terminal.h Authors: Charles Gruenwald III : gruenwal@colorado.edu Date: 03-12-2004 **//** @file terminal.h * @brief Terminal driver for stdin and stdout - xmos processes * @author Charles Gruenwald III * @date 03/12/2004 */#ifndef _TERMINAL_H_#define _TERMINAL_H_#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdio.h>#include <unistd.h>#include "com.h"/** @brief Setup the serial port and register with the com layer. */uint8_t terminal_init(void);/** @brief Send the buffer to the terminal. * @param buf Buffer to use */uint8_t terminal_send(comBuf *buf);/** @brief Not implemented. * * In linux this function is very important because we don't * have any low power functionality, but you still must set * to listen mode if you want to get packets. * @param mode */uint8_t terminal_mode(uint8_t mode);/** @brief Not implemented. * * Generic control function for doing things like changing the * properties of the serial connection etc... */uint8_t terminal_ioctl(uint8_t request, va_list ap);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -