Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#3,424 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
go
Lĩnh vực
api, cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
22.4k
Fork
1.1k
Merge trung bình
12 ngày 6 giờ
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wavetermdev/waveterm

Tất cả issue của wavetermdev/waveterm

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.