The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
add not equal in script. myguess21 Shell Programming and Scripting 2 02-26-2008 07:20 AM
gotoxy(x,y) in UNIX Orbix UNIX for Dummies Questions & Answers 3 12-24-2007 03:02 AM
Looking for equal to Visual Studio for Unix umen High Level Programming 9 10-16-2007 09:10 AM
Making a variable equal a pattern Bab00shka UNIX for Dummies Questions & Answers 3 03-08-2004 03:46 AM
Command to list Files less than or equal to 2k size bache_gowda UNIX for Advanced & Expert Users 3 12-26-2003 09:02 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-03-2003
Registered User
 

Join Date: Aug 2003
Location: india
Posts: 12
equal command for gotoxy() in uinx

hello

i am new user to this site.
i want to know about equal command for gotoxy() which is used in dos operating system and also equal hedder file for conio.h?
please give me responce to me if anybudy know about that.
__________________
GsrC
Reply With Quote
Forum Sponsor
  #2  
Old 10-03-2003
Registered User
 

Join Date: Sep 2003
Location: New Jersey
Posts: 32
I'm not familiar with the conio.h header file. However, I did a quick search on it. It seems to define a lot of screen-based functions. You may want to look into the curses library on UNIX systems (libcurses.a or libncurses.a). They provide similar functionality. Go to a search engine like "google.com" and do a search on "Curses Library Functions" or something similar to that.
__________________
When I need to sate, I just accelerate ....... into OBLIVION
Reply With Quote
  #3  
Old 11-22-2003
Registered User
 

Join Date: Aug 2003
Location: india
Posts: 12
hai

i got on command which is equalent to gotoxy() is "tput cup" which is used command promt for that it can used in programs also as system("tput cup 10 20");i think there is some disadvantages in that so if any budy know about it's equalent can replay me.
__________________
GsrC
Reply With Quote
  #4  
Old 11-23-2003
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
tput can be used to reset terms, position cursor placement and other terminfo functions. Keep in mind that the forum that you posted to is for "C Programming", tput would be used in shell/CLI (command line interface) programming. If you are wanting to write a program that can run menus etc. on any terminal type, UNIX Curses is what you would use. A 'man curses' would give you more information. There are numerous examples on the web:

http://heather.cs.ucdavis.edu/~matlo...age/Curses.pdf

Such things as move(x,y) let's you move the cursor to the point of the screen you need to. It is important to remember to get the capabilities of your screen with such things as getmaxyx().

While at motorola, we used curses based programs with great success to minimize the technology on the production floor - much easier to replace a dumb terminal hanging off a term server than a pc or UNIX system.

Cheers,

Keith
Reply With Quote
  #5  
Old 11-29-2003
Registered User
 

Join Date: Aug 2003
Location: india
Posts: 12
what is "tput". what is the use of it. but in curses we have "move" but it is not working.
__________________
GsrC
Reply With Quote
  #6  
Old 12-25-2003
Registered User
 

Join Date: Dec 2003
Posts: 6
Lightbulb

Hello, I've seen your question, you can use ncurses library to solve your problem. Maybe "mvprintw" function will help you, but do note that when you compile your project, please add "-lcurses" option to your compiler, that is :
g++ -lcurses my.cpp

By the way, you can also use newt library.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0