How to clear screen?

I understand that “CTRL-L” clears the screen in a terminal
window. However, I’d like to get it set up as an alias
called ‘cls’ or ‘clear’. I can’t figure out the syntax
or if it’s possible from the help on Dev.ansi.

Anyone done this before?

Thanks,
Barry

Get ‘cls’ from www.qnxstart.com

Barry Robertson <brobertson@SoftwareRemodeling.com> wrote in message
news:39E35F27.4F9B1CE@SoftwareRemodeling.com

I understand that “CTRL-L” clears the screen in a terminal
window. However, I’d like to get it set up as an alias
called ‘cls’ or ‘clear’. I can’t figure out the syntax
or if it’s possible from the help on Dev.ansi.

Anyone done this before?

Thanks,
Barry

Unfortunately the ‘cls’ at qnxstart is for Neutrino, and I need
it for QNX4.

-Barry

Stephen Thomas wrote:

Get ‘cls’ from > www.qnxstart.com

Barry Robertson <> brobertson@SoftwareRemodeling.com> > wrote in message
news:> 39E35F27.4F9B1CE@SoftwareRemodeling.com> …

I understand that “CTRL-L” clears the screen in a terminal
window. However, I’d like to get it set up as an alias
called ‘cls’ or ‘clear’. I can’t figure out the syntax
or if it’s possible from the help on Dev.ansi.

Anyone done this before?

Thanks,
Barry

I found something on the QNX site that mentions differences
between QNX2 and QNX4. cls is equivalent to the alias
echo \014.

Hope that helps someone else.
-Barry

Barry Robertson wrote:

Unfortunately the ‘cls’ at qnxstart is for Neutrino, and I need
it for QNX4.

-Barry

Stephen Thomas wrote:

Get ‘cls’ from > www.qnxstart.com

Barry Robertson <> brobertson@SoftwareRemodeling.com> > wrote in message
news:> 39E35F27.4F9B1CE@SoftwareRemodeling.com> …

I understand that “CTRL-L” clears the screen in a terminal
window. However, I’d like to get it set up as an alias
called ‘cls’ or ‘clear’. I can’t figure out the syntax
or if it’s possible from the help on Dev.ansi.

Anyone done this before?

Thanks,
Barry

Use echo “\f” in a shell script.

KenR

Barry Robertson wrote:

I understand that “CTRL-L” clears the screen in a terminal
window. However, I’d like to get it set up as an alias
called ‘cls’ or ‘clear’. I can’t figure out the syntax
or if it’s possible from the help on Dev.ansi.

Anyone done this before?

Thanks,
Barry

If you can compile, try this:

:cls.c
#include <stdio.h>
main()
{
putchar(12);
}

Otherwise, here is a compiled version:



