linedrawing character set [was: Re: dmesg question?]

linedrawing character set [was: Re: dmesg question?]

Post by Sven Maschec » Thu, 07 Jan 1999 04:00:00



x-post: comp.unix.questions,comp.sys.sun.hardware
f'up: poster (I'll post a summary in c.u.q, in case)

Offtopic in comp.sys.sun.hardware:


 >> Sometimes when I run dmesg, I get ASCII characters at the end of dmesg
 >> output on the screen,  something like -|  -_| L _-|.

How to _really repair that `alternate char set' stuff...

The overkill solution (according escape sequences) :

alias vtn='echo "X[mX(BX)0OX[?5lX7X[rX8" | tr '\''XO'\'' '\''\033\017'\'''
 (heavy quoting needed for posting)
[ Tony Nugent: comp.unix.admin, 1995/04/19 ]

The old "cat ^V^O" trick might not suffice,
 see more info on www.uni-ulm.de/~s_smasch/charset.html )

Is that all one can/should know? (apart from `stty sane' et al)
So far i found that hint and the `Linux keyboard and console HOWTO'

Sven
--

 
 
 

linedrawing character set [was: Re: dmesg question?]

Post by Richard L. Hamilt » Thu, 07 Jan 1999 04:00:00


Easier way to do it:
   tput rmacs
(as long as your TERM is set correctly and the corresponding terminfo
entry defines the "rmacs" attribute).



> x-post: comp.unix.questions,comp.sys.sun.hardware
> f'up: poster (I'll post a summary in c.u.q, in case)

> Offtopic in comp.sys.sun.hardware:


> >> Sometimes when I run dmesg, I get ASCII characters at the end of dmesg
> >> output on the screen,  something like -|  -_| L _-|.

> How to _really repair that `alternate char set' stuff...

> The overkill solution (according escape sequences) :

> alias vtn='echo "X[mX(BX)0OX[?5lX7X[rX8" | tr '\''XO'\'' '\''\033\017'\'''
>  (heavy quoting needed for posting)
> [ Tony Nugent: comp.unix.admin, 1995/04/19 ]

> The old "cat ^V^O" trick might not suffice,
>  see more info on www.uni-ulm.de/~s_smasch/charset.html )

> Is that all one can/should know? (apart from `stty sane' et al)
> So far i found that hint and the `Linux keyboard and console HOWTO'

> Sven

--
ftp> get |fortune
377 I/O error: smart remark generator failed

Bogonics: the primary language inside the Beltway



 
 
 

linedrawing character set [was: Re: dmesg question?]

Post by Sven Maschec » Fri, 08 Jan 1999 04:00:00


Quote:>> f'up: poster [in my previous posting]

 f'up: comp.unix.questions, as:

Quote:>> x-post: comp.unix.questions,comp.sys.sun.hardware
>> Followup-To: poster  [...] (I'll post a summary in c.u.q, in case)

 your newsreader (knews 1.0b.0) `ignores' the f'up ? :)


Quote:>> [ if not only wrong character set selected, but
>>   the character sets points at wrong translation tables ]
> Easier way to do it:    tput rmacs

 no and no and yes .
 `rmacs' is just the ^O `trick' -  but `enacs' is (sometimes) right :

Quote:> $ infocmp vt100|grep rmacs
>        rmacs=^O,
> $ infocmp vt100|grep enacs
>        enacs=\E(B\E)0

ok:
 - `/bin/tput  enacs'
 - `ncurses4.2/bin/tput  enacs'
wrong:
 - `termutils-2.0/bin/tput enacs'
         won't repair, as it reads /etc/termcap, which doesn't contain
         such sequences

 ok for vt100, not for xterm:

Quote:> $ infocmp xterm|grep enacs

         enacs=\E)0
 actually the terminfo entry for `xterm' doesn't contain
 any '(' at all!  Here it repairs only the `wrong' character set.

 I am still collecting (www.uni-ulm.de/~s_smasch/charset.html) ...
 Thanks for the tput-hint!

Sven
--
void main() {
    typedef struct foo {int foo;} foo;  foo bar;

Quote:}

 
 
 

1. linedraw characters like in DOS?

I want to begin creating a library of pop-up
window functions to be used in a .c program.

First, are there any public domain ones
around.

Second. If I make my own, how can I use what
DOS calls "linedraw" characters to make
square corners an intersections?

How would you do this with printf()
functions?

Also, how do you do bold, and reverse text
with printf()?

2. newbie sed question

3. Character set assigments (Re: How do I display IBM PC characters?)

4. problem with socket code (well, it uses socket libraries anyway)

5. Questions about ISO character sets

6. source for bison?

7. dmesg: some questions

8. a rudimentary question

9. Solaris 7 dmesg Questions

10. dmesg.boot question/help ???????????

11. Question about dmesg

12. Questions on dmesg output

13. This clone thing...am I stupid, or am I right?