tmux equivalent to GNU screen's :wrap mode
Clash Royale CLAN TAG#URR8PPP
I'm a long time screen user trying to make the jump to tmux. One screen feature I use is the ability to truncate Ctrla :set wrap
output. This is especially useful when tailing log files or following compile sessions whose lines are hundreds of characters long.
I've read the man
page and googled extensively and cannot find an equivalent command, or a viable work-around using shell commands. The closest I can come up with is piping everything to less -S
and putting less into "follow" mode.
tmux
add a comment |
I'm a long time screen user trying to make the jump to tmux. One screen feature I use is the ability to truncate Ctrla :set wrap
output. This is especially useful when tailing log files or following compile sessions whose lines are hundreds of characters long.
I've read the man
page and googled extensively and cannot find an equivalent command, or a viable work-around using shell commands. The closest I can come up with is piping everything to less -S
and putting less into "follow" mode.
tmux
add a comment |
I'm a long time screen user trying to make the jump to tmux. One screen feature I use is the ability to truncate Ctrla :set wrap
output. This is especially useful when tailing log files or following compile sessions whose lines are hundreds of characters long.
I've read the man
page and googled extensively and cannot find an equivalent command, or a viable work-around using shell commands. The closest I can come up with is piping everything to less -S
and putting less into "follow" mode.
tmux
I'm a long time screen user trying to make the jump to tmux. One screen feature I use is the ability to truncate Ctrla :set wrap
output. This is especially useful when tailing log files or following compile sessions whose lines are hundreds of characters long.
I've read the man
page and googled extensively and cannot find an equivalent command, or a viable work-around using shell commands. The closest I can come up with is piping everything to less -S
and putting less into "follow" mode.
tmux
tmux
edited Jul 27 '12 at 21:11
jasonwryan
50.3k14134190
50.3k14134190
asked Jul 27 '12 at 14:34
DougDoug
6614
6614
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I don't think tmux
has this feature, feature request?
One pipable workaround that I often use is "cutting" up to and including $COLUMNS:
tail -f LOG | cut -c1-$COLUMNS
Note that this is not "nowrap", it actually removes the ends of the lines. Also, terminal resizing is not acted upon.
Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.
– Doug
Jul 27 '12 at 16:14
1
You might do a little better withless +G +F -eS --follow-name
, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.
– Thor
Jul 27 '12 at 16:23
+G
is actually redundant.
– Thor
Jul 27 '12 at 16:53
This unfortunately doesn't work with xtail...
– MemphiZ
Dec 24 '16 at 0:37
add a comment |
I have tmux 2.6, and I can run the command setterm -linewrap off
to have long lines truncated instead of wrapped.
See these answers:
- https://unix.stackexchange.com/a/345492
- https://superuser.com/a/600694
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f44122%2ftmux-equivalent-to-gnu-screens-wrap-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I don't think tmux
has this feature, feature request?
One pipable workaround that I often use is "cutting" up to and including $COLUMNS:
tail -f LOG | cut -c1-$COLUMNS
Note that this is not "nowrap", it actually removes the ends of the lines. Also, terminal resizing is not acted upon.
Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.
– Doug
Jul 27 '12 at 16:14
1
You might do a little better withless +G +F -eS --follow-name
, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.
– Thor
Jul 27 '12 at 16:23
+G
is actually redundant.
– Thor
Jul 27 '12 at 16:53
This unfortunately doesn't work with xtail...
– MemphiZ
Dec 24 '16 at 0:37
add a comment |
I don't think tmux
has this feature, feature request?
One pipable workaround that I often use is "cutting" up to and including $COLUMNS:
tail -f LOG | cut -c1-$COLUMNS
Note that this is not "nowrap", it actually removes the ends of the lines. Also, terminal resizing is not acted upon.
Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.
– Doug
Jul 27 '12 at 16:14
1
You might do a little better withless +G +F -eS --follow-name
, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.
– Thor
Jul 27 '12 at 16:23
+G
is actually redundant.
– Thor
Jul 27 '12 at 16:53
This unfortunately doesn't work with xtail...
– MemphiZ
Dec 24 '16 at 0:37
add a comment |
I don't think tmux
has this feature, feature request?
One pipable workaround that I often use is "cutting" up to and including $COLUMNS:
tail -f LOG | cut -c1-$COLUMNS
Note that this is not "nowrap", it actually removes the ends of the lines. Also, terminal resizing is not acted upon.
I don't think tmux
has this feature, feature request?
One pipable workaround that I often use is "cutting" up to and including $COLUMNS:
tail -f LOG | cut -c1-$COLUMNS
Note that this is not "nowrap", it actually removes the ends of the lines. Also, terminal resizing is not acted upon.
answered Jul 27 '12 at 15:23
ThorThor
11.8k13459
11.8k13459
Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.
– Doug
Jul 27 '12 at 16:14
1
You might do a little better withless +G +F -eS --follow-name
, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.
– Thor
Jul 27 '12 at 16:23
+G
is actually redundant.
– Thor
Jul 27 '12 at 16:53
This unfortunately doesn't work with xtail...
– MemphiZ
Dec 24 '16 at 0:37
add a comment |
Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.
– Doug
Jul 27 '12 at 16:14
1
You might do a little better withless +G +F -eS --follow-name
, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.
– Thor
Jul 27 '12 at 16:23
+G
is actually redundant.
– Thor
Jul 27 '12 at 16:53
This unfortunately doesn't work with xtail...
– MemphiZ
Dec 24 '16 at 0:37
Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.
– Doug
Jul 27 '12 at 16:14
Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.
– Doug
Jul 27 '12 at 16:14
1
1
You might do a little better with
less +G +F -eS --follow-name
, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.– Thor
Jul 27 '12 at 16:23
You might do a little better with
less +G +F -eS --follow-name
, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.– Thor
Jul 27 '12 at 16:23
+G
is actually redundant.– Thor
Jul 27 '12 at 16:53
+G
is actually redundant.– Thor
Jul 27 '12 at 16:53
This unfortunately doesn't work with xtail...
– MemphiZ
Dec 24 '16 at 0:37
This unfortunately doesn't work with xtail...
– MemphiZ
Dec 24 '16 at 0:37
add a comment |
I have tmux 2.6, and I can run the command setterm -linewrap off
to have long lines truncated instead of wrapped.
See these answers:
- https://unix.stackexchange.com/a/345492
- https://superuser.com/a/600694
add a comment |
I have tmux 2.6, and I can run the command setterm -linewrap off
to have long lines truncated instead of wrapped.
See these answers:
- https://unix.stackexchange.com/a/345492
- https://superuser.com/a/600694
add a comment |
I have tmux 2.6, and I can run the command setterm -linewrap off
to have long lines truncated instead of wrapped.
See these answers:
- https://unix.stackexchange.com/a/345492
- https://superuser.com/a/600694
I have tmux 2.6, and I can run the command setterm -linewrap off
to have long lines truncated instead of wrapped.
See these answers:
- https://unix.stackexchange.com/a/345492
- https://superuser.com/a/600694
answered Feb 9 at 21:38
ddffnnddffnn
462
462
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f44122%2ftmux-equivalent-to-gnu-screens-wrap-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown