Sponsored Content
Full Discussion: getch & getche not in ubuntu
Top Forums Programming getch & getche not in ubuntu Post 302429407 by Corona688 on Monday 14th of June 2010 11:05:40 AM
Old 06-14-2010
Quote:
Originally Posted by Praveen_218
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?
I'm pretty sure it's in conio.h.
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Would like to install x86 desktop Ubuntu over AMD64 Ubuntu server

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)
Discussion started by: docflyboy
0 Replies

2. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

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)
Discussion started by: lowmaster
0 Replies

3. Ubuntu

Ubuntu / Ubuntu File Manager / Config

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)
Discussion started by: drewk
6 Replies

4. Shell Programming and Scripting

replace & with & xml file

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&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

5. Ubuntu

[UBUNTU] mount.nfs fails in Ubuntu / Works on Red Hat!!!

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)
Discussion started by: alan
2 Replies

6. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

7. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

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)
Discussion started by: weesiong
3 Replies
curs_getstr(3)						     Library Functions Manual						    curs_getstr(3)

NAME
curs_getstr, getstr, getnstr, wgetstr, wgetnstr, mvgetstr, mvgetnstr, mvwgetstr, mvwgetnstr - Get character strings from a Curses terminal keyboard SYNOPSIS
#include <curses.h> int getstr( char *str ); int getnstr( char *str, int n ); int wgetstr( WINDOW *win, char *str ); int wgetnstr( WINDOW *win, char *str, int n ); int mvgetstr( int y, int x, char *str ); int mvgetnstr( int y, int x, char *str, int n ); int mvwgetstr( WINDOW *win, int y, int x, char *str ); int mvwgetnstr( WINDOW *win, int y, int x, char *str, int n ); LIBRARY
Curses Library (libcurses) STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: getnstr, wgetnstr, mvgetnstr, mvwgetnstr, getstr, wgetstr, mvgetstr, mvwgetstr: XCURSES4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
The effect of getstr is as though a series of calls to getch were made, until a newline or carriage return is received. The resulting value is placed in the area pointed to by the character pointer str. The getnstr routine reads at most n characters, thus preventing a possible overflow of the input buffer. The user's erase and kill characters are interpreted, as well as any special keys (such as function keys, "home" key, "clear" key, and so on). The mvgetstr routine is identical to getstr except that it is as though it is a call to move and then a series of calls to getch. The mvwgetstr routine is identical to getstr except it is as though a call to wmove is made and then a series of call to wgetch. The mvgetnstr routine is identical to getnstr except that it is as though it is a call to move and then a series of calls to getch. The mvwgetnstr is identical to getnstr except it is a though a call to wmove is made and then a series of calls to wgetch. The getnstr, wgetnstr, mvgetnstr, and mvwgetnstr routines return only the entire multibyte sequence associated with a character. If the array is large enough to contain at least one character, the routines fill the array with complete characters. If the array is not large enough to contain at least one complete character, the routines fail. NOTES
The header file <curses.h> automatically includes the header file <stdio.h>. Note that all routines except wgetstr and wgetnstr may be macros. RETURN VALUES
All routines return the integer ERR upon failure and OK upon successful completion. SEE ALSO
Functions: curses(3), curs_getch(3) Others: standards(5) curs_getstr(3)
All times are GMT -4. The time now is 06:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy