systemdlete | is it possible to get line-drawing characters in a linux console? | 09:32 |
---|---|---|
systemdlete | (that is, what do I need to set in the environment, etc) | 09:35 |
hagbard | these are just simple utf chars. https://www.utf8-chartable.de/unicode-utf8-table.pl?start=9472&unicodeinhtml=dec | 09:36 |
systemdlete | but what do I need to make them work in a console? | 09:38 |
rrq | maybe "man console_codes" | 09:38 |
systemdlete | They work fine in desktop "terminals" just not in a console. | 09:38 |
systemdlete | the problem is that there seems to be something missing in the console environs that are somehow making these characters inaccessible | 09:39 |
systemdlete | It could be the case that it is just not possible, but idk. | 09:40 |
rrq | check out "man console_codes" | 09:41 |
systemdlete | I am running an ncurses program. It draws line characters correctly in a desktop terminal, but not in the console. | 09:42 |
systemdlete | Sorry if I was not perfectly clear the first time, rrq! | 09:45 |
systemdlete | (I did look at that man page, thanks) | 09:45 |
rrq | mabye TERM setting? eg TERM=linux in console | 09:46 |
systemdlete | currently TERM=linux. I tried faking it to think it was like an xfce terminal (TERM=xterm-256color) but that doesn't work... | 09:47 |
systemdlete | guess what? TERM=vt102 works! | 09:48 |
gnarface | in the desktop the default is TERM=xterm | 09:49 |
gnarface | xterm-256color is intended to be recognized as as compatible but for some reason it's almost 2023 and still nothing is coded right | 09:50 |
systemdlete | in my xfce desktop terminal, my TERM is set to xterm-256color | 09:50 |
gnarface | oh, i guess some things are finally coded right then | 09:50 |
systemdlete | but gnarface, that actually works! | 09:50 |
systemdlete | (yeah) | 09:50 |
gnarface | vt102 is fine too but it's older and more primitive, it'll be missing some things but i forget what exactly | 09:51 |
systemdlete | Now I note that background color does not work in the console, but maybe I need to do something else, like a ncurses call or something. | 09:51 |
gnarface | dunno, sorry | 09:56 |
gnarface | i thought there was a way to make it work without unicode though | 09:56 |
gnarface | those line drawing characters might be also in one of the extended latin codepages | 09:57 |
gnarface | that's probably not useful | 09:57 |
onefang | Odd, they work fine on my console, and I don't recall doing anything to make that happen. | 09:59 |
onefang | I just tested with mc. | 09:59 |
systemdlete | onefang, is that a real linux console, or a console in a VM of some kind (just wondering)? | 10:01 |
systemdlete | what do you have TERM set to in the console? | 10:01 |
onefang | A real console. | 10:02 |
onefang | Term is set to "linux". | 10:02 |
systemdlete | ?! | 10:02 |
systemdlete | huh | 10:02 |
systemdlete | How are you testing this--is it a ncurses program, or a shell or what? | 10:03 |
onefang | I said tested with mc, aka midnight commander. | 10:03 |
systemdlete | oh, ok | 10:03 |
systemdlete | I wonder if it might be re-setting the TERM envar within the program | 10:04 |
systemdlete | which is what I am thinking of doing for my own ncurses program | 10:04 |
onefang | Nope, I just checked that, since you can run terminal programs within mc. | 10:05 |
systemdlete | That's odd. I tried this on two different physical chimaera boxes. | 10:06 |
systemdlete | they both failed to show lines until I set TERM=vt102 | 10:06 |
onefang | Ah mc uses slang instead of ncurses. But it was the thing that comes to the top of my head when thinking about the line drawing characrters. | 10:06 |
systemdlete | I have locales set to en_US.UTF-8. | 10:06 |
systemdlete | slang. | 10:07 |
systemdlete | hmm. I've heard of that, but never used it. | 10:07 |
onefang | Can't think of anything else off the top of my head to test. | 10:08 |
onefang | htop uses ncurses, but isn't using line drawing characters anyway. | 10:08 |
systemdlete | sounds like, once more, I am behind the times, hacking away at ncurses... | 10:10 |
onefang | Ah this is your own program you are writing now, not something I can test? | 10:11 |
systemdlete | ncurses is approaching 30 years old now. | 10:11 |
systemdlete | yes. | 10:11 |
onefang | I'll leave you to it then. | 10:11 |
onefang | #devuan-dev might be a good place to think out loud an this one. | 10:12 |
systemdlete | On top of ncurses, I am using a library of functions called CDK. | 10:12 |
systemdlete | true | 10:12 |
systemdlete | thanks | 10:12 |
systemdlete | (CDK not the Amazon stuff. This is generic Linux stuff for ncurses) | 10:13 |
landley | rwp: I pushed the new work to the repo. It's chroot+unshare to do very simple container. | 13:22 |
cgb | join #devuan | 15:38 |
cgb | Noob Q - has anyone resolved depencency chain for loading thonny? | 15:39 |
rwp | I wonder what problems cgb was having with installing thonny... It seems to install okay for me on Chimaera. Oh well. | 17:12 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!