Clear the screen

220 views
Skip to first unread message

Senthil Kumaran

unread,
Nov 24, 2008, 11:27:54 PM11/24/08
to jBASE
How to clear the screen in jshell. Can somebody help to proceed further

Jim Idle

unread,
Nov 25, 2008, 12:30:04 PM11/25/08
to jB...@googlegroups.com
On Mon, 2008-11-24 at 20:27 -0800, Senthil Kumaran wrote:
How to clear the screen in jshell. Can somebody help to proceed further

You need to provide more information:

1) What operating system? Do you need something operating system independent?
2) What screen? Web Browser? pty? tty? Windows command shell? Inter-galactic-sub-etha-pan-dimensional-rendering-device?
3) Have you tried: tput clear

Jim




sarfraz...@gmail.com

unread,
Nov 26, 2008, 3:59:53 AM11/26/08
to jBASE
Hello,

just write a program in infobasic. Program is mentioned below;

PROGRAM CLEAR
CRT @(-1)
END
> - Hide quoted text -
>
> - Show quoted text -

icht...@yahoo.com

unread,
Nov 26, 2008, 4:27:05 AM11/26/08
to jBASE
Hi Senthil,

I usually write this small program and catalog it on jBase level. The
program more or less imitates the old UniVerse "CS" command, i.e. it
clears any active select list, clears the screen and turns off any
screen attributes. Not sure if it works on all terminals though...

PROGRAM CS

CLEARSELECT

CRT @(-1):@(-128):

END

Cheers,

Ryan

On Nov 25, 5:27 am, Senthil Kumaran <87senthilkuma...@gmail.com>
wrote:

ÄLï Në£mÜ©H

unread,
Nov 26, 2008, 6:22:05 AM11/26/08
to jB...@googlegroups.com
IN windows ur in unix what is the command to clear screen in jshell mode??
--
Regards,
Ali Hussain Javed Neemuchwala
NDC Training Academy
Technical Trainer/Consultant of Temenos Globus & T24
OFF ADD:Suite# 218,The Plaza Khayaban-e-Iqbal Clifton,Karachi-75600 Pakistan.
OFF# 021-5863990
Cell# 0300-2760352

ÄLï Në£mÜ©H

unread,
Nov 26, 2008, 6:22:05 AM11/26/08
to jB...@googlegroups.com
IN windows ur in unix what is the command to clear screen in jshell mode??

On 11/25/08, Jim Idle <ji...@temporal-wave.com> wrote:

Jim Idle

unread,
Nov 26, 2008, 4:06:35 PM11/26/08
to jB...@googlegroups.com
On Wed, 2008-11-26 at 01:27 -0800, icht...@yahoo.com wrote:
Hi Senthil,

I usually write this small program and catalog it on jBase level. The
program more or less imitates the old UniVerse "CS" command, i.e. it
clears any active select list, clears the screen and turns off any
screen attributes. Not sure if it works on all terminals though...

PROGRAM CS

CLEARSELECT

However, this has the side effect of clearing the default select list too and is only runnable from the jSHELL if you CATALOG the program.

Jim

Senthil Kumaran

unread,
Nov 27, 2008, 12:56:24 AM11/27/08
to jB...@googlegroups.com


Can you tell me how to clear the screen of jshell prompt.....

ÄLï Në£mÜ©H

unread,
Nov 27, 2008, 4:01:52 AM11/27/08
to jB...@googlegroups.com
Thanx sarfraz ur great man!

MatjU

unread,
Dec 16, 2008, 6:26:29 AM12/16/08
to jBASE
On Nov 25, 5:27 am, Senthil Kumaran <87senthilkuma...@gmail.com>
wrote:
> How to clear the screen in jshell. Can somebody help to proceed further

If you are using *-nix just type 'clear'

Mateusz

MatjU

unread,
Dec 16, 2008, 6:26:29 AM12/16/08
to jBASE
On Nov 25, 5:27 am, Senthil Kumaran <87senthilkuma...@gmail.com>
wrote:
> How to clear the screen in jshell. Can somebody help to proceed further

Darshan KSV

unread,
Dec 24, 2008, 12:47:54 PM12/24/08
to jb...@googlegroups.com
Create a VOC by name CLS (or anything you like) as follows:

File VOC , Record 'CLS'  
Command->
0001 PQN
0002 T C


Save it. Now whenever you wish to clear your screen just type CLS & hit Enter.

Regards,
Darshan
______________________________________________________________________

> Date: Tue, 16 Dec 2008 03:26:29 -0800
> Subject: Re: Clear the screen
> From: mateus...@gmail.com
> To: jB...@googlegroups.com

Senthil Kumaran

unread,
Dec 26, 2008, 8:37:29 PM12/26/08
to jB...@googlegroups.com

I am just a begineer,,,

 I want to learn on JBASE concept and programming, Can u prefer the name of Jbase book

and list of author of it...


Thanks and Regards,

Senthil


Senthil Kumaran

unread,
Dec 26, 2008, 8:36:20 PM12/26/08
to jB...@googlegroups.com

Hai Darshan,

I created this VOC entry and

Successfully excuted.......

Can i know the meaning of each line in this program.....

Also i want to learn on JBASE concept and programming, Can u prefer the name of Jbase book

and list of author of it...

Thanks and Regards,

Senthil

Jim Myers

unread,
Dec 29, 2008, 4:48:04 AM12/29/08
to jB...@googlegroups.com
Hi,

Whats the meaning of PQN and T space C in the VOC CLS?????


-Best Regards


==================
Jim Jerry Myers
Global Solutions Limited.
42, Giffard Road,
Cantoments.

P. O. Box CT-2946
Accra,
Ghana.

Mobile +232 76 588 016

skype id => jimjerrymyers

==================
Samuel Goldwyn  - "Include me out."

Richard Kann

unread,
Dec 29, 2008, 9:44:41 AM12/29/08
to jB...@googlegroups.com
T means go to terminal, C means clear screen based on terminal settings.

Neil at CASoftware

unread,
Dec 29, 2008, 9:12:36 AM12/29/08
to jB...@googlegroups.com

Hi Jim,

 

PQN (or PQ – both work in this case) dictates the type of VOC record is a PROC.

 

T stands for Terminal

 

C after the T means clear screen (you could also use “T (-1)”)

 

Regards,

 

Neil.



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.7.6/1714 - Release Date: 28/12/2008 14:23

Jim Myers

unread,
Dec 29, 2008, 10:15:10 AM12/29/08
to jB...@googlegroups.com
Thanks Neil!!


-Best Regards


==================
Jim Jerry Myers
Global Solutions Limited.
42, Giffard Road,
Cantoments.

P. O. Box CT-2946
Accra,
Ghana.

Mobile +232 76 588 016

skype id => jimjerrymyers

==================
Rodney Dangerfield  - "The way my luck is running, if I was a politician I would be honest."

dennis bartlett

unread,
Dec 29, 2008, 2:00:27 PM12/29/08
to jB...@googlegroups.com
1) PQN is the opening line of a Proc file. In Proc the "T" command outputs to "display", and the "C" switch tells it to issue a "clearscreen".

2) To get an understanding of Pick (or jBASE) go to www.jes.com, and look for Jonathan Sisk's Pick book.


Background History of Proc / Comparison with Paragraphs
------------------------------------------------------------------------------------
Universe, (and jBASE) is based on the Pick system, uses Paragraphs to create batch files.
Paragraphs start with a PA on line 1 and take the form of normal command line statements.

eg
PA
LIST FILE BY FIELD FIELD1 FIELD2

Before paragraphs existed there was another batch language, called Proc (for Procedural Language). Procs start with PQ (or PQN) in line 1. Because Universe was designed to be able to cater for every type of Pick system that would want to upgrade into it, it also caters for Procs (backward compatible)

Proc worked a bit like Assembler, in that its input and output was done using buffers. Commands in Proc had to be loaded onto a stack and then executed.

eg
PQ
HLIST FILE BY FIELD FIELD1 FIELD2
P

where H loads the statement onto the stack, and P processes it.

In proc the command to display something on screen, a bit like a java println(), is T and the switch to clear the output is a capital C, so
T C outputs a "clear screen" to the display...





2008/12/27 Senthil Kumaran <87senthi...@gmail.com>
Reply all
Reply to author
Forward
0 new messages