From: Antonino D. <ad...@po...> - 2003-03-06 09:56:49
|
On Thu, 2003-03-06 at 17:12, Geert Uytterhoeven wrote: > > What if fbcon implements a text console _on top of_ fbdev? I.e. it uses the > current resolution? > > If you use stty to change the number of cols/rows, or change the font, or use > fbset, your text console may end up being smaller or larger than the real > screen size, in which case margins are cleared, or columns/lines are lost. > (Optionally, we can center the text console if it's smaller than the real > screen size.) > Which is basically what stty does for the standard console (except that lines are not lost, but wrapped, and margins are not cleared). So, we need to reimplement the clipping code. > IMHO this is the most orthogonal approach. Fbcon takes care of the text > console, fbdev takes care of the graphics hardware and the video mode. Both > parts do (try to) not influence each other. > > Optionally, fbset can call stty to change the number of cols/rows, if the user > wants that. > Or even a simple script that basically does "fbset 1024x768-60 && stty cols 128 rows 48". Of course, adding this to fbset itself will make it transparent to the user. Sounds very logical to me :-) Tony |