Skip to content

Conversation

@konard
Copy link
Contributor

@konard konard commented Sep 10, 2025

Summary

  • Added terminal trainer functionality to the GPTutor application
  • Implemented TERMINAL_TRAINING mode type for command line learning
  • Created Linux terminal simulator with interactive training interface
  • Added bash syntax highlighting support for the code editor

Changes Made

  • ModeType: Added TERMINAL_TRAINING = "TERMINAL TRAINING" to support the new trainer mode
  • Languages: Added Terminal = "bash" for proper syntax highlighting in both Ace and Monaco editors
  • Trainer Configuration: Created terminal-specific prompt that simulates a Linux terminal environment
  • Integration: Seamlessly integrated with existing trainer system - appears automatically in home screen
  • Initial Example: Set up with ls -la command as starting example

How it Works

  1. Users can access the terminal trainer from the main screen alongside other trainers (JS, Python, Go)
  2. The trainer uses a Linux terminal simulation prompt that responds to commands with realistic terminal output
  3. Code editor provides bash syntax highlighting for better command visibility
  4. Follows the same workflow as other trainers: Editor → Chat interface for interactive learning

Test Plan

  • Added new mode type and language enum
  • Created terminal trainer configuration with appropriate prompt
  • Integrated into existing trainer system
  • Verified syntax highlighting support (bash language supported by both editors)
  • Confirmed automatic integration with home screen via existing trainer logic

The implementation follows the existing pattern used by other trainers (JS, Python, Go) and integrates seamlessly without requiring additional UI changes.

🤖 Generated with Claude Code


Resolves #381

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #381
@konard konard self-assigned this Sep 10, 2025
konard and others added 2 commits September 10, 2025 19:43
- Add TERMINAL_TRAINING mode type to support terminal training
- Create terminal trainer with Linux terminal simulation prompt
- Add bash language support for code editor syntax highlighting
- Initialize terminal trainer with 'ls -la' command example
- Integrate terminal trainer into existing trainer system

The terminal trainer acts as a Linux terminal simulator, allowing users
to practice command line skills through an interactive training interface.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Добавит тренажер терминала Add Terminal Trainer - Issue #381 Sep 10, 2025
@konard konard marked this pull request as ready for review September 10, 2025 16:55
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.

Добавит тренажер терминала

2 participants