📄 cprintf.c
字号:
/******************************************************************************* ** Copyright 2005 University of Cambridge Computer Laboratory. ** ** This file is part of Nprobe. ** ** Nprobe is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** Nprobe is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with Nprobe; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** *******************************************************************************/#include <stdio.h>#include "cprintf.h"char csf_bl[] = {27, 91, 51, 48, 109, 0};char csf_r[] = {27, 91, 51, 49, 109, 0};char csf_g[] = {27, 91, 51, 50, 109, 0};char csf_y[] = {27, 91, 51, 51, 109, 0};char csf_b[] = {27, 91, 51, 52, 109, 0};char csf_m[] = {27, 91, 51, 53, 109, 0};char csf_c[] = {27, 91, 51, 54, 109, 0};char csf_w[] = {27, 91, 51, 55, 109, 0};char csf_norm[] = {0};char csf_def[] = {27, 91, 51, 59, 109, 0};char csf_under[] = {27, 91, 52, 58, 109, 0};char csf_bld[] = {27, 91, 49, 58, 109, 0};char csb_bl[] = {27, 91, 52, 48, 109, 0};char csb_r[] = {27, 91, 52, 49, 109, 0};char csb_g[] = {27, 91, 52, 50, 109, 0};char csb_y[] = {27, 91, 52, 51, 109, 0};char csb_b[] = {27, 91, 52, 52, 109, 0};char csb_m[] = {27, 91, 52, 53, 109, 0};char csb_c[] = {27, 91, 52, 54, 109, 0};char csb_w[] = {27, 91, 52, 55, 109, 0};char csb_norm[] = {0};char csb_def[] = {27, 91, 52, 59, 109, 0};char c_up[] = {27, 91, 1, 65, 0};char c_home[] = {27, 91, 49, 48, 68, 0};char clear_r[] = {27, 91, 48, 75, 0};int cprintf_restore_defaults(){ cprintf(0, F_DEF, "\n"); printf("%s\n", csb_def); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -