Re: Clear Screen

2010-12-01 Thread Dennis Williamson
PuTTY and gnome-terminal seem to preserve the previous output in the scrollback buffer (effectively doing a "newline" clear). PuTTY has a setting for this: "Window/Push erased text into scrollback" On Wed, Dec 1, 2010 at 3:21 PM, Greg Wooledge wrote: > On Wed, Dec 01, 2010 at 02:04:51PM -0700, B

Re: Clear Screen

2010-12-01 Thread Bob Proulx
Greg Wooledge wrote: > ... I can see where his question is coming from. If you're on an > rxvt or something, with a reasonably-sized scrollback buffer, and > you do a "tput clear" or its equivalent, you only lose the lines > that were on the visible part of the terminal at that time -- the > rest

Re: Clear Screen

2010-12-01 Thread Greg Wooledge
On Wed, Dec 01, 2010 at 02:04:51PM -0700, Bob Proulx wrote: > If that doesn't do what you want then I don't think the functionality > you request exists. That's probably technically true. But on the other hand, I can see where his question is coming from. If you're on an rxvt or something, with

Re: Clear Screen

2010-12-01 Thread Bob Proulx
Ajay Jain wrote: > I use bash on Xterm. > While working you press Ctrl-L, so that the screen gets cleared and > you see the currently line only. That is what clearing the does. It operates the same as the 'clear' command line program in clearing the screen. > But you may want to see the last out

Re: echo "${HOME#$*/}" segfaults

2010-12-01 Thread Dennis Williamson
But not when $* is not empty: $ set -- foo $ echo "${HOME#$*/}" /home/username On Tue, Nov 30, 2010 at 7:43 PM, David Rochberg wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS:  -DPROGRAM='bash' -D

Re: IFS=':' set -- aa:bb:cc:dd # Fails to set "$@"

2010-12-01 Thread Chris F.A. Johnson
On Wed, 1 Dec 2010, ste...@syslang.net wrote: Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VEND

Re: IFS=':' set -- aa:bb:cc:dd # Fails to set "$@"

2010-12-01 Thread Greg Wooledge
On Wed, Dec 01, 2010 at 08:14:49AM -0500, ste...@syslang.net wrote: > IFS=':' set -- aa:bb:cc:dd > Instead, I have to say something like: > oldIFS="$IFS" > IFS=':' > set -- aa:bb:cc:dd > IFS="$oldIFS" Neither one of these sets $1 to aa, $2 to bb and so on. The

echo "${HOME#$*/}" segfaults

2010-12-01 Thread David Rochberg
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE

IFS=':' set -- aa:bb:cc:dd # Fails to set "$@"

2010-12-01 Thread steveo
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPAC

Re: Clear Screen

2010-12-01 Thread Chris F.A. Johnson
On Tue, 30 Nov 2010, Ajay Jain wrote: Hi, I use bash on Xterm. While working you press Ctrl-L, so that the screen gets cleared and you see the currently line only. But you may want to see the last outputs/prints. However, if you do a Ctrl-L/clear command, these prints go away. In that case, wha

Clear Screen

2010-12-01 Thread Ajay Jain
Hi, I use bash on Xterm. While working you press Ctrl-L, so that the screen gets cleared and you see the currently line only. But you may want to see the last outputs/prints. However, if you do a Ctrl-L/clear command, these prints go away. In that case, what can you use so that you clear the scree