#include "term/screen-processor.h"
#include "view/display-map.h"
#include "window/main-window-util.h"
+#include <string_view>
/*
* Display a "small-scale" map of the dungeon for the player
int cy, cx;
display_map(player_ptr, &cy, &cx);
if (autopick_list.empty() || player_ptr->wild_mode) {
- put_str(_("何かキーを押すとゲームに戻ります", "Hit any key to continue"), 23, 30);
+ int wid, hgt;
+ term_get_size(&wid, &hgt);
+ constexpr auto msg = _("何かキーを押すとゲームに戻ります", "Hit any key to continue");
+ const auto center_x = (wid - std::string_view(msg).length()) / 2;
+ put_str(msg, hgt - 1, center_x);
move_cursor(cy, cx);
inkey(true);
screen_load();