Skip to content

feat: Support specifying terminal width #34

@pawamoy

Description

@pawamoy

Discussed in #33

Originally posted by NikosAlexandris January 26, 2024
Rich table output in the console is truncated (i.e. table column names are incomplete), for example : https://nikosalexandris.github.io/rekx/how_to/inspect/. See in this pages source code the output of commands wrapped inside a block

    ``` bash exec="true" result="ansi" source="above"
    ```

Any idea how to "fix" this ?
See also : squidfunk/mkdocs-material#4964 (comment).


We could provide a new option to set the terminal width in the subprocess. Basically export COLUMNS=1000.

@NikosAlexandris could try the following and let me know if it fixes your issue?

``` bash exec="true" result="ansi" source="above"
export COLUMNS=1000  # markdown-exec: hide
rekx inspect data/single_file/SISin202001010000004231000101MA.nc
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions