📄 console.h
字号:
#ifndef CONSOLE_DRV_H
#define CONSOLE_DRV_H
#include "../libs/motolibs.h"
/* Clear console viewport */
void console_clearscreen(void);
/* Set console wiewport, in pixels */
void console_setviewport(byte nx1, byte ny1, byte nx2, byte ny2);
/* Set colors used for console output */
void console_setcolors(hword bgcol, hword forecol);
/* Initialise the console */
void console_init(void);
/* Put a character onto console */
void console_putchar(unsigned char ch, byte xp, byte yp, hword bgcol, hword chcol);
/* Print a string on the console */
void console_printstr(char * str);
/* Print a hexadecimal number on the console */
//TODO: lacks documentation
void console_printui32_hex(word num, byte chars, bool prefix);
/* Print a decimal number on the console */
void console_printui32_dec(word num);
/* Set cursor to a position */
void console_gotoxy(byte xp, byte yp);
/* Starts a new line */
void console_newline(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -