bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ANSI terminal issues


From: Pradeep Padala
Subject: ANSI terminal issues
Date: Fri, 28 Jun 2002 14:36:04 -0400 (EDT)

Hi,
   A user who read my howto wrote to me about this. I don't know the
answer to this question. If you know, please answer. His mail follows..

--pradeep


------
I just found your ncurses howto on the web, so I though you must be
familiar in it.
I wanted to compile a really small program, then I've got a problem.
Perhaps you could use my experiences.... so

#include <ncurses.h>

int main()
{
        initscr();                      /* Start curses mode */

        printw("Hello World !!! (%08x) (%8s)",1,"00000001");
        refresh();                      /* Print it on to the realscreen */
        getch();                        /* Wait for user input */
        endwin();                       /* End curses mode */

        return 0;
}

step #1. export TERM=ansi
I set the terminal to ansi,  and the result is:

Hello World !!! (01) (01)

Seems the leading zeros just vanished. Do you have any idea, why?

step #2. export TERM=vt100
With the vt100 works fine:

Hello World !!! (00000001) (00000001)

step #3. export TERM=xterm-color
Same, works:

Hello World !!! (00000001) (00000001)


I realy do not know why this is. But interesting.

Regards,
  Jozsef Laszlo
  PSINet ETC,
  Switzerland

-------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]