inb(); not reading charaters as expected


 
Thread Tools Search this Thread
Top Forums Programming inb(); not reading charaters as expected
# 8  
Old 07-22-2007
Have you deactivated other drivers/processes that are reading the keyboard?
# 9  
Old 07-22-2007
Quote:
Originally Posted by porter
Have you deactivated other drivers/processes that are reading the keyboard?
I haven't, and how would i?
# 10  
Old 07-22-2007
Quote:
Originally Posted by Octal
I haven't, and how would i?
I would expect if you want to provide this kind of functionality it should be provided in either the

(a) keyboard driver,
(b) terminal protocol handlers
(c) the X windows keyboard handler

Do you understand how a keypress/scan codes come from a physical keyboard and finally end up converted into ascii characters in an input stream to a logical console?
# 11  
Old 08-24-2007
Quote:
Originally Posted by porter
I would expect if you want to provide this kind of functionality it should be provided in either the

(a) keyboard driver,
(b) terminal protocol handlers
(c) the X windows keyboard handler

Do you understand how a keypress/scan codes come from a physical keyboard and finally end up converted into ascii characters in an input stream to a logical console?
I'm looking at some of the code (on my system: /usr/src/linux-2.6.21.5/drivers/char/keyboard.c), and I just seem lost in the code. Do you have any documents on this subject that I should read?
# 12  
Old 08-24-2007
Quote:
Originally Posted by Octal
I'm looking at some of the code (on my system: /usr/src/linux-2.6.21.5/drivers/char/keyboard.c), and I just seem lost in the code. Do you have any documents on this subject that I should read?
You are in the middle of the kernel.

I suggest you read up on how drivers work and how they interact with the rest of the kernel.

Are you sure you really want to be doing this?
# 13  
Old 08-24-2007
Quote:
Originally Posted by porter
You are in the middle of the kernel.

I suggest you read up on how drivers work and how they interact with the rest of the kernel.

Are you sure you really want to be doing this?
The real question is "why not try?" The worst thing that can happen is I don't succeed.
# 14  
Old 08-24-2007
Quote:
Originally Posted by Octal
The real question is "why not try?" The worst thing that can happen is I don't succeed.
Ah yes, but life is also short. I you want to, go for it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Filter ONLY lines with non-printing charaters

I have a file contains data with non-printing characters. i have used cat -v filename to display whole data with non-printing characters also. However, i need lines with non-printing characters into seperate file. My file is huge and looks like i have to manully find lines using cat -v filename |... (3 Replies)
Discussion started by: JSKOBS
3 Replies

2. UNIX for Dummies Questions & Answers

Find and replace mulitple charaters in filenames

I have a virtual pdf printer set up on my server which produces files with the following prefix: smbprn_00000044_Microsoft_Word_-_OriginalFilename.pdfthe number in the center of the file increase by one for each new file. I want to remove all the charaters infront of OriginalFilename.pdf using... (14 Replies)
Discussion started by: barrydocks
14 Replies

3. UNIX for Advanced & Expert Users

replace word with special charaters

I have input file called file1 with characters that have \\ in it. I cannot change input file, because it is generated earlier in script. Now would like to replace string on line in file called bfile with output from file1 I have been using sed command. $cat file1 pc//6sPxp== $ cat scr1... (4 Replies)
Discussion started by: drtabc
4 Replies

4. Shell Programming and Scripting

printing positional charaters in a loop

#!/bin/bash usep=`df -hT | awk '{ print $5 }'` for (1=1,1<8,i++) output=`echo $usep | awk '{ print $i }'| cut -d'%' -f1` echo $output if then echo "critical value" i need to echo critical value if disk usage pecentage xceeds 10 and i am face problem in position marked red here i... (9 Replies)
Discussion started by: josgeorge
9 Replies

5. Shell Programming and Scripting

Problem with awk while handling special charaters

Hi, I have an application.xml file like </dependency> <artifactId>_AdminServicesEAR</artifactId> <version>1.0.0-20080521.085352-1</version> <context-root>oldvalue</context-root> <type>ear</type> <DOCTYPE "abc/xyz/eft"> <NewTag>value123</xyz> ... (4 Replies)
Discussion started by: subin_bala
4 Replies

6. Shell Programming and Scripting

awk reading 2 input files but not getting expected value

I'm reading 2 input files but not getting expected value. I should get an alpha value on file_1_data but not getting any. Please help. >cat test6.sh awk ' FILENAME==ARGV { file_1_data=$0; print "----- 1 Line " NR " -----" $1; next } FILENAME==ARGV { file_2_data=$0; print "----- 2... (1 Reply)
Discussion started by: pdtak
1 Replies

7. Programming

reading reading data from webpage

hi iam reading data from web page using request socket and curl socket. now my problem is some the web page containg data as a image so how can i read the data from a image. thank,inadvance. sree (3 Replies)
Discussion started by: phani_sree
3 Replies

8. UNIX for Dummies Questions & Answers

Finding funny charaters in a string

Hi, I have got a little problem where some of the files I created had some funny characters e.g space ,"^M" etc inserted in the full file name and which caused our backup script to skip those files. Is it possible to find out if there are any funny charaters in a string ? Thanks, (4 Replies)
Discussion started by: ahjaeasedqa
4 Replies

9. UNIX for Dummies Questions & Answers

how to check a file to contain only ascii charaters

HI I need to validate a file in UNIX to contain only ascii characters.This is a production issue.Can anyone help with the command? Thanks Subbarao (1 Reply)
Discussion started by: srichakra9
1 Replies

10. Shell Programming and Scripting

Non-ASCII charaters in a unix file

Hi, Could you pls help me with the command to know the non-ascii characters in a unix file. Thanks (1 Reply)
Discussion started by: gaurav_gaba
1 Replies
Login or Register to Ask a Question