Note: Wrapping the tput output in \[ \] is recommended by the Bash man page.
This helps Bash ignore non-printable characters so that it correctly calculates
the size of the prompt.
https://wiki.archlinux.org/title/Bash/Prompt_customization
a built-in way to replay a
screens scrollback buffer into the window.
4) virtual scrollbars around screens which are clickable and
dragable.
(1) may already be implemented unless it's tmux I'm recalling that had
that feature.
Even if without virtual scrollbars (i guess that could b
rminal screen) and when you exit vi, it switches back to the real
screen.
Try disabling that feature and see if that helps.
Michael Grant
signature.asc
Description: PGP signature
On Thu, Dec 17, 2020 at 10:46:43AM -0500, Michael Grant wrote:
> Slight change to my previous message:
>
>
> if [ -n "$STY" ]; then
> function fix_ssh_auth_sock() {
> screen -S $STY -X colon "msgwait 0\r"
> export SSH_AUTH_SOCK=
Slight change to my previous message:
if [ -n "$STY" ]; then
function fix_ssh_auth_sock() {
screen -S $STY -X colon "msgwait 0\r"
export SSH_AUTH_SOCK=`screen -S $STY -Q echo '$SSH_AUTH_SOCK\r'`
screen -S $STY -X colon "msgwait 5\r"
}
export PROMPT_COMMAND=fix_
> In that case, this solution can be expanded a bit to do what you
> want. The basic idea would be:
> 1. On login, create a directory $HOME/.ssh/sockets/$TIME/ and put
>a file setting the variables correctly in there (for example,
>name the file $HOME/.ssh/sockets/$TIME/sshenv). In that cas
On Wed, Dec 16, 2020 at 09:15:09AM -0800, Neal Fultz wrote:
> There is not a getenv command to match setenv iirc.
>
> There's a -Q flag for query - z=$(screen -S $STY -Q echo '$SSH_AUTH_SOCK')
Thanks, this is even closer. z is being set, but it outputs something to
the screen which does go away
When I reattach to screen, the SSH_AUTH_SOCK is wrong.
I often ssh in and run screen simultaneously on a laptop and desktop. So I
can’t use the trick of symlinking something to /tmp/ssh-xx.
Is there some way to interrogate screen to tell me what the contents of an
environment variable
What is ‘bpr’?
From: BX Snipa
Sent: 10 December 2020 06:10
To: Michael Grant
Subject: Re: real-time mouse selection in vi
bpr
From: screen-users on
behalf of Michael Grant
Sent: Wednesday, December 9, 2020 10:36 AM
To: screen-users@gnu.org
Subject: real-time mouse selection in vi
When I
takes a second click to
highlight the text and it does not highlight the text in real-time. The region
highlights only after the second click.
Any idea how to get the real-time selection working within screen?
Michael Grant
> Would you mind sharing your .screenrc? I feel like I could learn a lot from
> it. Or if you have a dotfiles repo on github that would be fantastic too.
Sure. I don’t have them in a public repo. If anything isn’t clear, please
ask. Hope this is interesting/helpful to someone!
I almost alway
and copypaste probably would work across
computers (within Screen). Sounds like a win-win-win if you ask me!
Can this work? Comments?
Michael Grant
scrolled to.
Anyone thought about this? Does this already exist?
Michael Grant
I use Screen in PuTTY. I have a hard status line set. When I scroll up the
PuTTY window, the hard status line scrolls off the bottom of the screen.
I was wondering, is there some way to stop this such that the hard status line
always stuck at the bottom of the window regardless of the position
default!
And, if anyone else has a better way of redrawing a screen's
scrollback buffer than this, please post! I spent ages working this
out. The only thing it does not redraw is the color, though I have
'paste font' enabled.
Hope this helps!
Michael Grant
signature.asc
Description: PGP signature
On Tue, Dec 26, 2017 at 08:55:15PM +, Ed wrote:
> On Tue, Dec 26, 2017 at 08:40:45PM +, David Woodfall wrote:
> > bind £ select 13
David, just out of curiousity, where are you trying to bind your key?
In your .screenrc? or in .bashrc or somewhere odd?
I have several key bindings like thi
y
generates the unicode code 0xa3 which goes straight in as unicode and
gets displayed as a £ when displayed. It's working fine even as I
type this email in emacs inside mutt inside screen.
Michael Grant
signature.asc
Description: PGP signature
__
4 users, load average: 0.05, 0.07, 0.05
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
mgrant pts/12a00:S.1 Mon064days 0.02s 0.02s /bin/bash
% finger
Login NameTty Idle Login Time Office Office
Phone
mgrant Michael Grant pts
There is a possible way to use ctrl-; in screen, you would first need to
bind ctrl-; to a real ascii (perhaps even a multibyte unicode character
would work). You would do this in your local window system. It's been a
while since I did this but in X it was something like setxkbmap. In
windows you
their window putty window size. I
understand iTerm resizes itself accordingly whereas Putty does not, or
maybe I have some config option set or not set in putty? I can't find one
that seems appropriate.
Michael Grant
___
screen-users mailing list
s
I defscrollback to 2000 and have a putty window with 2000 lines of
scrollback.
I would like a way to get screen to redraw the full 2000 lines of
scrollback (with color and other highlighting!) on command.
Currently I have a sort of kludge to do this writing a hardcopy file and
then execing a scri
Mahood wrote:
> On Sat, 15 Mar 2014, Michael Grant wrote:
>
>
>> Yes I'm aware of this. But what would be cool is if the scrollbar could
>> be somehow linked to the scrolling in copy mode.
>>
>> One thing I can imagine is just filling the of screen lines each
cript that does this bound to a key.
It would be nice if those lines could be filled offscreen somehow. As in
first the visible area was redrawn then the copy area so the user might not
notice.
On 15 Mar 2014 17:38, "Jim Mahood" wrote:
> On Wed, 12 Mar 2014, Michael Grant wrote:
&
ross screens to
scroll back whatever screen you were in? One possible way to do this might
be to just dump the entire screen and it's history lines to fill up the
putty buffer each time you switch screens.
Michael Grant
___
screen-users mailing list
s pressed like AltGr-Esc. You can use a
tool like http://www.kbdedit.com/ to create a new keyboard mapping (on
windows--similar things exist on linux/mac) and add a key comination to
emit the unicode character. If someone tries this, I'd be interested to
know if that works!
Michael Grant
I have my screen ^a key bound to ctrl-^. I use the F keys to move between
windows. I could in theory have 12 windows, one on each F key.
Michael Grant
___
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen
On Sat, Sep 5, 2009 at 17:48, Benjamin Andresen wrote:
> Hey Hugo,
>
> Hugo Heden writes:
>
>> [snip]
>> Is there a way to tell GNU-screen to use the "default terminal buffer"
>> while still letting the programs invoked from within GNU screen use
>> the "alternate terminal buffer"?
>
> altscreen o
chine named into the title bar of the window.
You need the \[ and \] to tell bash not to count those characters as
being displayed on the line, otherwise, it messes up the display when
you start wrapping long input lines.
ESC_ gets you into the status line and ESC\ gets out out.
Is that wh
This may not be helpful, but I wanted to point out that having the
double status line down there is quite useful in letting you know that
you are indeed in a screen session within another screen session. If
you were to try to kill screen or use one of it's escape commands,
you're going to have to
/cat somefile. Note: The ^[ is an escape
character, not ^ followed by [ (there are 2 escapes in that line
above), but the [ without the ^ before it is a single [. I realize
that's a bit confusing to look at.
With this you have no process to worry about, but the down side is
that it doesn't
On Sun, Jan 4, 2009 at 12:16 PM, Michael Grant wrote:
> I have both a linux box and a freebsd box. I have just started using
> screen on the linux box. There seems to be some very definite
> differences in behavior between the two.
>
> On the linux box, using putty, screen does
h screens, but you see
it, and you loose any color. I don't know any way to tie the scroll
bar to anything because as far as I know, there's no escape codes
associated with the scroll bar which is a shame.
But aside from this idea, is the
Here is what I use in my .bash_login:
if screen -wipe 2>&1 | egrep -v "No Sockets found" >/dev/null; then
echo -n "Reattach to detached tree? (y/n) [space=y] "
read -n1 a;
if [[ ("$a" = "y") || ("$a" = "") ]]; then
exec screen -xRR
fi
echo ""
else
echo "type 'screen' to start scree
lowing this thread closely.
I use dsh for what you describe, but it's command line. It doesn't
work real well to edit things in full screen mode.
Michael Grant
___
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users
not create a
> core. But I can open up another Putty session and run a kill -6
> to generate a core.
>
> Let me know if this is a good approach.
>
>
>
>
>
>
> On Feb 10, 2008 9:20 AM, Michael Grant <[EMAIL PROTECTED]> wrote:
>
> > No, nobody
/F4 keys or other
> applications?
>
>
> "Michael Grant" writes:
>
> > I have the function keys working well in emacs. Some function keys
> > are bound to emacs functions and some are bound to screen functions
> > (like to switch windows).
> >
> > I usua
this in my .screenrc:
# f9,f10,f11,f12 selects window 3,0,1,2
bindkey -k k9 select 3
bindkey -k k; select 0
bindkey -k F1 select 1
bindkey -k F2 select 2
# same thing but for Sun keyboard
bindkey "\033[232z" select 3
bindkey "\033[233z" select 0
bindkey "\033[192z" select
work. Quitting screen such that I can reconnect later does not
restart things. The seems to be associated with the pty. The screen
unblocks all the time after about 10 minutes or so. Has anyone else
noticed this?
Michael Grant
___
screen-users mailing li
Someone on this list, I cannot remember who, recommended using a
register and then processing the register. Here is a command I wrote
which redisplays a screen and it's save buffer so when you log back in
and reattach, you can get then scroll up:
register A "\001:hardcopy -h /tmp/mgrant.screendu
On 3/11/07, Michael Grant <[EMAIL PROTECTED]> wrote:
In most modern terminal programs like Putty there is a scrollbar and
you can scroll the window up to see previous lines in a local buffer.
Screen also has a scrollback history buffer of saved lines.
Is there some to way to bind a key
that it "repaints" not only the visible screen
but also the lines above in my terminal's scrollback buffer?
Michael Grant
___
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users
etimes the scrollbar (in the ssh ap) gets turned
off by some escape sequence. Send this escape sequence and put in the
ascii one.
Michael Grant
___
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users
e
then in my .screenrc file I added:
bindkey "\033[15~" command
and when I press f5, that is my new screen escape key.
Michael Grant
On 10/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,
I have a spanish keyboard and I use º instead of ^a (º is below the esc
key and to
is or something similar has been discussed before but
trying the -A option didn't solve this for me.
Michael Grant
___
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users
44 matches
Mail list logo