OSDN Git Service

Merge pull request #4184 from habu1010/feature/improve-message-history
[hengbandforosx/hengbandosx.git] / src / view / display-messages.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include <concepts>
5 #include <memory>
6 #include <string>
7 #include <string_view>
8
9 /*
10  * OPTION: Maximum number of messages to remember (see "io.c")
11  * Default: assume maximal memorization of 2048 total messages
12  */
13 #define MESSAGE_MAX 81920
14
15 extern bool msg_flag;
16 extern COMMAND_CODE now_message;
17
18 int32_t message_num();
19 std::shared_ptr<const std::string> message_str(int age);
20 void message_add(std::string_view msg);
21 void msg_erase();
22 void msg_print(std::string_view msg);
23 void msg_print(std::nullptr_t);
24 void msg_format(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
25 void wr_message_history();
26 void rd_message_history();