Menu

#10 Incorrect display using wcurses on windows

Alpha
open
1
2006-12-15
2006-12-13
No

This is happening for all wcurses application on my computer, and I don't know why, but I guess other might have this issue too.
The right side of all characters are cut of too early. This is especially bad for capital letters. In the submitted picture you can see my name is EFP or EPF or... You can't really tell.

I looked at the wcurses sources, but couldn't figure out an easy way to set the with. If you look at curses_win32.cpp there are some font loading, but the width is not set there. Perhaps manually setting the width in InitializeDefaultFont might work, but I haven't tried. You could consider moving to SDL with pygame and using fonts from .bmp to be sure to get the same result on all platforms.

Do you perhaps know of any other curses implementations for python on win32?

I hope you find a solution for this as I've been looking forward to trying pyro.

Discussion

  • Simen Haugen

    Simen Haugen - 2006-12-13

    wcurses chopping of the end of all characters

     
  • Eric Burgess

    Eric Burgess - 2006-12-15

    Logged In: YES
    user_id=1648606
    Originator: NO

    I've noticed it myself, although it's rather slight on my system--I can distinguish the letters, though they look a bit odd. I will email AdamV, the WCurses author, about the issue. If he fixes it, I'll make a note here.

    I don't know of any other Win/Python Curses implementations. There's a couple of other packages out there that do text-mode stuff:

    WConio - http://newcenturycomputers.net/projects/wconio.html
    I haven't played with it, but it might work well for a roguelike. It's old, though.

    Console - http://www.effbot.org/zone/console-index.htm
    Almost as old as WConio

    The problem with these two is that they aren't Curses, and so would require their own display code.

     
  • Eric Burgess

    Eric Burgess - 2006-12-15
    • priority: 5 --> 1
    • status: open --> pending
     
  • Eric Burgess

    Eric Burgess - 2006-12-15
    • status: pending --> open
     
  • Eric Burgess

    Eric Burgess - 2006-12-15

    Logged In: YES
    user_id=1648606
    Originator: NO

    Hmm...I just took a look at your screenshot, and yours is much worse than mine. It's not meant to be in italic, and I think that's exacerbating the problem. I'll ask AdamV about that, too.

    Are all WCurses apps displaying in italic on your system?

     

Log in to post a comment.