2024-07-02 01:27:14 +00:00
|
|
|
|
|
2024-07-02 20:56:17 +00:00
|
|
|
|
MB_MSXPIPE_COLOR_FG_SAFE_CMD ?= 116
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_FG_SAFE_CMD,"Foreground color of safe command session pipe.")
|
2024-07-02 20:56:17 +00:00
|
|
|
|
|
|
|
|
|
MB_MSXPIPE_COLOR_BG_SAFE_CMD ?= 000
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_BG_SAFE_CMD,"Background color of safe command session pipe.")
|
2024-07-02 20:56:17 +00:00
|
|
|
|
|
|
|
|
|
MB_MSXPIPE_COLOR_FG_SAFE_TEST ?= 511
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_FG_SAFE_TEST,"Foreground color of safe test session pipe.")
|
2024-07-02 20:56:17 +00:00
|
|
|
|
|
|
|
|
|
MB_MSXPIPE_COLOR_BG_SAFE_TEST ?= 000
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_BG_SAFE_TEST,"Background color of safe test session pipe.")
|
2024-07-02 20:56:17 +00:00
|
|
|
|
|
|
|
|
|
MB_MSXPIPE_COLOR_FG_RUN_GUI ?= 151
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_FG_RUN_GUI,"Foreground color of run gui session pipe.")
|
2024-07-02 20:56:17 +00:00
|
|
|
|
|
|
|
|
|
MB_MSXPIPE_COLOR_BG_RUN_GUI ?= 000
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_BG_RUN_GUI,"Background color of run gui session pipe.")
|
2024-07-02 20:56:17 +00:00
|
|
|
|
|
|
|
|
|
|
2024-07-02 14:31:42 +00:00
|
|
|
|
define mb_msxpipe_safe_cmd
|
2024-07-10 12:05:38 +00:00
|
|
|
|
$(MB__ )$(call mb_make_call,mb_autoexec_write_default,$(1),$(MB_MSXPIPE_COLOR_FG_SAFE_CMD),$(MB_MSXPIPE_COLOR_BG_SAFE_CMD))
|
|
|
|
|
$(MB__ )$(call mb_make_call,mb_autoexec_append_safe_cmd,$(1),$(2))
|
|
|
|
|
$(MB__ )$(call mb_make_call,mb_autoexec_append_exit,$(1))
|
|
|
|
|
$(MB__ )$(call mb_make_call,mb_openmsx_dosctl,$(1),$(3))
|
2024-07-02 01:27:14 +00:00
|
|
|
|
endef
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_function,mb_msxpipe_safe_cmd,"Runs openMSX and safely executes one command.","<dir> <cmd> [machine]")
|
2024-07-02 01:27:14 +00:00
|
|
|
|
|
2024-07-02 21:18:20 +00:00
|
|
|
|
|
2024-07-02 14:31:42 +00:00
|
|
|
|
define mb_msxpipe_safe_test
|
2024-07-10 12:05:38 +00:00
|
|
|
|
$(MB__ )$(call mb_make_call,mb_autoexec_write_default,$(1),$(MB_MSXPIPE_COLOR_FG_SAFE_TEST),$(MB_MSXPIPE_COLOR_BG_SAFE_TEST))
|
|
|
|
|
$(MB__ )$(call mb_make_call,mb_autoexec_append_safe_test,$(1),$(2))
|
|
|
|
|
$(MB__ )$(call mb_make_call,mb_autoexec_append_exit,$(1))
|
|
|
|
|
$(MB__ )$(call mb_make_call,mb_openmsx_dosctl,$(1),$(3))
|
2024-07-02 01:27:14 +00:00
|
|
|
|
endef
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_function,mb_msxpipe_safe_test,"Runs openMSX and safely executes one test.","<dir> <cmd> [machine]")
|
2024-07-02 01:27:14 +00:00
|
|
|
|
|
2024-07-02 21:18:20 +00:00
|
|
|
|
|
2024-07-02 16:20:46 +00:00
|
|
|
|
define _mb_msxpipe_run_gui
|
2024-07-10 12:05:38 +00:00
|
|
|
|
$(MB__ )$(call mb_make_call,mb_autoexec_write_default,$(1),$(MB_MSXPIPE_COLOR_FG_RUN_GUI),$(MB_MSXPIPE_COLOR_BG_RUN_GUI))
|
|
|
|
|
$(MB__ )$(if $(filter mouse,$(4)),$(call mb_make_call,mb_autoexec_append_plug_porta,$(1),$(4)))
|
|
|
|
|
$(MB__ )$(call mb_make_call,mb_autoexec_append_stop_fail,$(1))
|
|
|
|
|
$(MB__ )$(call mb_make_call,mb_autoexec_append_show_gui,$(1))
|
|
|
|
|
$(MB__ )$(call mb_make_call,mb_autoexec_append_echo,$(1),mb::help Run shutdown to exit)
|
|
|
|
|
$(MB__ )$(if $(2),$(call mb_make_call,mb_autoexec_append_echo,$(1),mb::auto command $(2)))
|
|
|
|
|
$(MB__ )$(if $(2),$(call mb_make_call,mb_autoexec_append_cmd,$(1),$(2)))
|
|
|
|
|
$(MB__ )$(call mb_make_call,mb_openmsx_dosctl,$(1),$(3))
|
2024-07-02 01:27:14 +00:00
|
|
|
|
endef
|
|
|
|
|
|
2024-07-02 21:18:20 +00:00
|
|
|
|
|
2024-07-02 16:20:46 +00:00
|
|
|
|
define mb_msxpipe_run_gui
|
2024-07-10 12:05:38 +00:00
|
|
|
|
$(MB__ )$(call mb_make_call,_mb_msxpipe_run_gui,$(1),$(2),$(3))
|
2024-07-02 01:27:14 +00:00
|
|
|
|
endef
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_function,mb_msxpipe_run_gui,"Runs openMSX forever with renderer and optionals.","<dir> [cmd] [machine]")
|
2024-07-02 01:27:14 +00:00
|
|
|
|
|
2024-07-02 21:18:20 +00:00
|
|
|
|
|
2024-07-02 16:20:46 +00:00
|
|
|
|
define mb_msxpipe_run_gui_mouse
|
2024-07-10 12:05:38 +00:00
|
|
|
|
$(MB__ )$(call mb_make_call,_mb_msxpipe_run_gui,$(1),$(2),$(3),mouse)
|
2024-07-02 01:27:14 +00:00
|
|
|
|
endef
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_function,mb_msxpipe_run_gui_mouse,"Runs openMSX forever with renderer and mouse and optionals.","<dir> [cmd] [machine]")
|
2024-07-07 14:33:49 +00:00
|
|
|
|
|