Weird Question


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Weird Question
# 1  
Old 10-19-2004
Weird Question

As in Windows we have Video memory and we can access it through C programs, do we have anything similar to that in Unix and similar operating systems. If we have some sort of Video memory in Unix flavours, then how can we access it through C programs.
# 2  
Old 10-20-2004
Video memory is a PC thing. Unix runs on a LOT of different hardware platforms, and was around before PC's. I/O operations are initiated in kernel mode.

The ncurses library supports some screen operations, which allow you to get data from what is on the display. Check that out.
# 3  
Old 10-20-2004
Yeah, and even with Windows, you usually don't access the video memory directly. AFAIK, most apps will use the GDI lib or DirectX/OpenGL for bitmap graphics. And in fact, most apps won't need bitmaps at all; they will just use GUI widgets.

If you need bitmap graphics under UNIX, take a look at X11 (Ximage functions or the MIT-SHM extension are prolly what you should use), GGI, SDL or something with OpenGL.
# 4  
Old 10-21-2004
Can u please tell me where can i find good help about the Ncurses library. I have tried to find some material about Ncurses but was some unable to find some useful information.
# 5  
Old 10-21-2004
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tcsh precmd weird question

I encountered a weird question while using tcsh. I wrote a test script trying to control 'history' behavior as below, set history=(1000 "%h\t%Y-%W-%D %P %R\n") set savehist=(1000 merge) alias precmd 'history -S;history -M' I was hoping all the user's commands input in multiple terminals... (6 Replies)
Discussion started by: bestard
6 Replies

2. Red Hat

Something weird with the FS size

Hi, I have a problem with a Files system. # df -h Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur /dev/cciss/c0d0p3 5,7G 3,7G 1,8G 68% / /dev/cciss/c0d0p1 97M 9,9M 82M 11% /boot /dev/cciss/c0d0p7 2,9G 2,0G 802M 71% /cache tmpfs 506M 0 ... (2 Replies)
Discussion started by: Castelior
2 Replies

3. UNIX for Dummies Questions & Answers

weird 'ls' output

Hi, Anyone knows why I can't display the contents of my directory and how to fix this? http://i50.tinypic.com/4smfth.jpg Thanks in advance for any advise. Deanne Double post. Continued here. (0 Replies)
Discussion started by: Deanne
0 Replies

4. Shell Programming and Scripting

Help with my weird script!

So I have this script titled "testing.sh" #!/bin/ksh #PROGRAM INITIALIZATION HomeDir=/home/sap/gl/ftp server=testftp01 userid=ftp_uatollmsgbus password="f&p53715" MSGLOG=${HomeDir}/msglog.txt FTPLogTmp=${HomeDir}/testing.tmp FTPLogFile=${HomeDir}/testing.log... (1 Reply)
Discussion started by: kdyzsa
1 Replies

5. UNIX for Dummies Questions & Answers

Weird File

$ls -lrt -rw-r--r-- 1 rathodr users 1757 Jan 6 13:36 cleanup.archive.files.pl -rwxr-xr-x 1 rathodr users 20503 Jan 6 13:52 alarm.control.pl -rw-r--r-- 1 rathodr users 20503 Jan 9 04:52q The last file seems to be a weird file. I am not sure how was it created. Maybe... (5 Replies)
Discussion started by: rahulrathod
5 Replies

6. HP-UX

HP-UX weird FTP ?

Hi, I am trying to connect to a distributors FTP server (which returns the prompt at the bottom of this post). Each week these people post our sales data using the same file names. When you do an ls you can see them all there for months on end. When I use my windows or linux ftp clients I can... (10 Replies)
Discussion started by: IngmarMeins
10 Replies

7. UNIX for Dummies Questions & Answers

Kind of weird question

I recently purchased a book titled Hacking: The Art of Exploitation. When I got it home I read the preface and found out that i shouldnt have bought it. It says the code examples in this book were done on an x86 based computer (I have a mac). Is there anything I can do to make my mac run similar to... (2 Replies)
Discussion started by: Cyberaxe
2 Replies

8. Shell Programming and Scripting

weird permissions

Context: Apache 2.0, Redhat 8.0, Perl 5.80 I am using the follwing line to write a file open UPLOADFILE, ">$writeto" or errorcantwrite(); which works just fine when the directory permissions are 700 However .... I dont want to have a directory that allows users to both upload and... (1 Reply)
Discussion started by: andyj
1 Replies

9. UNIX for Dummies Questions & Answers

Weird Problem???

I have a problem I don't understand... I am trying to declare a variable, and then output the results of that variable, couldn't be simpler #!/bin/ksh VAR='Oranges' if then echo "Found Lemons" elif then echo "Found Oranges" fi The output shouold clearly be "Found Oranges", but... (2 Replies)
Discussion started by: danhodges99
2 Replies

10. UNIX for Dummies Questions & Answers

Weird script

I need a script to do the following and have no idea how to do it...can someone help? I need to start Sql*Plus, load a query, say "unmatched.sql", run the query, then load unmatched.sc and run it, then print the output file that unmatched.sc created... any help greatly appreciated. Duckman (2 Replies)
Discussion started by: Duckman
2 Replies
Login or Register to Ask a Question