Sponsored Content
Top Forums Programming equivalent function for wherey( ) ?? Post 302097628 by Corona688 on Monday 27th of November 2006 04:14:00 PM
Old 11-27-2006
current column position of what? the terminal? Check out the cuses library.
 

10 More Discussions You Might Find Interesting

1. Linux

Equivalent function of [ kbhit() ] In TURBO C

ANy one knows equivalent function of which in Turbo C. I want to Execute Certain loop until any key is pressed. i.e while(!kbhit) { ---------- ---------- } This code work fine in DOS but NOt in LINUX i try to use but not getting the expected result ... (0 Replies)
Discussion started by: niravuchat
0 Replies

2. Shell Programming and Scripting

Passing global variable to a function which is called by another function

Hi , I have three funcions f1, f2 and f3 . f1 calls f2 and f2 calls f3 . I have a global variable "period" which i want to pass to f3 . Can i pass the variable directly in the definition of f3 ? Pls help . sars (4 Replies)
Discussion started by: sars
4 Replies

3. Shell Programming and Scripting

Bash equivalent of perl's pack function ?

Is there an equivalent of perl's pack function in bash ? Or in other words, how can I achieve the same thing in bash ? Much appreciated. (1 Reply)
Discussion started by: NewDeb
1 Replies

4. Shell Programming and Scripting

shell script equivalent for tcl function

Hello, I need experts help in converting the below tcl function to korn shell function equivalent. proc lsNetMaskToBits {mask} { set dw ; # Top N bits set set dw 0x ; # Make sure it's hexadecimal, else XOR fails. puts "lsNetMaskToBits dw $dw" set dw ; # Complement => low 32-N bits... (1 Reply)
Discussion started by: JackMelson
1 Replies

5. Programming

Equivalent function for matlab on scilab

Hello everyone, i need help with this , i need the equivalent matlab funtion tf(x,y) in scilab and what do u recommend best from those three for a linux user (i need it for Control theory): 1-matlab 2-Scilab 3-Octave thank you for your time (0 Replies)
Discussion started by: abu_malek
0 Replies

6. Shell Programming and Scripting

Java - Arrays.binarySearch function equivalent in awk

Hi all Does anyone know Java-Arrays.binarySearch function equivalent in awk I tried like this but it's not correct one,it just returns array index if and only when searched value available in array, for some reason if searched value not found then I want to return upper nearest neighbour index.... (1 Reply)
Discussion started by: Akshay Hegde
1 Replies

7. UNIX for Dummies Questions & Answers

Shell equivalent of matlab fwrite function

I have some matlab code that sends the serial port elements of an array using matlab's fwrite function, e.g.: fwrite(s, , 'uchar'); What would be a unix shell equivalent? E.g., after successfully accessing the port using instructions here: Simple terminal serial port program for Linux/MacOSX... (3 Replies)
Discussion started by: darwin_886
3 Replies

8. Shell Programming and Scripting

Will files, creaetd in one function of the same script will be recognized in another function?

Dear All. I have a script, which process files one by one. In the script I have two functions. one sftp files to different server the other from existing file create file with different name. My question is: Will sftp function recognize files names , which are created in another... (1 Reply)
Discussion started by: digioleg54
1 Replies

9. Shell Programming and Scripting

Need help on awk for printing the function name inside each function

Hi, I am having script which contains many functions. Need to print each function name at the starting of the function. Like below, functionname() { echo "functionname" commands.... } I've tried like below, func=`grep "()" scriptname | cut -d "(" -f1` for i in $func do nawk -v... (4 Replies)
Discussion started by: Sumanthsv
4 Replies

10. Shell Programming and Scripting

Function - Make your function return an exit status

Hi All, Good Day, seeking for your assistance on how to not perform my 2nd, 3rd,4th etc.. function if my 1st function is in else condition. #Body function1() { if then echo "exist" else echo "not exist" } #if not exist in function1 my all other function will not proceed.... (4 Replies)
Discussion started by: meister29
4 Replies
CURSES(3)						   BSD Library Functions Manual 						 CURSES(3)

NAME
curses_cursor, getcury, getcurx, getyx, getbegy, getbegx, getbegyx, getmaxy, getmaxx, getmaxyx, getpary, getparx, getparyx, move, wmove, mvcur, wcursyncup -- curses cursor and window location and positioning routines LIBRARY
Curses Library (libcurses, -lcurses) SYNOPSIS
#include <curses.h> int getcury(WINDOW *win); int getcurx(WINDOW *win); void getyx(WINDOW *win, int y, int x); int getbegy(WINDOW *win); int getbegx(WINDOW *win); void getbegyx(WINDOW *win, int y, int x); int getmaxy(WINDOW *win); int getmaxx(WINDOW *win); void getmaxyx(WINDOW *win, int y, int x); int getpary(WINDOW *win); int getparx(WINDOW *win); void getparyx(WINDOW *win, int y, int x); int move(int y, int x); int wmove(WINDOW *win, int y, int x); int mvcur(int oldy, int oldx, int y, int x); void wcursyncup(WINDOW *win); DESCRIPTION
These functions and macros locate and position cursors and windows. The getcury() and getcurx() functions get the current row and column positions, respectively, of the cursor in the window win. The getyx() macro sets the values of y and x to the current row and column positions of the cursor in the window win. The origin row and columns of a window win can be determined by calling the getbegy() and getbegx() functions, respectively, and the maximum row and column for the window can be found by calling the functions getmaxy() and getmaxx(), respectively. The getbegyx() and getmaxyx() macros set the values of y and x to the origin and maximum row and column positions, respectively, for the window win. The getpary() and getparx() functions return the row and column position of the given subwindow relative to the window's parent. The macro getparyx() sets the values of y and x to the origin of the subwindow relative to the window's parent. The move() function positions the cursor on the current window at the position given by y, x. The cursor position is not changed on the screen until the next refresh(). The wmove() function is the same as the move() function, excepting that the cursor is moved in the window specified by win. The function mvcur() moves the cursor to y, x on the screen. The arguments oldy, oldx define the previous cursor position for terminals that do not support absolute cursor motions. The curses library may optimise the cursor motion based on these values. If the mvcur() succeeds then the curses internal structures are updated with the new position of the cursor. If the destination arguments for mvcur() exceed the terminal bounds an error will be returned and the cursor position will be unchanged. The wcursyncup() function sets the cursor positions of all ancestors of win to that of win. RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following values: OK The function completed successfully. ERR An error occurred in the function. SEE ALSO
curses_refresh(3) STANDARDS
The NetBSD Curses library complies with the X/Open Curses specification, part of the Single Unix Specification. The getbegx(), getbegy(), getcurx(), getcury(), getmaxx(), getmaxy(), getparx(), and getpary() functions are extensions. HISTORY
The Curses package appeared in 4.0BSD. BSD
February 23, 2010 BSD
All times are GMT -4. The time now is 02:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy