Skip to content

crossterm::terminal::size() returns Ok((0, 0)) in eshell #891

Open
@Wilfred

Description

@Wilfred

Describe the bug

When running inside eshell, crossterm claims the size of the terminal is zero.

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Open eshell, the shell inside Emacs.
  2. Run a rust program that invokes crossterm::terminal::size()
  3. Observe that it returns Ok((0, 0))

Expected behavior

crossterm should respect the $COLUMNS and $ROWS shell variables, which are set.

OS
Arch Linux, kernel v6.8.2

Terminal/Console
eshell on Emacs 29.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions