TERM type ANSI

112 views
Skip to first unread message

Voltron

unread,
Mar 27, 2007, 10:28:10 AM3/27/07
to jBASE
Does JED not like when you have set the term to ANSI through telnet.

Whenever I try to JED a program or record it automatically start
insterting strange charatcters in row 1. And all I can do is close
out of my telnet session.

The reason I want ANSI is that my programs use colour and with VT100
and VT220 I don't get to use that.

Daniel Klein

unread,
Mar 27, 2007, 10:46:37 AM3/27/07
to jB...@googlegroups.com

You probably do not have your terminal type set correctly on the server.

What does the 'TERM' command display?

If you set 'TERM=ansi' in  the '.profile' or 'remote.cmd', does that help?

Dan

Voltron

unread,
Mar 27, 2007, 11:14:07 AM3/27/07
to jBASE
I have put set TERM=ANSI in my remote.cmd file but that doesn't do the
trick.

On Mar 27, 10:46 am, "Daniel Klein" <danielklei...@gmail.com> wrote:

Daniel Klein

unread,
Mar 27, 2007, 12:01:51 PM3/27/07
to jB...@googlegroups.com
On 3/27/07, Voltron <shawn...@yahoo.ca> wrote:

I have put set TERM=ANSI in my remote.cmd file but that doesn't do the
trick.

Do you also have the terminal type set correctly in the telnet client?

What does the 'TERM' command display? This will confirm that the setting is correct.

Do these 'strange characters' appear on a console session?

What telnet client are you using?

Is there a '.jedrc' file in the cwd? If so, what are its contents?

Dan

Voltron

unread,
Mar 27, 2007, 12:19:20 PM3/27/07
to jBASE
When I log in through telnet and type TERM I get this.

TERMINAL NAME: ANSI
TERMINAL WIDTH: 80 PRINTER WIDTH: 132
DEPTH: 24 DEPTH: 64

When I go to the server and use JSH, I do not get these strange
characters.

I am just going to a command prompt and type TELNET JBASE. So it is
the Windows telent client.


On Mar 27, 12:01 pm, "Daniel Klein" <danielklei...@gmail.com> wrote:

Daniel Klein

unread,
Mar 27, 2007, 1:48:49 PM3/27/07
to jB...@googlegroups.com
On 3/27/07, Voltron <shawn...@yahoo.ca> wrote:

When I log in through telnet and type TERM I get this.

TERMINAL NAME: ANSI
TERMINAL WIDTH: 80             PRINTER WIDTH: 132
                 DEPTH: 24                           DEPTH: 64

When I go to the server and use JSH, I do not get these strange
characters.

I am just going to a command prompt and type TELNET JBASE.  So it is
the Windows telent client.


Therein lies the problem. The Windows Telnet Client not understand 'ansi' or any other terminal emulation for that matter.

The solution is to use a telnet client that supports the emulations you require. The one I am partial too is SecureCRT
http://www.vandyke.com/products/securecrt/

Dan

Tom Turkington

unread,
Mar 27, 2007, 2:26:54 PM3/27/07
to jB...@googlegroups.com

JED should work with the Windows Telnet client as long as the emulation is ‘VT100’ – Per your desire to use colors for other applications, you might want to write a wrapper for JED that sets TERM VT100 before loading, and back to ANSI when done. 

 

That said, I agree with Dan that you should consider getting a better telnet client.  Windows Telnet is okay in a pinch, but otherwise, um, sucks.

 

Tom

Voltron

unread,
Mar 27, 2007, 3:30:06 PM3/27/07
to jBASE
Does that securecrt program understand the 'ntcon' TERMINAL NAME?

When I do a TERM on the server's JSH exectuable that is the what it
tells me it is using.

On Mar 27, 2:26 pm, "Tom Turkington" <t...@proman.com> wrote:
> JED should work with the Windows Telnet client as long as the emulation is

> 'VT100' - Per your desire to use colors for other applications, you might


> want to write a wrapper for JED that sets TERM VT100 before loading, and
> back to ANSI when done.
>
> That said, I agree with Dan that you should consider getting a better telnet
> client. Windows Telnet is okay in a pinch, but otherwise, um, sucks.
>
> Tom
>
> From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf Of
> Daniel Klein
> Sent: Tuesday, March 27, 2007 10:49 AM
> To: jB...@googlegroups.com
> Subject: Re: TERM type ANSI
>

