kkawakam / rustyline

Readline Implementation in Rust
https://crates.io/crates/rustyline/
MIT License
1.5k stars 173 forks source link

A single line is too long, causing it to print on the next line #775

Open suibianwanwank opened 2 months ago

suibianwanwank commented 2 months ago

When I try to use rustyline to do cli, I found that printing a certain line of data is too long will automatically display in the next line, can there be a configuration can be moved by key to display the contents of this page like presto client

gwenn commented 2 months ago

I guess that you refer to a single line mode where you have to scroll horizontally. This feature was removed. https://github.com/kkawakam/rustyline?tab=readme-ov-file#multi-line-support

Currently, this feature is always enabled and there is no configuration option to disable it.

suibianwanwank commented 2 months ago

我猜你指的是必须水平滚动的单行模式。此功能已删除。 https://github.com/kkawakam/rustyline?tab=readme-ov-file#multi-line-support

目前,此功能始终处于启用状态,并且没有禁用它的配置选项。

I think this feature is needed in many scenarios. May I know why we're closing this option? Or what else can i achieve this feature. Will this feature be restored in the future?