hi I'm trying to migrate away from screen (biggest selling point for tmux is (for me) that it doesn't preallocate memory for history).
but while working on migration I hit 2 problems that I can't solve. first problem - too small window. I work on rather large terminals, but when I start new *detached* session, it's created as if it was 80x23 window. Example: created simple test script - test.pl which does: #v+ #!/usr/bin/env perl while (1) { printf "%-40s : %s\n", scalar localtime time, "---- "x20; sleep 30; } #v- i'm using terminal that is that big: #v+ =$ stty size 97 319 #v- So, since each line of output from test.pl is only 144 characters long - fits easily. But when I'll start session auto-detached, with test.pl running: =$ tmux new-session -d -s xxx 'perl test.pl' created window is too small: =$ tmux list-windows 1: sh [80x23] layout: b85e,80x23,0,0 when I then attach to the terminal, all lines that have been *already* outputted by test.pl, are badly wrapped:, and it looks like this: Wed Jan 12 17:19:16 2011 : ---- ---- ---- ---- ---- ---- ---- -- -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- Wed Jan 12 17:19:46 2011 : ---- ---- ---- ---- ---- ---- ---- -- -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- Wed Jan 12 17:20:16 2011 : ---- ---- ---- ---- ---- ---- ---- -- -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- Wed Jan 12 17:20:46 2011 : ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- Wed Jan 12 17:21:16 2011 : ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- Wed Jan 12 17:21:46 2011 : ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- Wed Jan 12 17:22:16 2011 : ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- this is problematic, as I'm using script that is more important that this test.pl, and the wrapping of it's output makes it much less usable. So, I'm wondering if there is a way to make initial window size for newly created, detached session, to be somehow configured. second problem is problem with multiple panes. Right now I'm using following "layout" in my screen session: +--------------------------------+ | *FIXED HEIGHT PANE* | | | +--------------------------------+ | *FIXED HEIGHT PANE* | | | +--------------------------------+ | | | | | | | | | | | | +--------------------------------+ that is - I use 3 panels, split horizontally, with the top 2 having predefined, fixed height of 10 lines. Now - I know I can make it myself, but running tmux, doing the split, and then manually changing sizes of panes, but I'm looking for a script-based way to do it. In general - I need a script that will: 1. check for existing session 2. if the session exists - exit 3. if it doesn't exist - make new one, detached 4. in the new session, on first window, make 3 panes, change their sizes to 10 lines, 10 lines, rest i checked the docs and examples, and even bugged people on irc, but I wasn't able to get to a way to do it. is there any way this could be done? for the second problem - i.e. setting panes to 10lines/10lines/rest - I'd be happy even to get a way to do it interactively (i.e. press a button, and the heights set to predefined sizes). Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007 ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users