begin 775 cls
MX````D`$>`((!``````$``0`!````````````R`$"$````*`` M````````````"Q(`(%`#```"`#`#```!```````!`0$!`0$!`0$!`0$!`0$! M`0$!`0$!`0$!`0$!`0$!`0*BHJ($Y53$P@87-S:6=N;65N="!D971E
M8W1E9H``$YO="!E;F]U9V@@;65M;W)Y"@``3F]T(&5N;W5G:"!M96UO<GD@ M=&\@86QL;V-A=&4@9FEL92!S=')U8W1U<F5S#0H1FQO871I;F<M<&]I;G0@
M<W5P<&]R="!N;W0@;&]A9&5D#0H``````````````````0 M`````````````````````````@````$````````````````````````````` M`````@````(````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M````````,,,`````````````T,(```.C```(HP``"*,```BC```(HP``"*,` M``BC```(HP``"*,```BC```(HP`````````````````````````````````` M```````````````````````````^I@```````````````````````"*I```B MJ0``:@```!````!HJ0```0`````@L*8````@)Z<'``8```#UU=W/!*`"`!$2 M``````````#-`)"0D):@```#H@P```%+V!=;````$=1"A MWL```"L%SL```(/X7<1NLK"X#````.CP````6L.ARL,8#(H/IU M#+K*P```NH#KWX`-U\!#_!<[#_!<K!:PU-T86-K($]V97)F
M;&]W(&%T(#Q,C,T-38W.#E!0D-$14;"!"’!“104(M$)@YX',8*>#WV%90 M_Q6<P@``B<98.P9>=@18P@06%@QTF:,RH’$$(GE4%(6!R)[[YTH MN8:@I\0X?\Z1;Z#"P.JJ+'"3!ZQ#H(@```%OH'+-JKJK MJA8?B>BZ`0```.C'`0Z2"")VK$,B=/3ZX/C#RZ*@X:@“J@.D$>>S#
M4U%65U6)PXM”$/\5H,(/9"#`)U'K@)````Z!0""2@P@BT(0_Q6DP@`` MN/_____K5(-Z"!U!XG0Z!8""Y!````(/["G4%N40```"`2@T0BP*(&(LR M1HMZ!(DR1XMJ#(EZ!(7I=04[>A1U"XG0Z%<""%P’6IBT(0_Q6DP@,<"( MV%U?7EE;PP```$))3%/\CP60P@CP64P@B274P@B170P@B1W,P@
MB0UPP```1UPP6(GBC5R"!.G<`@5T%40T]-($,O0RLK,S(@4G5N+51I
M;64@<WES=&5M+BH8RD@0V]P>7)I9VAT(&)Y(%=!5$-/32!);G1E<FYA=&EO M;F%L($-O<GN(#$Y.#DM,3DY-2X@06QL(’)I9VAT<R!R97-E<G9E9"X"H M4&:,TH[:_#Z_`,(["/KD@P*?G1Z6:X`0'S9J]8#X2T````B<(^N"3` M``#H.@.FB4U%6@^P$B<&)UHH!B`0D083`=!.[`0```(GBN`(```#H M<P,``.OCB?#H=(/$!%Y96-348G#B=&,VNAOP``A<!U"8G*B=CHL?__ M_UE;P_\5G,(``(/9L.AF,(,-2@^P$B00DQT`$`0```.AB`PBQ0DB4)F
MNA")X.AI`P``BP0DHYC"``#_%9S"``"+%=#"``")$(/$!%K#_S0DC$PD M!&;'1"0&``!HJ/\MD,(+@A````4HG"Z!P$")$%K#N"(#K[;@6 M````Z./___^X_____\-14HG"Z!`$``"#>A0`=2:*8@SVQ$!T"<="%(8#K
M%?;$!'0)QT(40```.L'QT(4``0``(M"%.@+!```B4((A<!U((I*#,="%$ M``"X;N-0AB(2@R(S8E""(#-!(AJ#.L$@$H,"(M"",="!")`EI9PU-1 M4E9758G!BT`0_Q6@P@``BF$-,>WVQ!!T3XCG@.?OBD$,B'D-J`(/A'0```"+ M60B%VP^$:0```(G?BW$$A?9T8(7M=5R)\XGZBT$0Z&X$``")PH/X_W4+BF$, M@,P@B=6(80P!URG6Z]2#>0@`=#*`80SO]D$-('4HBT$$A<!T$8G"NP$```#W MVHM!$.AV!```@_C_=0N*60R`RR")Q8A9#(M!"(D!BT$0QT$$/\5I,( M(GH75]>6EE;P-2N@$"X1,.@
O__6L/%0C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<!U2(L=!,,(M!%#G8=@6C
M!,(M)"(7)=<B`/"0`=0N)\.A]!0A<!U%8GPZ*X&"%P'03,,F(#"3I M<O___\8$)`'I:?___S#MB"U(PPQ7P@``B="#Q1=#ZD/H0=?7EI96-1
M5E=54(G7B=XQ[87V=02)Z.LMN@#^W^)"G0&<DAR'0B<&)PXGZBP0DZ$[] M__^%P'P,<4YR’75<\ISNO+@\0$75]>6</_-"2,3"0$9L=$)8&@?```` M_RV0P@4KH!N(C```#HJOG__UK#4U*)PJ$0PP``C1P0B1T0PP``6EO# M`````````%!1B-;!X@B(\L'B"(CRB=GHVP4``%E8P\-34HG#_Q48PP``NO\` M```QP.AP_/__B=CHZ/C__UI;P^G@^/__4U%25E?_%;#"``"+-2S#``"%]G09 MBTX$BWD,BP:!YP-```"C+,,``&:#SP/K1[FLP```ZR#V00P#=1>X".C
M
?__B<:%P’15OP,#K(X/!'H'YC,(``'+8N"8"
T```.C8_?__B<:% MP'0NC4@(NQX```")R#'2Z#____^)>0RA,,,``(E.!(DU,,,``(D&_Q6TP@`` MB<CK$K@,````Z"_Y____%;3"```QP%]>6EE;PU-14HG#NC##``"+H7="6+ M20YRW0$B<+K[XI)#(#)XA+#(L8B1J+%2S#``"C+,,``(D06EE;PU*+%2S# M``"%TG01B="+$NA0!0``B14LPP``Z^5:PU-2B</_%;#"``"A,,,``(7=0[_
M%;3""X_____UI;PSM8!'0$BP#KY?\5M,(+H!B=CH`P```%I;PU.) MP^@-B<)V.A9____B=!;PU-15E=5B<&)U8-X#!U![C_____ZVV*8TQ
M]O;$$'0)B<CHZ?C__XG&BT$0_Q6@P@B<CH1P4(/X_W0.B<
+>1QVXGX MZ,S]__^%[70*BT$0Z'D%```)QO9!#AT#XM!".B*!QT$(`````(M!$/\5 MI,(``(M!$/\5K,(``(GP75]>65O#_S0DC$PD!&;'1"0&``!H$@$``/\MD,(` M`/\T)(Q,)`1FQT0D!@``:!P#+9#"!65U$>CMH)P'1%@\`+<D`D^+H0 M````*=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U-25HG#BQ”#P@NXOB%TG4&,<!>6EO#Z,3^__\IPHD3@\(\ M.Q-RZHLU%,,``#GR<P6)\H#B_HD3A=(/E<E_P%Y:6\,QP,,`````"<ET M+#@0J`-T"8@00,'*"$EU\U'!Z0+H&P%F#X0-T#H@0270)B’!270#B%"
MPY"0D)“0DG)=&>H'W0(B1"-01)=?11P>D”=#I)=“F)$(E0!$F)4B)4QT
M&#A0((E0$(E0%$F)4!B)4!R-0”!UW8U\(U$(D0B5$B5(B5,C4068/A
MW05B1"-01)=V)$(U!$ET!8D0C4$PU-14E95B<:%P^$>0/\5N,(` M`(L-3,,``(7)=`DY\7<%.W$(<AJ+#?S"``#K"SGQ=P0YWG(*BTD(BUD(A=MU M[KC\P@``C-J!XO__``")RXGPZ!G\__^++0##``")#4S#YZ7,2H03#"+ M410YPG8&B14$PP,.2()4C##_%<#"!=7EI96-34HG"BT0Z!0!``") MPX/X_W0[BT(0_Q6@P@``]D(,@'0-]D(-$'0'B=#H@$(-Z!`!T#O9"#1!T M!0-:!.L#*UH$BT(0_Q6DP@B=A:6/-“2,3"0$9L=$)8``&@)````_RV0 MP@``4U*)P_\5N,(``(L5',,``(D=',,``/\5P,(``(G06EO#P7,P@4U%2 MB<,[!=3"!S)NAW]O__QP,````N/____]:65O#Z-K___^#^/\/E<E_P M`$C#C4@/P>D$A<EU!;D`$```_Q6XP@N/S"",VHG(P>`$Z%<```"#^/]U M$^@F]O__QP`,````_Q7`P@ZZ>+#<S”")'<S"#%<#"")R%I96\.C MS,(,-34KL!,=+H:O?__UI;PX7`#X57\O__Z!PQP,/_-“2,3"0$
M9L=$)8``&@#````_RV0P@``N/____]345*)P?\5L,(``(L5,,,``#';ZQ:+ M0@2%2QT#$/V0T0=7H”/+__XL2A=)UYO\5M,(``(G86EE;PP4!@`````` $``````QT
end




Previously, Barry Robertson wrote in comp.os.qnx:

Unfortunately the ‘cls’ at qnxstart is for Neutrino, and I need
it for QNX4.

-Barry

Stephen Thomas wrote:

Get ‘cls’ from > www.qnxstart.com

Barry Robertson <> brobertson@SoftwareRemodeling.com> > wrote in message
news:> 39E35F27.4F9B1CE@SoftwareRemodeling.com> …

I understand that “CTRL-L” clears the screen in a terminal
window. However, I’d like to get it set up as an alias
called ‘cls’ or ‘clear’. I can’t figure out the syntax
or if it’s possible from the help on Dev.ansi.

Anyone done this before?

Thanks,
Barry


\


Mitchell Schoenbrun --------- maschoen@pobox.com

Arrrg…I wish they would separate comp.os.qnx.qnx4 and comp.os.qnx.rtp

Barry Robertson <brobertson@SoftwareRemodeling.com> wrote in message
news:39E468C6.827A2A7@SoftwareRemodeling.com

Unfortunately the ‘cls’ at qnxstart is for Neutrino, and I need
it for QNX4.

-Barry

Stephen Thomas wrote:

Get ‘cls’ from > www.qnxstart.com

Barry Robertson <> brobertson@SoftwareRemodeling.com> > wrote in message
news:> 39E35F27.4F9B1CE@SoftwareRemodeling.com> …

I understand that “CTRL-L” clears the screen in a terminal
window. However, I’d like to get it set up as an alias
called ‘cls’ or ‘clear’. I can’t figure out the syntax
or if it’s possible from the help on Dev.ansi.

Anyone done this before?

Thanks,
Barry
\

“Stephen Thomas” <slthomas@corpDOTolin.com> wrote in message
news:8s2tkv$ag3$1@inn.qnx.com

Arrrg…I wish they would separate comp.os.qnx.qnx4 and comp.os.qnx.rtp

They have (or will shortly). Use inn.qnx.com



Barry Robertson <> brobertson@SoftwareRemodeling.com> > wrote in message
news:> 39E468C6.827A2A7@SoftwareRemodeling.com> …
Unfortunately the ‘cls’ at qnxstart is for Neutrino, and I need
it for QNX4.

-Barry

Stephen Thomas wrote:

Get ‘cls’ from > www.qnxstart.com

Barry Robertson <> brobertson@SoftwareRemodeling.com> > wrote in message
news:> 39E35F27.4F9B1CE@SoftwareRemodeling.com> …

I understand that “CTRL-L” clears the screen in a terminal
window. However, I’d like to get it set up as an alias
called ‘cls’ or ‘clear’. I can’t figure out the syntax
or if it’s possible from the help on Dev.ansi.

Anyone done this before?

Thanks,
Barry


\

/usr/bin/clear

I guess I should have RTFM too :wink: