Tiny Core Linux
Tiny Core Base => Micro Core => Topic started by: flahaie on August 16, 2011, 03:59:55 PM
-
Hi everyone,
I use micro core v 3.8 and tn5250 to connect to an as400.
most of the forms on the 400 are in french but under micro core these characters are displayed as squares.
more over, when i try tn5250 on the same 400 but on tiny core with GUI the french characters are displayed properly.
I also have tried the same program under other distribution (ubuntu, debian) and it works properly.
I went through the documentation of tn5250 and it's written that most of the maps (we are using map 37) are converted to latin1.
so I want to know how can I change the language of the console of microcore to latin 1.
please help me.
thanks,
-
Hello,
since I dont see any response here (and I dont 100% understand the issue), perhaps you could use Xorg?
Just an idea..
-
Since the application is only a terminal, I don't really want to put xorg. I don't want to use mice in the (dirty) plant.
the operators are having enough difficulty with a keyboard, I don't want to add a mouse.
unless there's a way using xorg without a mouse?
more over I got little machines that only have 128 mb ram wt 200mhz cpu
and others with 512mb ram and 1ghz cpu
one last thing these are i586 not i686 cpu compatible
the cmov instruction is not supported if an application is compiled with cmov it crashes
thanks
-
I run TC on boxes with only a 486 class processor and 128M of RAM.
Check the wiki choosing the correct language.
-
First up I have to state that I'm putting my toes here into a territory that I might not really understand, as for me the simple (7-bit) ASCII character set is sufficient. So I'm lacking any prior knowledge.
Having said that I wanted to see for myself what the difference in the character set between the console (which flahaie needs to get fixed) and a 'xterm' might be. For that purpose I created a little 'awk' script (also as an exercise in unfamiliar territory):
#!/bin/sh
# show printable characters: 0x20 to 0xFF
echo | awk ' {
H = ""
for (j = 0; j <= 15; j++) {
H=H sprintf(" %02X ", j)
}
printf("\n\t%s\n", H)
S = ""
for (i = 32; i <= 256; i++) {
if (length(S) == 0) {
S=sprintf("0x%02X\t", (i / 16 ) * 16)
}
S=S sprintf(" %c ", i)
if ((i % 16) == 15) {
printf("%s\n", S)
S = ""
}
}
}'
When run in 'xterm' it showed for the range 0xA0 - 0xFF all sorts of characters and comparing it with this wikipedia page (http://en.wikipedia.org/wiki/ISO/IEC_8859-1) I concluded that it represents the 'latin-1' (AKA: IEC 8859-1) character set.
OTOH when run in a console window the entire range 0x80 - 0xFF showed up as solid little rectangles, and I guess this is what constitutes the reported problem. BTW, using the same little script in the console of a Arch Linux systems also shows the 'latin-1' characters, so indeed there might be something amiss in TC.
EDIT: I should have also mentioned that I'm now aware that (at least in theory) it should be possible to change the console font via
'loadfont < /path/to/consolefont.psf'
but so far I had no luck with my limited attempts using some files from the most recent sources I could find (i.e. 'kbd-1.15.3.tar.bz2').
-
I did a quick search on the Web, and there is a utility called setfont for setting the console
font out there.
-
The 'setfont' utility is part of the 'kbd' package. As far as I can tell the BusyBox 'loadfont' applet fulfils the same purpose.
I have of course compiled said package and might be able to continue with my "poking around" today. One of the things I'll try to keep in mind is that there might be file format subtleties in play. As the "other side" of the 'kbd' package, which deals with keyboard maps (e.g. the 'loadkmaps' utility), has a BusyBox applet replacement that appears to use a non-default (binary) file format. Maybe something similar is in play here.
-
YMMV, loadfont < lat0-16.psfu worked for me, got the euro symbol fine. It didn't map to one char properly though, the setfont util would be needed to set a mapping like that.
-
Hi, Like maro said after changing the keyboard to cf (french canadian) the / slash should be a é.
on the console it displays the charachter but there's a lot of bugs related to the keyboard maps...
for example if you open nano and type a series of é it will display as follow:
é é é é é é
instead of :
éééééé
on the console it does not put the "space" between chars but if you type a couple of é directly on the prompt and press and hold backspace until the caret stops you'll notice that it erase some or all characters of the prompt itself.
for exmample:
tc@box~$
after typing é will look like that
tc@box~$ ééééé
nothing special until you erase using backspace
tc@bo
the special character worth 2 normal characters.
they are probably wide chars or something like that.
any program using these characters does not work properly.
curaga:
I cannot find the file lat0-16.psfu can you help me
so I can test the loadfont
thanks
by the way the same bugs appear in microcore 4
thanks
-
it's from the kbd tarball, http://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/3.x/tcz/src/kmaps (http://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/3.x/tcz/src/kmaps)
-
Hi,
just to let you know that I tried setfont and it does not fix the problem.
the major problem is that whenever you write a character that is not from the US english it act like a two character long.
other info that might be useful.
when I type locale
every value is set to C
except the last one.
in my previous post I said that when I open nano and write ééé
it display while i'm typing é é é
when I save and reopen it, it looks like that
ééé
with the same amount of space after the readable character.
this prove that the non us character are treated like 2character wide and the apps and the console does not know how to manage these.
any idea?
I know that tinycore has only a small community compare to other distros but
I really need this to work since tc is perfect for pxe boot.
any leeds will help.
Thanks.
-
See the getlocale extension for setting up the glibc locales. But I doubt they have an impact with the console mapping.
edit: Done, see
http://wiki.tinycorelinux.net/wiki:console_key_mappings (http://wiki.tinycorelinux.net/wiki:console_key_mappings)
-
Thanks curaga...
this fixes all my problems with the french characters and tn5250 and the console.