如何设置大的stty大小?(默认80x24)

如何设置大的stty大小?(默认80x24)

我真的不确定问题出在哪里,所以我把我认为有帮助的所有消息都放在这里。

dmesg | grep drm
[    0.316388] fb0: switching to cirrusdrmfb from EFI VGA
[    0.316769] [drm] fb mappable at 0xC0000000
[    0.316769] [drm] vram aper at 0xC0000000
[    0.316769] [drm] size 33554432
[    0.316770] [drm] fb depth is 16
[    0.316770] [drm]    pitch is 2048
[    0.316791] fbcon: cirrusdrmfb (fb0) is primary device
[    0.322191] cirrus 0000:00:02.0: fb0: cirrusdrmfb frame buffer device
[    0.322195] [drm] Initialized cirrus 1.0.0 20110418 for 0000:00:02.0 on minor 0
[    0.322279] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 1
[    0.322293] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.322294] [drm] Driver supports precise vblank timestamp query.
[    0.322340] [drm] Initialized vkms 1.0.0 20180514 for vkms on minor 2

dmesg | grep modeset
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.2.1-lfs-20190714-systemd root=/dev/sda2 ro ro root=/dev/sda2 console=tty0 console=ttyS0 loglevel=6 modeset
[    0.140663] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.2.1-lfs-20190714-systemd root=/dev/sda2 ro ro root=/dev/sda2 console=tty0 console=ttyS0 loglevel=6 modeset

stty size
24 80

kernel parameters
GRUB_CMDLINE_LINUX_DEFAULT="ro root=/dev/sda2 console=tty0 console=ttyS0 loglevel=6 modeset"
GRUB_GFXMODE=1600x900
GRUB_GFXPAYLOAD_LINUX=keep

tty
/dev/ttyS0

# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_VGACON_SOFT_SCROLLBACK=y
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
# CONFIG_VGACON_SOFT_SCROLLBACK_PERSISTENT_ENABLE_BY_DEFAULT is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=132
CONFIG_DUMMY_CONSOLE_ROWS=60
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set

我通过 ssh 使用 qemu,所以我希望 tty 显示更多列和行以适合我的 ssh 客户端。我使用 -vga cirrus 并已为此配置虚拟 GPU 驱动程序,依赖模块也配置如上面的 dmesg 中所示。如果您认为需要更多信息,请发表评论。希望您能帮帮我>_<

相关内容