Summary: | It is not possible to select (and thus copy) a previous command if it is log enough on a remote machine | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Dmitri Koulikoff <kde> |
Component: | copy-paste | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aspotashev, ninjalj |
Priority: | NOR | ||
Version First Reported In: | 20.12.1 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Line is wrapping |
Description
Dmitri Koulikoff
2021-01-16 16:21:41 UTC
This behavior doesn't come from konsole. It comes from the shell, and can usually be configured via a shell option. For zsh: set +o SINGLE_LINE_ZLE For non-ancient ksh93: set -o multiline mksh doesn't seem to have a way to use multiline input. The same is probably true of many older ksh variants. (In reply to ninjalj from comment #1) > This behavior doesn't come from konsole. It comes from the shell, and can > usually be configured via a shell option. > > For zsh: > set +o SINGLE_LINE_ZLE > > For non-ancient ksh93: > set -o multiline > > mksh doesn't seem to have a way to use multiline input. The same is probably > true of many older ksh variants. Thanks, but what setting is for bash? For bash: bind 'set horizontal-scroll-mode off' But you should probably first make sure that $TERM is set to something supported on your remote host, since that is probably why bash is defaulting to horizontal-scroll-mode, see: https://unix.stackexchange.com/questions/529377/terminal-long-line-wrapping/529460 Created attachment 139871 [details]
Line is wrapping
I have tried both commands but this did not help.
Indeed on the remote machine bash is old and shows the history without the wrapping when I connect from kde4.
It wraps only when I connect from kde5.
What's the value of $TERM? What's the output of "infocmp"? Your remote host probably doesn't have a terminfo description for xterm-256color. Konsole changed its default value for TERM from xterm to xterm-256color back in late 2016 in https://invent.kde.org/utilities/konsole/-/commit/2671800b084cf89f1a91c6b3fdf93eb3b8078672 TERM should be set to something that the remote host supports, e.g. by launching ssh as follows: TERM=xterm ssh your-known-host Another option would be to import the terminfo definition from your local host to the remote host, as explained at the above mentioned unix.stackexchange.com post: infocmp termname | ssh user@host tic - OK, after I have added on the remote machine export TERM=xterm to the /etc/profile all works. Thanks *** Bug 434681 has been marked as a duplicate of this bug. *** |