⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 terminalio.h

📁 snake game in avr snake game in avr
💻 H
字号:
/*
** terminalio.h
**
** Functions for interacting with the terminal. These should be used
** to encapsulate all sending of escape sequences.
**
** Written by Peter Sutton, October 2003.
*/

#include <inttypes.h>

/*
** x and y are measured relative to the top left of the screen. First
** column is 1, first row is 1. (This is display (x,y). This is not
** the same as the board (x,y).)
**
** The parameter argument below is a number between 0 and 47 
** (not all values are valid) - see prac 9 for possible values.
*/

void move_cursor(int x, int y);
void normal_display_mode(void);
void reverse_video(void);
void clear_terminal(void);
void clear_to_end_of_line(void);
void set_display_attribute(int8_t parameter);

/*
** Draw a reverse video line on the terminal. startx must be <= endx.
** starty must be <= endy
*/
void draw_horizontal_line(int y, int startx, int endx);
void draw_vertical_line(int x, int starty, int endy);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -