linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [BUG] 2.5.69 - no setfont and loadkeys on tty > 1
       [not found] <20030514224212.GA8124@elf.ucw.cz>
@ 2003-05-14 23:16 ` James Simmons
  2003-05-15  0:10   ` Pavel Machek
  0 siblings, 1 reply; 2+ messages in thread
From: James Simmons @ 2003-05-14 23:16 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list, Linux Fbdev development list


> Well, it would be nice to set the default font for newly created fonts

> Perhaps you need to make old ioctls 2.4.X compatible and introduce new
> ioctl that sets only "this" console?

PIO_FONTRESET ioctl which is old and the flag KD_FONT_OP_SET_DEFAULT.
I have to look at the setfont code to see if it sets this flag. I bet 
it doesn't. I don't see a flag to tell setfont to use this font as the 
default font for all terminals :-( The good news is you can tell which tty 
to change the fonts on (-c /dev/ttyX). So setfont has the idea of setting
a single tty but due to a bug in the console layer it set all terminals. 
I guess we need to update setfont for setting all terminals.

> Do this:
> 
> pavel@amd:~$ echo -e '\e[?8c'
> 
> Notice cursor changes to block. Switch to another console. Oops, block
> cursor, too.

Ug!!!! I have cursor_shape in struct display for this reason. Will have to 
trace to find the problem.

> > appears the flashing is the issue. I will see if a hardware cursor
> > also has

   Your right. I realize my logic error. I was literally thinking too black 
and white. In the case of a cursor that is a white thin line at the bottom 
and a grey background. That is whole cursor image!! The mask should be
the font image to be drawn. 
   You can think of it as the cursor being a big grey cookie with white 
frosting decoration on the bottom. Then I come with my font shape cookie 
cutter and cut it out.  

> >     KDGKBDTYPE.   (Wow, I can't believe we still have this. It should die)
> 
> What is that? I can not see it in 2.5.X.

Line 420 in vt_ioctl.c. 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] 2.5.69 - no setfont and loadkeys on tty > 1
  2003-05-14 23:16 ` [BUG] 2.5.69 - no setfont and loadkeys on tty > 1 James Simmons
@ 2003-05-15  0:10   ` Pavel Machek
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2003-05-15  0:10 UTC (permalink / raw)
  To: James Simmons; +Cc: kernel list, Linux Fbdev development list

Hi!

> > > appears the flashing is the issue. I will see if a hardware cursor
> > > also has
> 
>    Your right. I realize my logic error. I was literally thinking too black 
> and white. In the case of a cursor that is a white thin line at the bottom 
> and a grey background. That is whole cursor image!! The mask should be
> the font image to be drawn. 
>    You can think of it as the cursor being a big grey cookie with white 
> frosting decoration on the bottom. Then I come with my font shape cookie 
> cutter and cut it out.  

I'm not sure I follow you.

What I do in that echo is set softcursor. It was software cursor even
on plain vga. Boot into 2.4 to see how it should look like. It works
even in vga text modes. It is different from softcursor later
introduced by fbcon. Documentation/VGA-softcursor.txt describes it.

								Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-15  0:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20030514224212.GA8124@elf.ucw.cz>
2003-05-14 23:16 ` [BUG] 2.5.69 - no setfont and loadkeys on tty > 1 James Simmons
2003-05-15  0:10   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).