Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

autowrap on console terminals

7 views
Skip to first unread message

Phillip Helbig---remove CLOTHES to reply

unread,
Jun 6, 2009, 10:00:38 AM6/6/09
to
I use VT320 as console terminals. I have them set up like I want. This
includes AUTOWRAP. Otherwise, messages can be cut off. After a boot,
this setting is gone, and I have to go into the setup and "Recall" the
correct setting (this is quicker than explicitly resetting it). This
happens far too early to correct it via SET TERMINAL in the startup. Is
there any way around this problem?

H Vlems

unread,
Jun 6, 2009, 5:21:35 PM6/6/09
to
On Jun 6, 4:00 pm, hel...@astro.multiCLOTHESvax.de (Phillip Helbig---

What about running it at 132 characters/line?
Hans

VAXman-

unread,
Jun 6, 2009, 8:44:59 PM6/6/09
to

$ MCR SYSGEN
SYSGEN> USE CURRENT
SYSGEN> SHOW/HEX TTY_DEFCHAR

Parameter Name Current Default Min. Max. Unit Dynamic
-------------- ------- ------- ------- ------- ---- -------
TTY_DEFCHAR 180010A0 180012A0 00000000 FFFFFFFF Bitmask

OR the result with %x200 (TT$M_WRAP = ^X200). In this example, the result
is %x180010A0 . ORed with %x200 yields %x180012A0.

SYSGEN> SET TTY_DEFCHAR %x180012A0
SYSGEN> WRITE CURRENT

This should set the default terminal characteristic to be WRAP. This will
affect all terminals but since you can put a $ SET TERMINAL in SYLOGIN.COM
or LOGIN.COM, this shouldn't be too much of an issue.

If you are talking about terminal specific features that are somehow clear-
ed when you reboot, you will want to have some escape sequence output dur-
ing the initial primordial phases of the bootstrap to reset these. I'd be
more inclined to try to figure out *why* these should be reset than trying
to hack a work-around.

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

http://www.quirkfactory.com/popart/asskey/eqn2.png

"Well my son, life is like a beanstalk, isn't it?"

JF Mezei

unread,
Jun 7, 2009, 12:07:41 AM6/7/09
to
VAXman- @SendSpamHere.ORG wrote:

> TTY_DEFCHAR 180010A0 180012A0 00000000 FFFFFFFF Bitmask

> This should set the default terminal characteristic to be WRAP.

Does this also affect OPA0: ????

Also, would VMS send out escape sequences to tell the terminal to set
wrapping to off based on the above setting ?

I was under the impression that "wrap" at the VMS (TTY_DEFCHAR) level
would cause the terminal driver to insert CR-LF into the stream, whereas
the autowrap feature of a VT terminal would automatically fold to the
next line any data that exceeds the rightmost character position (80 or
132 depending on mode).

Based on Mr Helbig's description, it would appear that VMS would send to
the terminal some escape sequence that would reset the terminal's own
local characteristics.

Is this on a VAX or Alpha machine ?

Phillip Helbig---remove CLOTHES to reply

unread,
Jun 7, 2009, 5:27:57 AM6/7/09
to
In article
<3a1e5fe1-53d9-4726...@g1g2000yqh.googlegroups.com>, H
Vlems <hvl...@freenet.de> writes:

I guess most messages are less than 132 characters. However, I prefer
80 (due to the larger font) and especially for consoles, since I often
glance at them out of the corner of my eye.

Phillip Helbig---remove CLOTHES to reply

unread,
Jun 7, 2009, 5:36:14 AM6/7/09
to
In article <00A8CA70...@SendSpamHere.ORG>, VAXman-
@SendSpamHere.ORG writes:

> In article <h0dsq6$1lh$1...@online.de>, hel...@astro.multiCLOTHESvax.de (Phillip Helbig---remove CLOTHES to reply) writes:
> >I use VT320 as console terminals. I have them set up like I want. This
> >includes AUTOWRAP. Otherwise, messages can be cut off. After a boot,
> >this setting is gone, and I have to go into the setup and "Recall" the
> >correct setting (this is quicker than explicitly resetting it). This
> >happens far too early to correct it via SET TERMINAL in the startup. Is
> >there any way around this problem?
> >
>
> $ MCR SYSGEN
> SYSGEN> USE CURRENT
> SYSGEN> SHOW/HEX TTY_DEFCHAR
>
> Parameter Name Current Default Min. Max. Unit Dynamic
> -------------- ------- ------- ------- ------- ---- -------
> TTY_DEFCHAR 180010A0 180012A0 00000000 FFFFFFFF Bitmask
>
> OR the result with %x200 (TT$M_WRAP = ^X200). In this example, the result
> is %x180010A0 . ORed with %x200 yields %x180012A0.

I currently have the default %X180012A0. If I understand you correctly,
this should already contain AUTOWRAP.

> This should set the default terminal characteristic to be WRAP. This will
> affect all terminals but since you can put a $ SET TERMINAL in SYLOGIN.COM
> or LOGIN.COM, this shouldn't be too much of an issue.

Right, that's what I was looking for, but it seems I already have it.

> If you are talking about terminal specific features that are somehow clear-
> ed when you reboot, you will want to have some escape sequence output dur-
> ing the initial primordial phases of the bootstrap to reset these. I'd be
> more inclined to try to figure out *why* these should be reset than trying
> to hack a work-around.

It happens on all of my machines. I have nothing fancy in the startup
in this respect.

Phillip Helbig---remove CLOTHES to reply

unread,
Jun 7, 2009, 5:37:29 AM6/7/09
to
In article <00243661$0$29009$c3e...@news.astraweb.com>, JF Mezei
<jfmezei...@vaxination.ca> writes:

> VAXman- @SendSpamHere.ORG wrote:
>
> > TTY_DEFCHAR 180010A0 180012A0 00000000 FFFFFFFF Bitmask
>
> > This should set the default terminal characteristic to be WRAP.
>
> Does this also affect OPA0: ????

Interesting question; I'm only concerned with OPA0: since for others
SYS$SYLOGIN is executed.

> Is this on a VAX or Alpha machine ?

I see the problem on both.

JF Mezei

unread,
Jun 7, 2009, 6:13:54 AM6/7/09
to
I would suggest you put the terminal in "display control codes" mode.

CSI ? 7 h : set autowrap on.
CSI ? 7 l : set autowrap off.

(for the "off", the character is lowercase L as in "elle").

Check when you power on the vax/alpha to see if it sends that ?7l
command, then check when you type "boot" to see if it sends it early on
(firmware) or later on (VMS).

Phillip Helbig---remove CLOTHES to reply

unread,
Jun 7, 2009, 7:00:53 AM6/7/09
to
In article <00248c36$0$29043$c3e...@news.astraweb.com>, JF Mezei
<jfmezei...@vaxination.ca> writes:

> I would suggest you put the terminal in "display control codes" mode.
>
> CSI ? 7 h : set autowrap on.
> CSI ? 7 l : set autowrap off.

The problem is that the problem occurs at the very beginning of the
startup, even before SYLOGICALS.COM is executed.

> Check when you power on the vax/alpha to see if it sends that ?7l
> command, then check when you type "boot" to see if it sends it early on
> (firmware) or later on (VMS).

How?

Bob Eager

unread,
Jun 7, 2009, 7:40:24 AM6/7/09
to

By putting the terminal in "display control codes" mode...

--
Bob Eager

VAXman-

unread,
Jun 7, 2009, 7:46:50 AM6/7/09
to
In article <00243661$0$29009$c3e...@news.astraweb.com>, JF Mezei <jfmezei...@vaxination.ca> writes:
>VAXman- @SendSpamHere.ORG wrote:
>
>> TTY_DEFCHAR 180010A0 180012A0 00000000 FFFFFFFF Bitmask
>
>> This should set the default terminal characteristic to be WRAP.
>
>Does this also affect OPA0: ????

It affects default terminal characteristics.


>Also, would VMS send out escape sequences to tell the terminal to set
>wrapping to off based on the above setting ?

I don't know but there may be an escape sequence causing some sort of
a terminal reset. I'd have to review the bootstrap detail to be more
certain of it.

VAXman-

unread,
Jun 7, 2009, 7:55:14 AM6/7/09
to
In article <00248c36$0$29043$c3e...@news.astraweb.com>, JF Mezei <jfmezei...@vaxination.ca> writes:
>I would suggest you put the terminal in "display control codes" mode.
>
>CSI ? 7 h : set autowrap on.
>CSI ? 7 l : set autowrap off.

My quick and dirty solution for you would be to put <CSI> or <ESC>[ and ?7h
in SYS$SYSTEM:STARTUP.COM

Replace:

$stdrv$start_msg = f$fao("%STDRV-I-STARTUP, OpenVMS startup begun at !%D",0)

With:

$write sys$output "<ESC>[?7h"
$stdrv$start_msg = f$fao("%STDRV-I-STARTUP, OpenVMS startup begun at !%D",0)

Phillip Helbig---remove CLOTHES to reply

unread,
Jun 7, 2009, 9:05:04 AM6/7/09
to
In article <00A8CACD...@SendSpamHere.ORG>, VAXman-
@SendSpamHere.ORG writes:

> My quick and dirty solution for you would be to put <CSI> or <ESC>[ and ?7h
> in SYS$SYSTEM:STARTUP.COM

It happens even before that, e.g. when doing a minimum boot. The
messages about cluster connections, write bitmaps etc.

VAXman-

unread,
Jun 7, 2009, 10:15:58 AM6/7/09
to

PATCH the copyright message in EXEC_INIT.

JF Mezei

unread,
Jun 7, 2009, 5:45:31 PM6/7/09
to
Phillip Helbig---remove CLOTHES to reply wrote:
> It happens even before that, e.g. when doing a minimum boot. The
> messages about cluster connections, write bitmaps etc.

If it is after VMS has booted, then you might consider doing a search
for ?7l in all of the executables involved with early VMS booting. And
then using PATCH (in absolute mode) to change the L into an H.

AEF

unread,
Jun 8, 2009, 2:36:06 PM6/8/09
to
On Jun 7, 9:05 am, hel...@astro.multiCLOTHESvax.de (Phillip Helbig---

remove CLOTHES to reply) wrote:
> In article <00A8CACD.C109A...@SendSpamHere.ORG>, VAXman-

STARTUP.COM is run during a minimum boot. Perhaps you meant a
conversational boot.

AEF

AEF

unread,
Jun 8, 2009, 2:39:46 PM6/8/09
to
On Jun 7, 5:36 am, hel...@astro.multiCLOTHESvax.de (Phillip Helbig---

remove CLOTHES to reply) wrote:
> In article <00A8CA70.1F42D...@SendSpamHere.ORG>, VAXman-
>
>
>
> @SendSpamHere.ORG writes:

Maybe there's something in the shutdown procedure? Perhaps in
SYSHUTDWN.COM?

Be sure to be on the lookout for SET TERM/INQUIRE. That puts my VT420
in No Auto Wrap mode.

I used to have this very same problem, but I can't reproduce it now.
I'll report back if I find what it was.

AEF

ken.fa...@gmail.com

unread,
Jun 8, 2009, 4:26:42 PM6/8/09
to
On Jun 8, 11:39 am, AEF <spamsink2...@yahoo.com> wrote:
[...]

> Maybe there's something in the shutdown procedure? Perhaps in
> SYSHUTDWN.COM?
>
> Be sure to be on the lookout for SET TERM/INQUIRE. That puts my VT420
> in No Auto Wrap mode.
>
> I used to have this very same problem, but I can't reproduce it now.
> I'll report back if I find what it was.

My recollection is that, very early in the boot sequence, possibly
in the console code, the system sends some sort of "reset" sequence
to the terminal (or at least to the keyboard). This came up in the
context of KVM switches and Fred Kleinsorge relayed the inside
scoop. [I'm likely quite wrong in the details, but at the high level,
I think I've got it right.]

Now whether this would cause a VT420 to revert from user
settings, I've no idea.

-Ken

Phillip Helbig---remove CLOTHES to reply

unread,
Jun 8, 2009, 6:44:53 PM6/8/09
to
In article
<152bc44f-1cd1-4fa8...@d31g2000vbm.googlegroups.com>, AEF
<spamsi...@yahoo.com> writes:

> On Jun 7, 9:05=A0am, hel...@astro.multiCLOTHESvax.de (Phillip Helbig---


> remove CLOTHES to reply) wrote:
> > In article <00A8CACD.C109A...@SendSpamHere.ORG>, VAXman-
> >
> > @SendSpamHere.ORG writes:

> > > My quick and dirty solution for you would be to put <CSI> or <ESC>[ and=
> ?7h
> > > in SYS$SYSTEM:STARTUP.COM
> >
> > It happens even before that, e.g. when doing a minimum boot. =A0The


> > messages about cluster connections, write bitmaps etc.
>
> STARTUP.COM is run during a minimum boot. Perhaps you meant a
> conversational boot.

Yes, right, thanks (I don't do it that often).

JF Mezei

unread,
Jun 8, 2009, 8:23:07 PM6/8/09
to
ken.fa...@gmail.com wrote:

> My recollection is that, very early in the boot sequence, possibly
> in the console code, the system sends some sort of "reset" sequence
> to the terminal (or at least to the keyboard).

I doubt it does a reset to factory defaults though.
If yu set the terminal to have autowarp and then save those settings,
then I would expect a "reset" command to restore saved settings which
would include the "autowrap".

P. Sture

unread,
Jun 9, 2009, 7:55:03 AM6/9/09
to
In article <000eea1f$0$6128$c3e...@news.astraweb.com>,
JF Mezei <jfmezei...@vaxination.ca> wrote:

Going back to VT100 days, my first action after powering up a new one
was to disable the margin bell and hardware autowrap via the firmware
setup. AFAIR, neither got reset to factory defaults in the normal
course of running VMS.

I understand why Philip wants autowrap in this context, but for a
typical SMG style application, you don't really want it.

--
Paul Sture

FredK

unread,
Jun 9, 2009, 9:20:58 AM6/9/09
to
I don't believe anything in the early boot sends an escape sequence to reset
the terminal. It would likely come from something after exec init exits.


<ken.fa...@gmail.com> wrote in message
news:201a4ac1-9be4-45db...@q14g2000vbn.googlegroups.com...

0 new messages