Sponsored Content
Full Discussion: positioning cursor
Top Forums Programming positioning cursor Post 302119988 by enuenu on Saturday 2nd of June 2007 03:35:02 AM
Old 06-02-2007
Thanks. I will check it out.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cursor positioning thru VI Editor

Is there a way that I can position cursor at say line 23, column 2? Thank you in advance. (8 Replies)
Discussion started by: Latha Nair
8 Replies

2. UNIX for Dummies Questions & Answers

Positioning curser at EOF in vi

Hi there, Is there a way to position the cursor at EOF in vi, I know from the man pages how to position the cursor at the end of a paragraph, but what about the EOF (End Of File). Regards (6 Replies)
Discussion started by: JimJim
6 Replies

3. UNIX for Dummies Questions & Answers

Cursor Positioning

Can anyone tell me how to ouput the current cursor coordinate? I have tried using tput sc and tput rc. However I want to know what the coordinate is. Thanks. (1 Reply)
Discussion started by: bestbuyernc
1 Replies

4. UNIX for Dummies Questions & Answers

Mouse clicking/positioning in Terminal

Is is possible to use the mouse in Terminal on OS X Leopard? I thought I read somewhere in the book that I have that it is, but I can't find it. I'd like to use it to click in one of the editors if I have to. (0 Replies)
Discussion started by: Straitsfan
0 Replies

5. Shell Programming and Scripting

cursor positioning

Hi All, please help me to know how to move the cursor to the desired position? For example, in a shell script, I am displaying echo "\t Enter your Name:" please help me how to move cursor near the first word. for example, if the output is as below ... (3 Replies)
Discussion started by: little_wonder
3 Replies

6. Shell Programming and Scripting

Tab positioning

xx00102 1(SG): xx00102 3(SG): xx00115 lan900: xx00115 lan901: xx00116 1(SG): xx00116 3(SG): the boxes are echoed on the same line with one \t. Is there anyway to get all the boxes to line up? Or possibly is there a way to fix the position of something... (3 Replies)
Discussion started by: trimike
3 Replies

7. UNIX and Linux Applications

Passing the value of a cursor to another cursor

i have 2 cursors. i want to assign the value of first cursor(employee_id) to the where condition of cursor c2(please refer the bold statement). how do i do if i want to assign the value of c1 to where condition of cursor c2? declare cursor c1 IS select employee_id from employee cursor c2... (1 Reply)
Discussion started by: vkca
1 Replies

8. UNIX for Dummies Questions & Answers

positioning words in a line

I have problem with this for last few days and I would really be grateful if you can help me :wall::wall::wall::wall::wall: I have sets of files in one directory, and each of them have few lines each one of these lines has 1 or more occurrence of words Y = I need to find the position of the... (10 Replies)
Discussion started by: A-V
10 Replies

9. Shell Programming and Scripting

Complex positioning

I got these entries in a file alias server.domain.com='ssh 192.168.1.1@user1 ' alias server1.domain.com='ssh user2 @192.168.1.1' alias server1.domain.com='ssh user3@192.168.1.1' In the above lines, last line is the correct format. The first is IP@username, has got a space after the... (9 Replies)
Discussion started by: anil510
9 Replies
READPASSPHRASE(3)					   BSD Library Functions Manual 					 READPASSPHRASE(3)

NAME
readpassphrase -- get a passphrase from the user SYNOPSIS
#include <readpassphrase.h> char * readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags); DESCRIPTION
The readpassphrase() function displays a prompt to, and reads in a passphrase from, /dev/tty. If this file is inaccessible and the RPP_REQUIRE_TTY flag is not set, readpassphrase() displays the prompt on the standard error output and reads from the standard input. In this case it is generally not possible to turn off echo. Up to bufsiz - 1 characters (one is for the NUL) are read into the provided buffer buf. Any additional characters and the terminating new- line (or return) character are discarded. The readpassphrase() function takes the following optional flags: RPP_ECHO_OFF turn off echo (default behavior) RPP_ECHO_ON leave echo on RPP_REQUIRE_TTY fail if there is no tty RPP_FORCELOWER force input to lower case RPP_FORCEUPPER force input to upper case RPP_SEVENBIT strip the high bit from input RPP_STDIN force read of passphrase from stdin The calling process should zero the passphrase as soon as possible to avoid leaving the cleartext passphrase visible in the process's address space. RETURN VALUES
Upon successful completion, readpassphrase() returns a pointer to the NUL-terminated passphrase. If an error is encountered, the terminal state is restored and a NULL pointer is returned. FILES
/dev/tty EXAMPLES
The following code fragment will read a passphrase from /dev/tty into the buffer passbuf. char passbuf[1024]; ... if (readpassphrase("Response: ", passbuf, sizeof(passbuf), RPP_REQUIRE_TTY) == NULL) errx(1, "unable to read passphrase"); if (compare(transform(passbuf), epass) != 0) errx(1, "bad passphrase"); ... memset(passbuf, 0, sizeof(passbuf)); ERRORS
[EINTR] The readpassphrase() function was interrupted by a signal. [EINVAL] The bufsiz argument was zero. [EIO] The process is a member of a background process attempting to read from its controlling terminal, the process is ignoring or blocking the SIGTTIN signal, or the process group is orphaned. [EMFILE] The process has already reached its limit for open file descriptors. [ENFILE] The system file table is full. [ENOTTY] There is no controlling terminal and the RPP_REQUIRE_TTY flag was specified. SIGNALS
The readpassphrase() function will catch the following signals: SIGALRM SIGHUP SIGINT SIGPIPE SIGQUIT SIGTERM SIGTSTP SIGTTIN SIGTTOU When one of the above signals is intercepted, terminal echo will be restored if it had previously been turned off. If a signal handler was installed for the signal when readpassphrase() was called, that handler is then executed. If no handler was previously installed for the signal then the default action is taken as per sigaction(2). The SIGTSTP, SIGTTIN and SIGTTOU signals (stop signals generated from keyboard or due to terminal I/O from a background process) are treated specially. When the process is resumed after it has been stopped, readpassphrase() will reprint the prompt and the user may then enter a passphrase. SEE ALSO
sigaction(2), getpass(3) STANDARDS
The readpassphrase() function is an extension and should not be used if portability is desired. HISTORY
The readpassphrase() function first appeared in OpenBSD 2.9. RPP_STDIN was introduced in OS X 10.12. BSD
May 31, 2007 BSD
All times are GMT -4. The time now is 05:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy