The console

The console sits under the 3D view. Type a Logo command, press Enter, and it runs straight away. Anything your program prints shows up here too. The prompt shows which turtle you are talking to.

Free-form lines

The console no longer cuts lines off at 80 columns. A line can be as long as it needs to be:

  • A long line wraps to fit the width of the console. A small arrow marks where it carries on.
  • The console shows as many lines as fit. Make the console taller and you see more of what came before.
  • Make the console narrower or wider and the lines re-wrap to fit.
  • The console keeps the last 100 lines.

Editing a long line works the way you’d expect:

Key or action What it does
Up / Down Move up or down one row inside a wrapped line. At the top or bottom of the line, step back or forward through the commands you’ve typed.
Click in the line you’re typing Move the cursor there.
Select and copy Copies whole lines, not just the visible row.
Enter Run the line.

The classic grid

If you prefer the classic fixed-grid console, where every line is 80 columns wide and long lines break onto the next row, add ?repl=grid to the IDE’s address:

https://turtlespaces.org/weblogo/index-react.html?repl=grid

Published projects played in the player still use the grid console, so programs written for it look the same there.

Font size

When the IDE loads, the console picks a font size so that 80 columns fit across it. After that the text stays the same size. Dragging the bar between the panes, or opening and closing panels, only changes where lines wrap, so the text doesn’t shrink or grow under you.

settextsize, setcursor and cursor in the console

In the console (the splitscreen and fullscreen screen modes), the console keeps its own layout:

  • settextsize doesn’t change the size of the console text. The console stays at its normal size.
  • setcursor has no effect.
  • cursor reports [0 0].

These commands still work as they always have in textscreen and overlayscreen, which give you a full text screen to lay out. Switching back to the console drops any text size you set there. For example:

textscreen
settextsize 2
setcursor [10 5]
print "hello

See the Text reference for more about text commands.