Cursor hiding thing in VT100...

This commit is contained in:
Ognjen Milan Robovic 2023-10-11 12:44:13 -04:00
parent b35a1d0c85
commit 0ff5a3acae

View File

@ -529,7 +529,11 @@ function xabina return integer is
loop
for x in map_width
loop
put (format_symbol ('~', COLOUR_RED, EFFECT_BOLD));
if x = player.x and y = player.y then
put (format_symbol ('@', COLOUR_CYAN, EFFECT_BOLD));
else
put (format_symbol ('.', COLOUR_GREY, EFFECT_BOLD));
end if;
end loop;
put (CARRIAGE_RETURN & LINE_FEED);
end loop;
@ -542,6 +546,12 @@ function xabina return integer is
begin
bind ('q', action_exit'access);
bind ('w', action_move_up'access);
bind ('s', action_move_down'access);
bind ('a', action_move_left'access);
bind ('d', action_move_right'access);
put (ESCAPE & "[?25l");
loop
exit when active = false;
@ -551,6 +561,8 @@ begin
action_list (character'pos (signal)).all;
end loop;
put (ESCAPE & "[?25h");
return 0;
end xabina;