8000 show 4 spaces in place of tab in Terminal by FoamyGuy · Pull Request #10324 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

show 4 spaces in place of tab in Terminal #10324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions shared-module/terminalio/Terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ size_t common_hal_terminalio_terminal_write(terminalio_terminal_obj_t *self, con
if (c < 0x20) {
if (c == '\r') {
self->cursor_x = 0;
} else if (c == '\t') {
for (uint8_t space_i = 0; space_i < 4; space_i++) {
terminalio_terminal_set_tile(self, false, ' ', true);
}
} else if (c == '\n') {
self->cursor_y++;
// Commands below are used by MicroPython in the REPL
Expand Down
Loading
0