[Toybox] Fwd: hexedit uses VT-420 scroll ctrl sequences which dont work on tty1

David Seikel onefang_toybox at dave.isageek.net
Thu Sep 26 08:33:30 PDT 2019


On Thu, 26 Sep 2019 08:49:10 -0500 Rob Landley said :
> On 9/25/19 12:59 PM, David Seikel wrote:
> > On Wed, 25 Sep 2019 12:24:13 -0500 Rob Landley said :  
> >> On 9/24/19 1:18 AM, Jarno Mäkipää wrote:  
> >>> Hi
> >>>
> >>> I now tested to run hexedit in tmux: downscroll works but upscroll
> >>> does not... Well we might say its tmux fault, but lots of people
> >>> use tmux nowadays. And this behavior seemed to be same in
> >>> framebuffer console and xterms...    
> >>
> >> I have a todo item to write a screen for toybox. I'll make sure
> >> this works there. If you want to submit a bug report to the old
> >> one, have at.  
> > 
> > Would writing a tmux be a better option than a screen?  I prefer it
> > for several reasons, the major one being that I can script reading
> > and writing text to what ever command is running inside tmux (in my
> > case OpenSim consoles for cron'ed backups).  Mouse support is handy
> > to.  
> 
> I started using screen on the sunos workstations at Rutgers in 1992.
> I've never used tmux. This is the first I've heard they're different?

Admittedly it's been some time since I switched from screen to tmux.
I've just done some reading now, and it looks as if they are now a bit
more similar in features.  When I switched some of the differences
where important enough to me that I did switch.

https://wtanaka.com/node/8136?utm_source=linuxnewssite.com is the best
I found after a quick search, that shows the basic differences.

I mentioned above that tmux allows scripting.  Robert Thompson pointed
out -

> That all works in screen, at least to some extent. Years ago I
> discovered I could write a script and connect its stdin to the stdout
> of whatever was in the screen, and vice versa.

Which isn't really the same thing.  The scripting I was talking about
is where you can run a tmux command from outside the tmux session that
feeds text into a running tmux session, and reads text coming from that
session, but still have that session being interactive.  In Opensim
there are several console sessions, each is interactive, and I run a
cron job that feeds commands into them, and waits for certain text to
say the command has finished before doing something else.  This wasn't
possible with screen when I first switched to tmux, but apparently now
it is possible with screen.

I've not been able to find out much about modern screen mouse support,
except that it supports mouse wheel scrolling the contents.  I remember
years ago I showed tmux to a manager of mine and he was very excited
about how much you could do with the mouse in tmux that wasn't possible
in screen.  Resizing panes by dragging the border had him shouting in
sheer happiness.  I use the mouse support all the time.

There are naturally lots of little differences, tmux is the same sort
of thing as screen, not a clone of screen.  First thing I did with tmux
was to configure it to be a bit more screen like, so it would be more
comfortable for my screen using co-admins.  The major obvious
difference is the prefix character, simple to change that.

The one thing that truly annoys me about tmux is they keep changing the
format of the mouse options in the config files.  Only slightly less
annoying is that sessions shared with others use the smallest terminal
size, which only annoys me coz I use a huge terminal with tiny font, so
when I share it becomes smaller to match the terminal of who ever I'm
sharing with.  Screen doesn't do that.  According to what I have been
reading today, there's a way around that in tmux now.

The above web page mentions automatic renaming of windows.  I dunno if
screen can do that, but you can also name the windows using tmux
commands.  Very handy for my OpenSim usage, as all but one window uses
the same command, so I need to rename them so I can tell them apart.

BTW OpenSim is a 3D virtual world, an open source fork of Second Life.
The usage I'm talking about here is the running of the server consoles,
which are terminal based things.  One of them is the base server, the
others are per "sim", a 256 x 256 meter area of virtual land.

-- 
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.


More information about the Toybox mailing list