You are not logged in.

#1 2009-02-12 05:02:16

ent
Member
Registered: 2008-12-15
Posts: 53

gnuscreen hardstatus padding issue

I'm trying to make it so the time lines up on the right side of the terminal window. It works when urxvt doesn't take up the entire screen, like so:

200902112345191920x1200kj7.th.png

but when it's fullscreened, it doesn't quite make it:

200902112345411920x1200wd3.th.png

Tried it with xterm too, same issue.
Anyone have any ideas? Google has failed me, sadly, which is surprising since in all my time using linux, I've been able to answer all my questions through google haha, this one thing is just driving me nuts.

Offline

#2 2009-02-12 13:27:41

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: gnuscreen hardstatus padding issue

%-= is working here.

Have you tried a better test case?

echo "hardstatus string 'left %= right'" > hardstatustest
^A:source hardstatustest

Last edited by Procyon (2009-02-12 13:45:08)

Offline

#3 2009-02-12 13:41:53

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: gnuscreen hardstatus padding issue

Edit: Bah, post your hardstatus in the post next time, I think I did the same as the post above me.

Try using %= instead of %-= ?  I've got %= in mine and I've got right aligned things.

#[randy@voodoo] updates :: none                        1 irssi  [2 vim .screenrc]
hardstatus alwayslastline "%{= dd}[%10`@%H] updates :: %20`%=%-w[%n %t]%+w"

Last edited by rson451 (2009-02-12 13:44:15)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#4 2009-02-12 18:53:20

ent
Member
Registered: 2008-12-15
Posts: 53

Re: gnuscreen hardstatus padding issue

Here's my .screenrc, sorry about that:

startup_message off
vbell off
screen -t music ncmpcpp
backtick 1 1 1 /home/ent/bin/get_uptime.sh
hardstatus alwayslastline
hardstatus string "%{.kc}[%H %1`]    %-w%{.kw}%n*%t%{-}%+w %-=  [%c:%s]"

Changing %-= to %= doesn't make a difference. Since it works when the terminal doesn't take up the entire screen, and it works when I'm not in X, I'm wondering if it has something to do with my resolution?

Offline

#5 2009-02-12 19:07:37

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: gnuscreen hardstatus padding issue

Did the same thing happen with just 'left %= right'?

Offline

Board footer

Powered by FluxBB