Skip to content

Prompt V2 - #138

Merged
Neffi42 merged 4 commits into
mainfrom
65-first-line-with-basic-informations
Oct 15, 2025
Merged

Neffi42 merged 4 commits into
mainfrom
65-first-line-with-basic-informations

Conversation

@Neffi42

@Neffi42 Neffi42 commented Oct 15, 2025

Copy link
Copy Markdown
Contributor
  • add tty id
  • update tty_print_pompt
  • add tty.input_start to correct BOF in try_build_command

@Neffi42
Neffi42 requested a review from iamantoinev as a code owner October 15, 2025 09:15
@Neffi42 Neffi42 self-assigned this Oct 15, 2025
Copilot AI review requested due to automatic review settings October 15, 2025 09:15
@Neffi42 Neffi42 linked an issue Oct 15, 2025 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Introduce a colored, per-TTY prompt that includes the TTY id, and track the start of user input to prevent backspacing over the prompt and to avoid submitting empty commands.

  • Add id and input_start fields to tty_t and initialize them.
  • Replace static prompt string with a formatted, colored prompt; update backspace logic and command building to use input_start.
  • Introduce try_build_command returning bool; only dispatch commands when non-empty.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
kernel/src/tty/tty.c Implements colored prompt with TTY id, tracks input_start, adds try_build_command, updates backspace and Enter handling.
kernel/include/tty.h Extends tty_t with id and input_start fields.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread kernel/src/tty/tty.c Outdated
Comment thread kernel/src/tty/tty.c Outdated
Comment thread kernel/src/tty/tty.c
Comment thread kernel/src/tty/tty.c Outdated
Comment thread kernel/src/tty/tty.c Outdated
@Neffi42
Neffi42 force-pushed the 65-first-line-with-basic-informations branch from 37fd7ad to c93116b Compare October 15, 2025 11:13
@sonarqubecloud

Copy link
Copy Markdown

@Neffi42
Neffi42 enabled auto-merge (squash) October 15, 2025 11:14
@Neffi42
Neffi42 requested a review from iamantoinev October 15, 2025 11:14
@Neffi42
Neffi42 merged commit 848736e into main Oct 15, 2025
4 checks passed
@Neffi42
Neffi42 deleted the 65-first-line-with-basic-informations branch October 15, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First line with basic informations

3 participants