No, I didn't change anything on my PC.
improved GCU code in HEAD
Collapse
X
-
-
I'm going to investigate this... I bet it has to do with calling (or failing to call) the keypad() function, or something else strange. Unfortunately I don't have a Windows machine to test with. I'll see if I can reproduce this with PuTTY on Linux; if not I may be sending some patches your way.I'm attaching a pretty useful C program to inspect what curses believes about your terminal. You can compile it with "gcc -lncurses -o tty-colors tty-colors.c"
EDIT: Ok, I just tried this. I found a setup via PuTTY into my Debian-Sid box which gave me #s and no solid blocks available via "Interact with visuals" (which is on the main game options menu in 3.0.9b and is via the feature knowledge menu in 3.1.1). The program simply says:
Code:I am sorry, your terminal does not have the dim string in the capabilities I am sorry, your terminal does not have the init color string in the capabilities I am sorry, your terminal does not have the color names string in the capabilities I am sorry, your terminal does not have ACS characters in the capabilities Terminal: xterm You've got 8 colours You've got 64 pairs of colors possible To set foreground: ^[[3%p1%dm To set background: ^[[4%p1%dm To reset colours : ^[[39;49m To standout : ^[[7m To bold : ^[[1m To reverse : ^[[7m To blinking : ^[[5m To exit standout : ^[[27m To exit attribute: ^[[0m To original pairs: ^[[39;49m
Code:I am sorry, your terminal does not have the color names string in the capabilities I am sorry, your terminal does not have ACS characters in the capabilities Terminal: linux You've got 8 colours You've got 64 pairs of colors possible To set foreground: ^[[3%p1%dm To set background: ^[[4%p1%dm To reset colours : ^[[39;49m To standout : ^[[7m To bold : ^[[1m To dim : ^[[2m To reverse : ^[[7m To blinking : ^[[5m To exit standout : ^[[27m To exit attribute: ^[[0m To init color : ^[]P%p1%x%p2%{256}%*%{1000}%/%02x%p3%{256}%*%{1000}%/%02x%p4%{256}%*%{1000}%/%02x To original pairs: ^[[39;49m
Last edited by Magnate; August 17, 2009, 22:34."Been away so long I hardly knew the place, gee it's good to be back home" - The BeatlesComment
-
Code:joe@prompt$ infocmp dumb # Reconstructed via infocmp from file: /etc/terminfo/d/dumb dumb|80-column dumb tty, am, cols#80, bel=^G, cr=^M, cud1=^J, ind=^J,
The second way is by creating, or finding, a "better" terminfo entry to use. You can find them online or get them from other systems where things work better. This is kind of annoying, but if your distro gives you bad terminfo entries, it's the only way. You can then compile these with "tic FILE" which will create a local terminfo DB at "$HOME/.terminfo"
Whew! Hope that helps someone out.Comment
-
Ok, I'm attaching a patch that should apply against HEAD. It's not a dirty hack per se, but it's probably not ideal. I was able to replicate your number pad issue (#796) in PuTTY on Linux, and this fixes it for me. Let me know what you get.Attached FilesComment
-
Yep - works perfectly for me too - it fixes the problems with PuTTY, without causing any difficulties playing in an xterm or a console. Very many thanks."Been away so long I hardly knew the place, gee it's good to be back home" - The BeatlesComment
-
When I use PuTTY, the walls and floors use the correct ACS characters (solid block and centred dot respectively).
When I use a terminal in GNOME, again both walls and floors are correct.
When I use a linux console, either natively or via direct ssh (not PuTTY) the walls are correct but the floors are big ugly white squares (a very very big dot). I tried using the terminfo entry you sent me (by using TERM=xterm before invoking angband), and it got worse: the walls became the letter a, and the floors became tildes. Weird that it works for you and not for me.
Any idea what could be causing this?"Been away so long I hardly knew the place, gee it's good to be back home" - The BeatlesComment
-
When I use a linux console, either natively or via direct ssh (not PuTTY) the walls are correct but the floors are big ugly white squares (a very very big dot). I tried using the terminfo entry you sent me (by using TERM=xterm before invoking angband), and it got worse: the walls became the letter a, and the floors became tildes. Weird that it works for you and not for me.
Any idea what could be causing this?
The floors are currently using ACS_BULLET rather than period when in ACS graphics mode. I'm not sure if there are platforms where this is a significant improvement. It sounds like on the linux console, the ACS_BULLET character isn't a very good one to use.
Unfortunately, I think the fix for this is either changing the "floor" character angband uses back to period (either on a global basis, or in your pref) or using -a to turn off ACS graphics.
I'm going to open a ticket about this. I think the correct resolution is just to always use period, unless there is a terminal for which period is a bad choice, in which case maybe "interact with graphics" or -a are the options.Comment
-
Me too.
I'm going to open a ticket about this. I think the correct resolution is just to always use period, unless there is a terminal for which period is a bad choice, in which case maybe "interact with graphics" or -a are the options.One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.Comment
-
I'm inclined to think that playing on the linux console is probably not very common now, and maybe you could count on those that do to also be able to handle changing their floor character with a pref file. At least, I was inclined to think that, until I went and checked on a gnome terminal and found bullet and period indistinguishable. So I think this post is a complete waste of everyone's time. Situation normal.
I agree that for the Linux console, it is acceptable to expect people to amend their pref files if they wish to use ACS graphics. For me it's well worth doing so in order to have solid walls - others may wish to use -a and play with #s for walls.
I don't think a global replace of ACS_BULLET with a period is a good idea. It does look subtly different."Been away so long I hardly knew the place, gee it's good to be back home" - The BeatlesComment
Comment