mirror of
https://github.com/KDE/konsole.git
synced 2025-12-23 23:38:08 -05:00
font hints added
svn path=/trunk/kdebase/konsole/; revision=12308
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
09 Nov 1998
|
||||
- minor bugs fixed.
|
||||
- putenv/setenv - prefered Solaris compatibility over
|
||||
a workaround for some broken gcc/clib version
|
||||
04 Nov 1998
|
||||
- minor bug fixes integrated
|
||||
- xterm color schema added
|
||||
|
||||
@@ -22,7 +22,15 @@ Next<A HREF="konsole-4.html">Previous</A>
|
||||
<P>Before sending bug reports, please check the problem with another
|
||||
X terminal to find out whether it is `konsole' specific or not.
|
||||
<P>
|
||||
<H3><A NAME="ss5.1">5.1 Application related problems</A>
|
||||
<H3><A NAME="ss5.1">5.1 Installation related problems</A>
|
||||
</H3>
|
||||
|
||||
<P>Konsole requieres some specific fonts that come along with it's
|
||||
distribution but are not installed due to the authors preference
|
||||
not claim root privileges during the installation process. You'll
|
||||
have to do this manually. See README.linux.console for details.
|
||||
<P>
|
||||
<H3><A NAME="ss5.2">5.2 Application related problems</A>
|
||||
</H3>
|
||||
|
||||
<P>Some programs have flaws when run under a X console.
|
||||
@@ -80,7 +88,7 @@ not cope well with resize events (segfault).</LI>
|
||||
</UL>
|
||||
<P>
|
||||
<P>
|
||||
<H3><A NAME="ss5.2">5.2 Broken termcap and terminfo databases</A>
|
||||
<H3><A NAME="ss5.3">5.3 Broken termcap and terminfo databases</A>
|
||||
</H3>
|
||||
|
||||
<P>Please be aware of the fact that most applications (those using ncurses)
|
||||
@@ -102,7 +110,7 @@ sequences under some circumstances (<CODE>ESC Pn C</CODE> is treated like
|
||||
</UL>
|
||||
<P>
|
||||
<P>
|
||||
<H3><A NAME="ss5.3">5.3 Problems with BACKSPACE, DELETE and likely keyboard issues.</A>
|
||||
<H3><A NAME="ss5.4">5.4 Problems with BACKSPACE, DELETE and likely keyboard issues.</A>
|
||||
</H3>
|
||||
|
||||
<P>Once upon a time there was a terminal without a delete key.
|
||||
@@ -128,14 +136,14 @@ are prefixes (i.e. are eventually to be continued with a second
|
||||
character). X11 is known to have these dead keys.
|
||||
<P>
|
||||
<P>
|
||||
<H3><A NAME="ss5.4">5.4 Color Scheme</A>
|
||||
<H3><A NAME="ss5.5">5.5 Color Scheme</A>
|
||||
</H3>
|
||||
|
||||
<P>Because of a storm of complaints about the color scheme,
|
||||
konsole offers configurable color schemes in it's latest
|
||||
versions. A proper document on them is still missing.
|
||||
<P>
|
||||
<H3><A NAME="ss5.5">5.5 Fonts</A>
|
||||
<H3><A NAME="ss5.6">5.6 Fonts</A>
|
||||
</H3>
|
||||
|
||||
<P>(Slightly outdated, check README.linux.console)
|
||||
@@ -159,7 +167,7 @@ family, please drop me a line.</LI>
|
||||
</UL>
|
||||
<P>
|
||||
<P>
|
||||
<H3><A NAME="ss5.6">5.6 Security</A>
|
||||
<H3><A NAME="ss5.7">5.7 Security</A>
|
||||
</H3>
|
||||
|
||||
<P>Although konsole is prepared to be installed root-suid, it is not
|
||||
@@ -168,7 +176,7 @@ immediately after being started. Secure keyboard is not implemented
|
||||
and konsole does not fchown(2) the pseudo tty.
|
||||
<P>
|
||||
<P>
|
||||
<H3><A NAME="ss5.7">5.7 Known bugs (konsole-0.8.6)</A>
|
||||
<H3><A NAME="ss5.8">5.8 Known bugs (konsole-0.8.6)</A>
|
||||
</H3>
|
||||
|
||||
<P>
|
||||
@@ -182,7 +190,7 @@ install to get the key-presses.
|
||||
</UL>
|
||||
<P>
|
||||
<P>
|
||||
<H3><A NAME="ss5.8">5.8 Features that will not be implemented.</A>
|
||||
<H3><A NAME="ss5.9">5.9 Features that will not be implemented.</A>
|
||||
</H3>
|
||||
|
||||
<P>
|
||||
|
||||
@@ -42,14 +42,15 @@ Please be aware of the fact that this document is under construction.</EM>
|
||||
<H2><A NAME="toc5">5.</A> <A HREF="konsole-5.html">Bugs and FAQ</A></H2>
|
||||
|
||||
<UL>
|
||||
<LI><A HREF="konsole-5.html#ss5.1">5.1 Application related problems</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.2">5.2 Broken termcap and terminfo databases</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.3">5.3 Problems with BACKSPACE, DELETE and likely keyboard issues.</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.4">5.4 Color Scheme</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.5">5.5 Fonts</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.6">5.6 Security</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.7">5.7 Known bugs (konsole-0.8.6)</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.8">5.8 Features that will not be implemented.</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.1">5.1 Installation related problems</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.2">5.2 Application related problems</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.3">5.3 Broken termcap and terminfo databases</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.4">5.4 Problems with BACKSPACE, DELETE and likely keyboard issues.</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.5">5.5 Color Scheme</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.6">5.6 Fonts</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.7">5.7 Security</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.8">5.8 Known bugs (konsole-0.8.6)</A>
|
||||
<LI><A HREF="konsole-5.html#ss5.9">5.9 Features that will not be implemented.</A>
|
||||
</UL>
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
|
||||
@@ -214,6 +214,13 @@ If you experience problems with that, please refer to
|
||||
Before sending bug reports, please check the problem with another
|
||||
X terminal to find out whether it is `konsole' specific or not.
|
||||
|
||||
<sect1>Installation related problems
|
||||
<p>
|
||||
Konsole requieres some specific fonts that come along with it's
|
||||
distribution but are not installed due to the authors preference
|
||||
not claim root privileges during the installation process. You'll
|
||||
have to do this manually. See README.linux.console for details.
|
||||
|
||||
<sect1>Application related problems
|
||||
<p>
|
||||
Some programs have flaws when run under a X console.
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
|
||||
#include "TEShell.h"
|
||||
#include "TEShell.moc"
|
||||
#include <qstring.h>
|
||||
|
||||
#define HERE fprintf(stdout,"%s(%d): here\n",__FILE__,__LINE__)
|
||||
|
||||
@@ -132,7 +133,10 @@ void Shell::makeShell(const char* dev, char* argv[],
|
||||
setuid(getuid()); setgid(getgid()); // drop privileges
|
||||
|
||||
if (term && term[0])
|
||||
setenv("TERM",term,1); // export TERM=term
|
||||
{
|
||||
putenv((QString("TERM=") + term).data()); // export TERM=term
|
||||
// setenv("TERM",term,1); // this is not available with Solaris
|
||||
}
|
||||
|
||||
f = argv[0];
|
||||
if ( login_shell ) // see sh(1)
|
||||
|
||||
@@ -192,10 +192,14 @@ Tripel Tripel::linear(const Tripel &p0, const Tripel &p1, float f)
|
||||
|
||||
Tripel Tripel::togray(float f)
|
||||
{
|
||||
// I've guessed these factors. They've to total to 1.0
|
||||
Tripel rp = Tripel::linear(Tripel(0.25*r),Tripel(r,0,0),f);
|
||||
Tripel bp = Tripel::linear(Tripel(0.35*b),Tripel(0,b,0),f);
|
||||
Tripel gp = Tripel::linear(Tripel(0.45*g),Tripel(0,0,g),f);
|
||||
// I've used the physiological luminescense factors here.
|
||||
// They appear not right with the phosphor of my monitor.
|
||||
// May be i should have set them all to 1/3, but i want
|
||||
// to get different sorts of gray for the colors also.
|
||||
// If your' tuning, note that they have to total to 1.
|
||||
Tripel rp = Tripel::linear(Tripel(0.37*r),Tripel(r,0,0),f);
|
||||
Tripel bp = Tripel::linear(Tripel(0.39*b),Tripel(0,b,0),f);
|
||||
Tripel gp = Tripel::linear(Tripel(0.24*g),Tripel(0,0,g),f);
|
||||
return Tripel::add( rp, Tripel::add( bp, gp ));
|
||||
}
|
||||
|
||||
@@ -228,13 +232,13 @@ setText(pa&&*pa?pa+1:"/* build-in schema */");
|
||||
}
|
||||
|
||||
void ColorTable::paintEvent(QPaintEvent* e)
|
||||
{ int x,y;
|
||||
{
|
||||
// in the moment we don't care and paint the whole bunch
|
||||
// we don't care about all the tricks, also.
|
||||
QPainter paint;
|
||||
paint.begin( this );
|
||||
if (schema)
|
||||
for (y = 0; y < BASE_COLORS-2; y++)
|
||||
for (int y = 0; y < BASE_COLORS-2; y++)
|
||||
{
|
||||
QRect base = frameRect();
|
||||
int top = base.height()*(y+0)/(BASE_COLORS-2);
|
||||
@@ -247,16 +251,6 @@ void ColorTable::paintEvent(QPaintEvent* e)
|
||||
Tripel t3 = Tripel::add( t0.scale(scale), t2 );
|
||||
Tripel t4 = t3.togray(color);
|
||||
paint.fillRect(rect, t4.color() );
|
||||
/*
|
||||
for (x = 0; x < TABLE_COLORS; x++)
|
||||
{
|
||||
int bgn = base.width()*(x+0)/TABLE_COLORS;
|
||||
int end = base.width()*(x+1)/TABLE_COLORS;
|
||||
QRect rect(QPoint((3*bgn+end)/4,(3*top+bot)/4),
|
||||
QPoint((3*end+bgn)/4,(3*bot+top)/4));
|
||||
paint.fillRect(rect, schema->table[x].color );
|
||||
}
|
||||
*/
|
||||
}
|
||||
//drawFrame(&paint);
|
||||
paint.end();
|
||||
|
||||
@@ -394,7 +394,8 @@ void TEDemo::setFont(int fontno)
|
||||
if ( !f.exactMatch() )
|
||||
KMsgBox::message
|
||||
( this,
|
||||
"Error", QString("Font '") + fonts[fontno] + "' not found.",
|
||||
"Error", QString("Font '") + fonts[fontno] + "' not found.\n"
|
||||
"Check README.linux.console for help.",
|
||||
KMsgBox::EXCLAMATION );
|
||||
else
|
||||
{
|
||||
@@ -413,8 +414,8 @@ void TEDemo::opt_menu_activated(int item)
|
||||
m_options->setItemChecked(1,b_menuvis);
|
||||
if (b_menuvis) menubar->show(); else menubar->hide();
|
||||
updateRects();
|
||||
if (!b_menuvis)
|
||||
{
|
||||
if (!b_menuvis)
|
||||
{
|
||||
setCaption("Use the right mouse button to bring back the menu");
|
||||
QTimer::singleShot(5000,this,SLOT(setHeader()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user