libera/#devuan/ Friday, 2022-11-04

systemdleteis 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
hagbardthese are just simple utf chars. https://www.utf8-chartable.de/unicode-utf8-table.pl?start=9472&unicodeinhtml=dec09:36
systemdletebut what do I need to make them work in a console?09:38
rrqmaybe "man console_codes"09:38
systemdleteThey work fine in desktop "terminals" just not in a console.09:38
systemdletethe problem is that there seems to be something missing in the console environs that are somehow making these characters inaccessible09:39
systemdleteIt could be the case that it is just not possible, but idk.09:40
rrqcheck out "man console_codes"09:41
systemdleteI am running an ncurses program.  It draws line characters correctly in a desktop terminal, but not in the console.09:42
systemdleteSorry if I was not perfectly clear the first time, rrq!09:45
systemdlete(I did look at that man page, thanks)09:45
rrqmabye TERM setting? eg TERM=linux  in console09:46
systemdletecurrently TERM=linux.  I tried faking it to think it was like an xfce terminal (TERM=xterm-256color) but that doesn't work...09:47
systemdleteguess what?   TERM=vt102 works!09:48
gnarfacein the desktop the default is TERM=xterm09:49
gnarfacexterm-256color is intended to be recognized as as compatible but for some reason it's almost 2023 and still nothing is coded right09:50
systemdletein my xfce desktop terminal, my TERM is set to xterm-256color09:50
gnarfaceoh, i guess some things are finally coded right then09:50
systemdletebut gnarface, that actually works!09:50
systemdlete(yeah)09:50
gnarfacevt102 is fine too but it's older and more primitive, it'll be missing some things but i forget what exactly09:51
systemdleteNow 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
gnarfacedunno, sorry09:56
gnarfacei thought there was a way to make it work without unicode though09:56
gnarfacethose line drawing characters might be also in one of the extended latin codepages09:57
gnarfacethat's probably not useful09:57
onefangOdd, they work fine on my console, and I don't recall doing anything to make that happen.09:59
onefangI just tested with mc.09:59
systemdleteonefang, is that a real linux console, or a console in a VM of some kind (just wondering)?10:01
systemdletewhat do you have TERM set to in the console?10:01
onefangA real console.10:02
onefangTerm is set to "linux".10:02
systemdlete?!10:02
systemdletehuh10:02
systemdleteHow are you testing this--is it a ncurses program, or a shell or what?10:03
onefangI said tested with mc, aka midnight commander.10:03
systemdleteoh, ok10:03
systemdleteI wonder if it might be re-setting the TERM envar within the program10:04
systemdletewhich is what I am thinking of doing for my own ncurses program10:04
onefangNope, I just checked that, since you can run terminal programs within mc.10:05
systemdleteThat's odd.  I tried this on two different physical chimaera boxes.10:06
systemdletethey both failed to show lines until I set TERM=vt10210:06
onefangAh 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
systemdleteI have locales set to en_US.UTF-8.10:06
systemdleteslang.10:07
systemdletehmm.  I've heard of that, but never used it.10:07
onefangCan't think of anything else off the top of my head to test.10:08
onefanghtop uses ncurses, but isn't using line drawing characters anyway.10:08
systemdletesounds like, once more, I am behind the times, hacking away at ncurses...10:10
onefangAh this is your own program you are writing now, not something I can test?10:11
systemdletencurses is approaching 30 years old now.10:11
systemdleteyes.10:11
onefangI'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
systemdleteOn top of ncurses, I am using a library of functions called CDK.10:12
systemdletetrue10:12
systemdletethanks10:12
systemdlete(CDK not the Amazon stuff.  This is generic Linux stuff for ncurses)10:13
landleyrwp: I pushed the new work to the repo. It's chroot+unshare to do very simple container.13:22
cgbjoin #devuan15:38
cgbNoob Q - has anyone resolved depencency chain for loading thonny?15:39
rwpI 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/!