Feature: expose terminal line height as a term:lineheight setting

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

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
68/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ệ
javascript
Lĩnh vực
cli

Hướng nghiên cứu

Start by locating how the existing term:fontsize and term:fontfamily settings are handled, then trace where xterm.js ITerminalOptions are configured. Add the term:lineheight default and pass-through, including block metadata if supported by the existing settings path. Done means a 1.0 default and an override that changes terminal line spacing.

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

Mô tả

Summary

Wave exposes term:fontsize and term:fontfamily, but there is currently no way to adjust terminal line height / line spacing. Increasing the font size is the only vertical-spacing lever today, and it enlarges the glyphs too. Please expose xterm.js's lineHeight option as a term:lineheight config key.

Motivation

  • Terminals like WezTerm, kitty, and iTerm2 all offer a line-height multiplier; it's a common readability knob.
  • With serif / slab-serif monospace fonts (e.g. Monaspace Xenon, Courier Prime), the default leading can feel cramped. A ~1.1–1.3 multiplier dramatically improves readability without enlarging the characters.
  • xterm.js already supports ITerminalOptions.lineHeight (a multiplier of the cell height), so this should be a thin pass-through rather than new rendering work.

Proposed

  • Add term:lineheight (float, default 1.0) alongside the existing term:* settings, plumbed straight to the xterm.js lineHeight option.
  • Ideally also honor it as block metadata so an individual terminal block can override the global value (useful for status/monitor blocks vs. working terminals).

Related

  • #83 "Customise font settings" (closed) touched font customization generally but not line height specifically.

Thanks — the config surface is otherwise excellent; this is the main typographic-comfort gap versus other terminals.

Ngôn ngữ chính
Go
Star
22.3k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.