pterm tab width

(How) can I change the tab width in pterm?

I have many things that display to the screen and assume that the tab
width will be 4 characters.

Wojtek Lerch <wojtek_l@yahoo.ca> wrote:

Bill Caroselli <> qtps@earthlink.net> > wrote:
(How) can I change the tab width in pterm?

I have many things that display to the screen and assume that the tab
width will be 4 characters.

The QANSI terminal emulation has an escape sequence (ESC H) that sets a
tab stop at the cursor position. You’d need a little program or shell
script to print out “1234H” several times. If you know that
the width of your pterm is a multiple of four, you don’t even care if it
wraps to the next line and keps going.

Of course, you’ll need to do it again after you resize your pterm wider
than it was before.

Bummer! But I guess you folks didn’t write these rules.

Instead, you can run your pterm with the -Q option that tells it to use
the old QNX emulation, which comes with a tab width of 4. If you then
open the Properties dialog and hit Save, the setting will become your
default. The -uQ option switches you back to QANSI.

This I knew, but since QSSL is moving away from QNX emulation, I have
decided to do the same.

(It’s a real pain too. I have many text based utilities that use colors
for displaying status messages. It makes it real easy to scroll quickly
through a log file to find certain kinds of messages when you don’t know
what the exact text might me. But it’s a pain to change all of those
Escape sequences. Shame on me for not encapulating it better. Well,
I’m doing that now.)

Bill Caroselli <qtps@earthlink.net> wrote:

(How) can I change the tab width in pterm?

I have many things that display to the screen and assume that the tab
width will be 4 characters.

The QANSI terminal emulation has an escape sequence (ESC H) that sets a
tab stop at the cursor position. You’d need a little program or shell
script to print out “1234H” several times. If you know that
the width of your pterm is a multiple of four, you don’t even care if it
wraps to the next line and keps going.

Of course, you’ll need to do it again after you resize your pterm wider
than it was before.

Instead, you can run your pterm with the -Q option that tells it to use
the old QNX emulation, which comes with a tab width of 4. If you then
open the Properties dialog and hit Save, the setting will become your
default. The -uQ option switches you back to QANSI.

Bill Caroselli <qtps@earthlink.net> wrote:

Wojtek Lerch <> wojtek_l@yahoo.ca> > wrote:
Bill Caroselli <> qtps@earthlink.net> > wrote:
(How) can I change the tab width in pterm?

I have many things that display to the screen and assume that the tab
width will be 4 characters.

The QANSI terminal emulation has an escape sequence (ESC H) that sets a
tab stop at the cursor position. You’d need a little program or shell
script to print out “1234H” several times. If you know that
the width of your pterm is a multiple of four, you don’t even care if it
wraps to the next line and keps going.

Of course, you’ll need to do it again after you resize your pterm wider
than it was before.

Bummer! But I guess you folks didn’t write these rules.

Instead, you can run your pterm with the -Q option that tells it to use
the old QNX emulation, which comes with a tab width of 4. If you then
open the Properties dialog and hit Save, the setting will become your
default. The -uQ option switches you back to QANSI.

This I knew, but since QSSL is moving away from QNX emulation, I have
decided to do the same.

(It’s a real pain too. I have many text based utilities that use colors
for displaying status messages. It makes it real easy to scroll quickly
through a log file to find certain kinds of messages when you don’t know
what the exact text might me. But it’s a pain to change all of those
Escape sequences. Shame on me for not encapulating it better. Well,
I’m doing that now.)

| expand -t4

Before viewing?

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.