bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash Prompt location


From: Eric Blake
Subject: Re: Bash Prompt location
Date: Fri, 21 Sep 2007 09:04:37 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Paul Jarc on 9/21/2007 8:53 AM:
> hirochiamaru <address@hidden> wrote:
>> I saw it on a screen shot once, but this gentlemen was able to put the bash
>> prompt at the bottom of his xterm window with out fill the top portion the
>> xterm window first.
> 
> yes '' | head -n "$LINES"

Or you could investigate the use of terminal escape sequences in your PS1.
  Remember to use \[ and \] to delimit escape sequences, since they are
non-printing.  For example, according to
http://www.termsys.demon.co.uk/vtansi.htm, PS1='\[\e[20;5H\]> ' will
output "> " at row 20 line 5, rather than the current position.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG892F84KuGfSFAYARAqvuAKC4bImnwytoOpbVRHWkbEMZAVs0cgCgzoMC
wcM8AS+GTVHpL4HJfxHgLnM=
=8BK6
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]