[Top][All Lists]

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

Re: console update

From: James Morrison
Subject: Re: console update
Date: Sat, 31 Aug 2002 14:38:18 -0700 (PDT)

--- Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> wrote:
> On Fri, Aug 30, 2002 at 06:53:15AM -0700, James Morrison wrote:
> >    In one of your emails, you mentioned artifacts in the console-ncurses
> > translator.  I'm curious, do you call clrtoeol () after printing each line
> > with console-ncurses?
> No need, as I guarantee that all cells are written at least once and are
> written when they are changed.  I do print a space where ncurses does not
> delete the cell, it's ncurses deciding to make it a cursor right.
> But I think I know what happens: some characters are not displayable in
> ncursesw or the terminal's opinion, but they are counted as printed anyway. 
> This makes ncurses _think_ it has written it, and thus comes one character
> short at the end of the line.
> So, ncursesw cannot display bullets, umlauts, copyright signs in some
> terminals, or prints the wrong character codes.  If I am right, that is the
> only bug left, and I have no idea how to approach it.
> Thanks,
> Marcus

 Ok, thanks for the explanation.  I had asked because ncurses tries to wrap
lines for you.  So a line, X, that is 160 characters on an 80 character
will write two lines.  However, if you try to print a line that is less than
80 characters on the line after the beginning X without calling clrtoeol (), 
you will get extra characters at the 2nd line.

James Morrison
   University of Waterloo
   Computer Science - Digital Hardware
   2A co-op

Anyone referring to this as 'Open Source' shall be eaten by a GNU

Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

reply via email to

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