Support terminals other than cmux (tmux first)

Aperta
#1 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
78/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
shell
Ambito
cli

Direzione di ricerca

Start in bin/cache-warmer and trace the existing cmux calls and timer() flow. Add tmux support using the pane identifiers and commands listed in the issue, while preserving the lookup-table approach and updating the failure matrix behavior. Then extend the e2e suite's fake cmux with a fake tmux twin and verify unsupported terminals report "no supported terminal".

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The plugin needs two things from the terminal: read the pane's screen, and type into it. Both are cmux calls in bin/cache-warmer:

Need cmux (today) tmux equivalent
pane id $CMUX_SURFACE_ID $TMUX_PANE
read screen cmux read-screen --surface S --lines 30 tmux capture-pane -p -t P -S -30
type text cmux send --surface S TEXT tmux send-keys -t P -l TEXT
press Enter cmux send-key --surface S enter tmux send-keys -t P Enter

A lookup table keyed on whichever pane id is set keeps timer() unchanged. Row 3 of the failure matrix (skip: not in cmux) becomes "no supported terminal". The e2e suite's fake cmux needs a fake tmux twin. PRs welcome.

Lingua principale
Shell
Stelle
0
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.