Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Feature]: wsh command to send input to a terminal block (expose controllerinput)

Abierto
#3,424 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
go
Área
api, cli

Línea de trabajo

Start by locating the existing wsh command implementations and the controllerinput RPC using CommandBlockInputData. Trace how wsh commands connect through wave.sock and authenticate, then add the proposed text, enter, signal, and stdin input modes. Done means input reaches the selected terminal block through the existing RPC without requiring a hand-rolled client.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Use case

I run a small external dashboard that watches my terminal blocks (via wsh blocks list + wsh termscrollback) and I'd like to also send keystrokes to a block — e.g. answer an interactive prompt in a long-running session from another machine/phone.

What exists today

The controllerinput RPC (CommandBlockInputData: blockid, inputdata64, signame, termsize) already does exactly this — the frontend uses it for all typing. It works great when called directly over wave.sock with the WAVETERM_JWT auth handshake (tested on v0.14.5, Windows). But there's no wsh subcommand for it, so scripts have to hand-roll the domain-socket RPC.

Proposal
wsh sendinput -b <blockid> "text to type"     # raw bytes to the pty
wsh sendinput -b <blockid> --enter            # append \r
wsh sendinput -b <blockid> --signal SIGINT    # signame variant

Reading input from stdin (wsh sendinput -b <id> -) would also cover binary/control sequences.

Related: #3196 (wsh tab rename), #3285 (wsh tab create) — same theme of making existing RPCs scriptable.

🤖 Generated with Claude Code

Lenguaje dominante
Go
Estrellas
22.4k
Forks
1.1k
Merge medio
3 d 13 h
PR fusionados (30 d)
13

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wavetermdev/waveterm

Todos los issues de wavetermdev/waveterm

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.