Prev: NYC LOCAL: Thursday 28 January 2010 First Meeting Clojure NYC: Rich Hickey, Stuart Sierra, and Eric Thorsen on Clojure
Next: X windows client server confusion
From: Peter Hanke on 27 Jan 2010 06:52 Assume I opened a terminal window and entered a lot of commands. Is there a way to clear all previous input and output lines on this terminal window? Of cause without closing and re-opening the Terminal window. Afterwards the terminal should look like as if the terminal had been just opened. All history lines are deleted. I guess there is a command like clr or similar to achieve this Peter
From: John Taylor on 27 Jan 2010 06:54 On Wed, 27 Jan 2010 11:52:11 +0000, Peter Hanke wrote: > Assume I opened a terminal window and entered a lot of commands. > > Is there a way to clear all previous input and output lines on this > terminal window? Of cause without closing and re-opening the Terminal > window. Afterwards the terminal should look like as if the terminal had > been just opened. All history lines are deleted. > > I guess there is a command like > > clr > > or similar to achieve this > How about: clear ?
From: GangGreene on 27 Jan 2010 07:18 John Taylor wrote: > On Wed, 27 Jan 2010 11:52:11 +0000, Peter Hanke wrote: > >> Assume I opened a terminal window and entered a lot of commands. >> >> Is there a way to clear all previous input and output lines on this >> terminal window? Of cause without closing and re-opening the Terminal >> window. Afterwards the terminal should look like as if the terminal had >> been just opened. All history lines are deleted. >> >> I guess there is a command like >> >> clr >> >> or similar to achieve this >> > > How about: > > clear > > ? Doesn't work :( Every time I use it the screen goes blank!
From: Bit Twister on 27 Jan 2010 07:49 On 27 Jan 2010 11:52:11 GMT, Peter Hanke wrote: > Assume I opened a terminal window and entered a lot of commands. > > Is there a way to clear all previous input and output lines on this terminal window? > Of cause without closing and re-opening the Terminal window. Yes. Two methods come to mind. Have you tried man -k terminal | grep \(1 > Afterwards the terminal should look like as if the terminal had been just opened. > All history lines are deleted. tput clear ; history -c clear ; history -c
From: Regis on 27 Jan 2010 09:29
peter_ha(a)andres.net (Peter Hanke) writes: > Assume I opened a terminal window and entered a lot of commands. > > Is there a way to clear all previous input and output lines on this terminal window? > Of cause without closing and re-opening the Terminal window. > Afterwards the terminal should look like as if the terminal had been just opened. > All history lines are deleted. > > I guess there is a command like > > clr > > or similar to achieve this clear is the command that you seek, I think. |