Daniel Klein

unread,
Mar 27, 2007, 3:50:18 PM3/27/07
to jB...@googlegroups.com
On 3/27/07, Voltron <shawn...@yahoo.ca> wrote:

Does that securecrt program understand the 'ntcon' TERMINAL NAME?

When I do a TERM on the server's JSH exectuable that is the what it
tells me it is using.

Yes. If you look at the actual terminfo definitions that jBASE provides (%JBCRELEASEDIR%\src\jbase_nt.ti),  you will see that 'ansi' is a synonym for 'ntcon'.

And thanks Tom, I stand corrected about VT100. I don't use the Windows Telnet Client except, as you say, in a pinch :-)

Dan

Tom Turkington

unread,
Mar 27, 2007, 4:13:59 PM3/27/07
to jB...@googlegroups.com

Dan, I didn’t know VT100 worked until somebody told me.  Until then I cursed vehemently every time I accidentally JED-edited with windows telnet client (and still do if I forget to set TERM first...).

 

Tom

 

From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf Of Daniel Klein
Sent: Tuesday, March 27, 2007 12:50 PM
To: jB...@googlegroups.com
Subject: Re: TERM type ANSI

 

On 3/27/07, Voltron <shawn...@yahoo.ca> wrote:

Voltron

unread,
Mar 27, 2007, 4:20:38 PM3/27/07
to jBASE
I guess what I need to know then is what settings I need to do to make
it look exactly as if I was logged in through the JSH executable on
the server?

Because when I run a program from the server it looks perfect. I get
my lines and boxes just like I should. But when I use telnet my lines
and boxes come up as letters and characters.

On Mar 27, 3:50 pm, "Daniel Klein" <danielklei...@gmail.com> wrote:

Darrin Filer

unread,
Mar 27, 2007, 4:29:25 PM3/27/07
to jB...@googlegroups.com
We dealt with the same headaches here, trying to get line graphics to
display correctly. What works for us is: Anita Terminal Emulator set to DEC
vt100 and a character set of IBM PC (OEM).

These settings are surprisingly random between various emulators. But one
thing is for sure, you'll need to have use an emulator that can use the
appropriate character set.

------------------------------
Darrin Filer
IT Manager
Cook Vascular Incorporated
Phone: 1-800-245-4715 (x2222)
Fax: 1-724-845-2848
Email: dfi...@cookvascular.com
------------------------------

-----Original Message-----
From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf Of
Voltron
Sent: Tuesday, March 27, 2007 4:21 PM
To: jBASE
Subject: Re: TERM type ANSI

Voltron

unread,
Mar 28, 2007, 8:48:59 AM3/28/07
to jBASE
Darrin, Anita Termainal Emulator works much better for the graphics.
Thank you.

Out of curiosity, what did you set the host platform at?

> > Dan- Hide quoted text -
>
> - Show quoted text -

Darrin Filer

unread,
Mar 28, 2007, 8:59:10 AM3/28/07
to jB...@googlegroups.com
Host Platform is set to Linux in the Anita Terminal Emulator. (We run jBASE
on RedHat 9) I'm not sure what this setting does precisely or even if it has
much of an affect.

Darrin Filer

Nick Lukin

unread,
Mar 29, 2007, 3:11:56 AM3/29/07
to jBASE
I would suggest here AnzioWin Telnet client from Rasmussen software
www.anzio.com . It works perfectly in both ANSI and "native" ANZIO
emulations, which is supported by jBASE 4.1 as well. Anzio returns the
term type to the Telnet server so that there's no need to get bothered
about setting this up. Anzio supports various combinations of
codepages in host/clent/printer, including UTF-8 with additional
support for Linux specifics. It's definitely the best product in the
market.

HTH
Nick

> > - Show quoted text -- Скрыть цитируемый текст -
>
> - Показать цитируемый текст -

Jim Idle

unread,
Apr 3, 2007, 1:15:03 PM4/3/07
to jB...@googlegroups.com
ANZIO is a decent telnet client, and I would also recommend CRT (www.vandyke.com)

Jim

Reply all
Reply to author
Forward
0 new messages