File:  [Isaki's NoNo m68k/m88k emulator] / nono / host / comdriver_cons.h
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs
Wed Apr 29 17:06:02 2026 UTC (2 months, 3 weeks ago) by root
Branches: MAIN, Isaki
CVS tags: v027, HEAD
nono 1.7.0

//
// nono
// Copyright (C) 2024 nono project
// Licensed under nono-license.txt
//

//
// シリアルポートのメイン画面コンソール入出力ドライバ
//

#pragma once

#include "comdriver.h"
#include "autofd.h"

class ConsoleDevice;

class COMDriverConsole : public COMDriver
{
	using inherited = COMDriver;
 public:
	explicit COMDriverConsole(HostDevice *hostdev_);
	~COMDriverConsole() override;

	void DetachConsole();

	bool InitDriver(bool startup) override;
	int Read() override;
	void Write(uint32 data) override;

	void EnqueueChar(uint charcode);

 private:
	// VM側 (UI スレッド) からの連絡用。
	autofd rxpipe {};
	autofd txpipe {};

	ConsoleDevice *console {};
};

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.