wsl.exe pty setup depends on terminfo entry (reopening #13226)

Aperta
#42,032 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, linux

Direzione di ricerca

Start by reproducing the reported failure: move the xterm terminfo entries from /usr/share/terminfo/78 and launch wsl from a Cygwin or MSYS2 pseudo-terminal. Compare the terminal setup with the entries present and missing; done means WSL still creates a working pseudo-terminal, with a prompt and functioning control characters, when those entries are absent. The issue does not name source files or tests, so locating the relevant setup code will take familiarity with WSL.

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

Descrizione

feature wsl1 wsl2
Windows Version

Microsoft Windows [Version 10.0.19045.7807] and Microsoft Windows [Version 10.0.26200.9711]

WSL Version

3.0.3.0

Are you using WSL 1, WSL 2, or WSLC?
  • WSL 2
  • WSL 1
  • WSLC
Kernel Version

varies with distro

Distro Version

various

Other Software

cygwin or MSYS2

Repro Steps

cd /usr/share/terminfo/78
mkdir sav
mv xterm* sav/

then start a new terminal window
in its shell, run
wsl [ -d DISTRO ]

Expected Behavior

Normal WSL shell should appear.
If run from a pty-based environment, proper pty handling should be set up.
The WSL shell should appear with prompt, control characters should work normally.
There is no reason to depend on terminfo entries for that purpose.

Actual Behavior

WSL shell is running but shows no prompt
stty -a fails
tty responds "not a tty"

Apparently the shell is running in non-tty mode.

Diagnostic Logs

No response

Lingua principale
C++
Stelle
34.4k
Fork
1.9k
Merge medio
1g 23h
PR unite (30g)
166

Preparare l'ambiente

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.

Altre issue di microsoft/WSL

Tutte le issue di microsoft/WSL

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.