lkml.org 
[lkml]   [1996]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: noblink
From
Vincenzo Capuano <vcapuano@esoc.esa.de> wrote in linux-kernel:

[Cc'ed to the linux-console and linux-ggi lists.]

> With the introduction of the new kernels 2.1.x the noblink patch
> doesn't work anymore.

Really? This is a VERY interesting comment!

> Does anybody have new patches against 2.1.x ?

Yes, I do. (Attached below).

I *REALLY* like noblink, and would be keen to see it become part of
the mainstream kernel. But it's not nearly mature enough yet for that
to happen.

[For those that have never tried it, it turns the cursor into a
coloured block - which is *SO* much more pleasant to work with - a
case of love at first sight! :-) It can also be easily switched on
and off by sending vt-like codes to the console. It also works in an
xterm.]

The current noblink package can be found on sunsite:

ftp://sunsite.unc.edu/pub/Linux/kernel/patches/console/noblink-1.7.tar.gz

But this version is getting aged and needs updating (see below).

There's a long story about this patch - it's actually two patches in
one.

The first patch is to switch between 8 background colours with
blinking, or 16 background colors without blinking.

The second patch is the noblink (software cursor) patch itself (which
uses the extended background colour patch for its own purposes).

Sander van Malssen <svm@kozmix.ow.nl> has been the "official"
maintainer for noblink for quite a while, but he's now handed it over
to me to look after.

I've been retaking the patch for the various 2.0.x kernels, and have a
working one for 2.0.23 that I want to tidy up and put onto sunsite and
tsx-11 sometime soon once I have some time to do it. (I've also
rewritten the `cursor' program that comes with it that is used to
easily change the cursor colour/blinking etc).

Note that there's a very minor but annoying bug in the noblink patch
as it currently is for 2.0.x. Try doing this (as root) with noblink
enabled:

% t=`tty|cut -dy -f2` ; cat /dev/vcsa$t >/dev/vcsa$t

You'll see the bug immediately. Do the same thing to make things
right again. I also see this happen with midnight commander (which
uses its own mcslang term library to produce a similar effect).
I have some ideas on what the problem might be (that is, if it isn't
fixed already...)

Sander has only very recently emailed me his noblink patch for 2.1.5,
but this time he's made two patches, dividing it up into the two
functions described above. (I've got no idea if this bug still
persists in these patches, and I would appreciate any feedback on
this. From what Sander has said to me, it just might be).

What I want to do at this point is work on the 2.0.23 patch and divide
it in the same way Sander has, then clean it all up. I've not yet
gone to the 2.1.x kernels, but once I'm happy with what I've done for
2.0.x (with noblink-2.0.tar.gz sitting on sunsite) I'll make the
switch to 2.1.x and keep up maintenance of the patch up to date.
(Besides, I should have a system upgrade by then, which will make
development work a lot less tiresome than working on a 386 - where a
full kernel build can take just over 3 hours :)


Ok, enough of my waffle :) Below here are the patches for 2.1.5. Be
warned - there are are THREE of them - two uuencoded, and the last one
is a late change to fix a little bug that Sander found soon after he
made the two diffs.

FIRST apply ext-bg-colour.diff
THEN apply noblink-2.1.5.diff
THEN apply the last little patch

I've NOT tried these patches. (Nor have I even had time to look at
them!). But I do welcome any feedback (to T.Nugent@sct.gu.edu.au).

Meanwhile, noblink isn't dead - it's alive and active, and will be
coming to a kernel near you real soon! :-)

However, what may complicate things considerably in the very near
future is that Manish Vachharajani <mvachhar@hardees.rutgers.edu> is
working on an almost complete rewrite of the console code "to allow
for better integration of different console devices", so I'll need to
keep in touch with that. And there's also the GGI (general graphics
interface) group (http://synergy.caltech.edu/~ggi/) who are working on
things in this area as well...

Cheers
Tony

========8<-----------cut-here------------>8====================

begin 644 ext-bg-colour.diff.gz
M'XL(".8F;S("`V5X="UB9RUC;VQO=7(N9&EF9@"E56EOXS80_2S]BBD6*&S+
MM@['1QRX39`$NT&/7;1!@*(H!!V43%@F#9+R)NAF?WN'E&S)B9T670.R),Z\
MX>.;0X/!``K*RD<W%71+A'23923<A#/)"S),AE_]K];]LH2/B8+@#+Q@/O+G
MO@?^^?G$=ASG3?1+Y'@^]BODY24,_/&H/P%'WZ9P>6D#>51$,"B9I#DC*12<
MY8#!0O6T(2%E5'4.;'UME`KTIM#K=2_V(2A3((D*<[R2=;1I<)5O7WN<\,\X
M4T?]=R"G!FTY30T*W\,X#Q-><-'1H9)2"$U-[V"#VX,;(A-!-XIR!CP#M22`
M<=//D2`@J2HC8^FY-AQL;&UI2K@Y_H5E89Q[?-(!4BH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6>W(8.D*4*;4D#48R$-]_^;%Q:5Y_>.'"_/[5V?G?!]F%\`%`J@0?P_8N[T`
MU[00V>[O:E]2^K@QG7I,TNDD%_X6W/.`:#4)EK&[L#R^Q(<#%D36E"\"H:7/
M`EB[\1S<6!FA7#RR+5\V+M)6!K'(5,=[3RK:&P?MW1K5KCU(I=KWJ50[[R;.
MI=Q'\&_/@67@*C&V^#=M("(7D31%\;.UC^3<+=LMZ]X7Q=V!3G'8,(Z-UB"Y
M5,X1/[F"=`+R89QJ^KK.S2R,PWG`EFS=,RW&DQ+K<K_1P%<+V08M'[8W5<7Y
M9YHNC?+I>J&-`UN)>"'-:<H@`$6AGGUXIV[;&T?,G*Y^3"4V<V<;GS;>W7ZB
M8V01[^U!)1G(P[=<D2B6,&8%RVXHV-/[^J+<`0>"()QMWSV3DL_NGH'BV'&7
MKCP;W6,M[1CR31-J!N$"?+(5>YM67@IK.GFRO#5=MD5CSN(?&^L_W-B#[8;!
M'G'DNN!_2A[%[OE.@93!\E27Q[XHTCWA1'6EVHOE"D-W-'>G,5,DW_/]#=;+
*_P'A)MP;NC(``/E.
`
end

--- linux/drivers/char/console.c.~1~ Thu Oct 24 12:16:32 1996
+++ linux/drivers/char/console.c Thu Oct 24 16:44:37 1996
@@ -952,7 +952,7 @@
case 228: case 244: case 260: case 276:
case 292: case 308: case 324: case 340:
/* extended cursor colors */
- if (curs_state & 0x10)
+ if (ext_bg_color)
curs_color = par[i] - 100;
break;
default:

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.091 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site