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

📄 main.cpp

📁 一个Windows下的Linux专用虚拟机
💻 CPP
字号:
/* * This source code is a part of coLinux source package. * * Dan Aloni <da-x@gmx.net>, 2003 (c) * * The code is licensed under the GPL. See the COPYING file at * the root directory. * */#include "console.h"#include "main.h"extern "C" {#include <colinux/user/debug.h>}console_window_t *global_window = 0;void co_user_console_handle_scancode(co_scan_code_t sc){	if (!global_window)		return;	global_window->handle_scancode(sc);}int co_user_console_main(int argc, char **argv){	co_rc_t rc;	co_debug_start();		rc = global_window->parse_args(argc, argv);	if (!CO_OK(rc)) {		co_debug("The console program was unable to parse the parameters.");		goto co_user_console_main_error;	}	rc = global_window->start();	if (!CO_OK(rc)) {		co_debug("The console program could not start.");		goto co_user_console_main_error;	}	do {		rc = global_window->loop();	} while (CO_OK(rc) && global_window->is_attached());	if (global_window->is_attached())		global_window->detach();	if (CO_OK(rc)) {		co_debug_end();		return 0;	}co_user_console_main_error:	co_debug("The console program encountered an error: %08x", (int)rc);	co_debug_end();	global_window = 0;	return -1;}

⌨️ 快捷键说明

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