You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, September 8th 2007, 8:28am

character Driver - characters get grouped together while displaying

Hi ,

When trying to print characters in console though a customised character driver , the characters are getting grouped together in KDE environment :

E.X . echo "taxtaxtaxtax" > /dev/char_device
O/P : ttaaxxtaxtax

The output of the above echo command is fine in GNOME i.e. the output comes as it would come in a normal echo statement.

A code excerpt of writing to char driver is given below :

int ch_D = 20 ; // Key Down code for 't'
int ch_U = 148 ; // Key Up code for 't'

The below statement is called once each for the above statements :

if (tty )
tty_insert_flip_char(tty, (unsigned char) ch, 0);


Any help in finding the cause of the issue would be greatly appreciated .

Thanking in Advance !