I tried including the line # include <curses.h> in my source code. It said it cannot find any fileby this name. Then I executed the below "find" command to know the whereabouts of curses.h file. But there is none directly in this name.. please help me on this
Which you may want to use under Linux is declered as (under stdio.h header)
and defined with the '/usr/lib/libc.a' which is the stdio library.
I guess, you are looking for this one and the same is available as getch(), under windows (probably TC?) and described in 'Let us C' because they have tested their program under windows C compiler only.
Apart getc() is same as getchar(stdin) under the same library, I mentioned above.
I could, however, see the libncurses.so in your systems output.
Last edited by Praveen_218; 06-14-2010 at 12:49 AM..
getch() is an ancient DOS syscall from even older versions of Borland Turbo C. Mostly nothing has it these days.
You probably need to install the headers to use curses. It's a package something like curses-dev. There's trillions of them, one for each library, with extremely hard-to-guess names. ubuntu is not a good programming distribution.
getch() is an ancient DOS syscall from even older versions of Borland Turbo C. Mostly nothing has it these days.
You probably need to install the headers to use curses. It's a package something like curses-dev. There's trillions of them, one for each library, with extremely hard-to-guess names. ubuntu is not a good programming distribution.
No hesitation in admitting that I never knew that getch() is a system call under DOS , probably may be because I worked very little time on DOS machines, in my initial days (at school) however did a very good & satisfying amount of programming in pascal using Borland's pascal compiler under DOS / win97 systems.
Now a natural question, I'd ask is why getch() is declared under TurboC's stdio.h header, if that's going to be substituted by a sys routine and not the standard library function?
Now a natural question, I'd ask is why getch() is declared under TurboC's stdio.h header, if that's going to be substituted by a sys routine and not the standard library function?
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Hi, I have text file abc.txt. In this file, I have the following data.
Input:
Mr Smith & Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith& Mrs Smith
Mr Smith &Mrs Smith
Output:
Mr Smith & Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith&... (4 Replies)
Gurus,
I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account
At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup.
* open a shell session to NFS server... (2 Replies)
Hello All
I have a xml file with many sets of records
like this
<mytag>mydata</mytag>
<tag2>data&</tag2>
also same file can be like this
<mytag>mydata</mytag>
<tag2>data&</tag2>
<tag3>data2&data3</tag3>
Now i can grep & and replace with & for whole file but it will replace all... (4 Replies)
I am using Ubuntu 9.10 with Gnome 2.28.
I use the default Nautilus File Manager to view / manage files.
Is there a way to add icons or customize the icons that are above the location bar and below the menus? There is a bar that has icons for "Back" "Forward" "Parent" above the location bar. I... (6 Replies)
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
My intention was to build a dual boot XP Pro 64 and Ubuntu media server. I had installed the AMD64 version of Ubuntu 8.10 server and thought that I would be able to install Apache server. I need a GUI to work in. I tried to boot and install Mythbuntu 32 bit 8.10, but my machine now won't recognize... (0 Replies)