this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

console: Indent all wrapped lines (#2451)

Currently, the console doesn't indent (offset) the continuation of a
wrapped line if wrapping coincides with with a '|' or a space character.
This is demonstrated in the output of `help spec`:

```
DISPLAY 240x136 pixels, 16 colors
palette.
INPUT 4 gamepads with 8 buttons /
mouse / keyboard.
SPRITES 256 8x8 tiles and 256 8x8
sprites.
MAP 240x136 cells, 1920x1088
pixels.
SOUND 4 channels with configurable
waveforms.
CODE 64KB of lua, ruby, js, moon,
fennel, scheme, squirrel, wren,
wasm, janet or python.
```

Above, the last (continuation) line is not indented because the line
break coincides with the space (' '), right before `wasm,`.

This makes the console indent all wrapped continuation lines (so the
final line of `help spec` is also indented).

authored by

Fotis Xenakis and committed by
GitHub
3cf27c5e 350fc23c

+3
+3
src/studio/screens/console.c
··· 409 409 console->cursor.pos.x++; 410 410 411 411 if (console->cursor.pos.x >= CONSOLE_BUFFER_WIDTH) 412 + { 412 413 nextLine(console); 414 + console->cursor.pos.x = wrapLineOffset; 415 + } 413 416 } 414 417 } 415 418