Comments (5)
Some options here: https://superuser.com/questions/600677/in-linux-console-how-to-not-wrap-output
Would be nice if it supported echo -ne "\x1b[7h"
from tilix.
The escape sequence \x1b[7h
was broken on the linked page (I've fixed it). The correct version is \x1b[?7h
and its counterpart \x1b[?7l
, which are supported.
However, I don't think this the behavior OP is looking for. @RichardJECooke Could you please show a concrete example? What do you exactly do in the terminal, what output do you see, and output would you rather want to see?
from tilix.
Sure, look at this output from docker ps
. The lines are too long and wrap around the screen. I'd rather they continue out of frame to the right and a scrollbar appears at the bottom of the window
from tilix.
Yup, then \x1b[?7l
is not for you. It chops off the end of the lines (and also leaves garbage in the last column).
This behavior can be achieved by helper applications such as less -S
.
Terminals, by their very nature and legacy, represent a formerly hardware device with a fixed size. There's no notion of text overflowing to the right, there's no notion of horizontal scrollbar.
An attempt to implement your desired behavior would certainly cause buggy behavior in plenty of existing apps; or if the new mode is subject to setting a mode then you'd have to manually enable it before each such command and disable afterwards. And still, it would only be supported in a few selected terminals (which agree and decide to go for it). I'm not aware of any terminal emulator out there that offers such a feature, and I find this extremely unlikely to happen. It's just that terminals have a certain behavior due to their legacy, a behavior that all the apps expect, and that behavior is unfortunately not the one you're looking for.
from tilix.
Or use this wrapper (I call it 'nowrap')
#!/bin/bash
# usage:
# command | nowrap
# or:
# nowrap command
# trap ctrl-c and call ctrl_c()
trap ctrlc INT
ctrlc()
{
#echo "cleaning up"
tput smam
}
# works as filter but also takes argument
if [ ! -z $1 ]
then
# called with arguments
tput rmam
$@ # run arguments
tput smam
else
# invoked as a filter
tput rmam
#</dev/stdin >/dev/stdout
cat
tput smam
fi
from tilix.
Related Issues (20)
- Mouse scroll events and mouse copying requiring [Shift] HOT 2
- How do I test "scroll on output" setting?
- Copy Paste from editor over SSH - OSC 52 support HOT 3
- Titlebar too large HOT 2
- How to edit/remove the context menu
- "TerminalNot Enabled" is displayed on the screen HOT 2
- My own keyboard shortcuts don't work when Tilix is focused
- Gtk-WARNINGs HOT 1
- Unable to open the preferences menu when using the Ketsa icon theme HOT 6
- GLib-GObject-WARNING ISO-8859-16: U_FILE_ACCESS_ERROR HOT 2
- Tilix Screen Size
- change tilix tile border color HOT 4
- Linking error with meson+dmd HOT 3
- Copy-Paste-Problems
- error while loading shared libraries: libphobos2-ldc-shared.so.107 after libphobos update HOT 3
- Flickering Terminal HOT 2
- Can't run docker on tilix HOT 1
- Right-Click to `clear` - Custom Commands in Roght-Click Context Menu
- Tilix not launching on kali linux
- startup with badge text via CLI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tilix.