Log In  

The \t control code advances the cursor horizontal position to the next tab stop. However, it only does this when the cursor is not already at a tab stop. If the cursor is at a tab stop, the cursor position does not change. The expected behavior is for the cursor position to move to the next tab stop.

-- works as expected: prints x, advances to next tab stop, prints y
print("x\ty")

-- expected: indents by one tab stop, prints x
-- actual: cursor position does not change, prints x
print("\tx")

-- expected: prints x, advances two tab stops, prints y
-- actual: prints x, advances one tab stop, prints y
print("x\t\ty")

PICO-8 0.2.4b.

P#109656 2022-04-04 03:11

Nice one -- fixed for 0.2.4c.

P#109672 2022-04-04 11:31

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 07:58:57 | 0.005s | Q:12