Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Cursor positioning thru VI Editor Post 54322 by Latha Nair on Tuesday 10th of August 2004 08:57:25 AM
Old 08-10-2004
Cursor positioning thru VI Editor

Is there a way that I can position cursor at say line 23, column 2?

Thank you in advance.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. Programming

positioning cursor

I am using curses.h and signals.h to control output to screen. My code displays an unchanging prompt that waits for user input. Meanwhile alarm signals are being generated that cause other ancillary messages to appear at other locations on the screen at various times. The problem I have is with... (2 Replies)
Discussion started by: enuenu
2 Replies

4. Shell Programming and Scripting

E:348 no string under cursor error comes in vi editor in cygwin

when i open a file to edit and type i to insert and the type # for #!/bin/bash in vi and vim editor the message come that no string under cursor plz somebody help (0 Replies)
Discussion started by: mrityunjay22
0 Replies

5. UNIX for Dummies Questions & Answers

Vi editor : Knowing the current cursor position

Hi All, In VI editor, to know the line number at any instant we use ctrl+g Similarly, to know the current coulmn number what shall we use?? If not direct key controls like ctrl+g, Is there any comands that could be executed in colon or ex mode of VI to know the current column position???... (1 Reply)
Discussion started by: ramkrix
1 Replies

6. 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

7. 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

8. 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

9. 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

10. 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
curs_border_set(3)					     Library Functions Manual						curs_border_set(3)

NAME
curs_border_set, border_set, wborder_set, box_set, hline_set, whline_set, mvhline_set, mvwhline_set, vline_set, wvline_set, mvvline_set, mvwvline_set - Draw borders or lines by using complex characters and renditions SYNOPSIS
#include <curses.h> int border_set( const cchar_t *ls, const cchar_t *rs, const cchar_t *ts, const cchar_t *bs, const cchar_t *tl, const cchar_t *tr, const cchar_t *bl, const cchar_t *br ); int wborder_set( WINDOW *win, const cchar_t *ls, const cchar_t *rs, const cchar_t *ts, const cchar_t *bs, const cchar_t *tl, const cchar_t *tr, const cchar_t *bl, const cchar_t *br ); int box_set( WINDOW *win, const cchar_t *verch, const cchar_t *horch ); int hline_set( const cchar_t *wch, int n ); int whline_set( WINDOW *win, const cchar_t *wch, int n ); int mvhline_set( int y, int x, const cchar_t *wch, int n ); int mvwhline_set( WINDOW *win, int y, int x, const cchar_t *wch, int n ); int vline_set( const cchar_t *wch, int n ); int wvline_set( WINDOW *win, const cchar_t *wch, int n ); int mvvline_set( int y, int x, const cchar_t *wch, int n ); int mvwvline_set( WINDOW *win, int y, int x, const cchar_t *wch, int n ); LIBRARY
Curses Library (libcurses) STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: border_set, wborder_set, box_set, hline_set, whline_set, mvhline_set, mvwhline_set, vline_set, wvline_set, mvvline_set, mvwv- line_set: XCURSES4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
The border_set and wborder_set functions draw a border around the edges of the current or specified window. These functions do not advance the cursor position, do not perform special character processing, and do not perform wrapping. The arguments in the left-hand column of the following table contain spacing complex characters with renditions, which have the specified uses in drawing the border: ----------------------------------------------------------------- Argument Name Usage Default Value ----------------------------------------------------------------- ls Starting-column side WACS_VLINE rs Ending-column side WACS_VLINE ts First-line side WACS_HLINE bs Last-line side WACS_HLINE tl Corner of the first line and the WACS_ULCORNER starting column tr Corner of the first line and the WACS_URCORNER ending column bl Corner of the last line and the WACS_LLCORNER starting column br Corner of the last line and the WACS_LRCORNER ending column ----------------------------------------------------------------- If the value of any argument in the left-hand column of the table is a null pointer, then the default value in the right-hand column is used. If the value of any argument in the left-hand column of the table is a multicolumn character, the results are undefined. The box_set function draws a border around the edges of the specified window. This function does not advance the cursor position, does not perform special-character processing, and does not perform wrapping. The call box_set(win, verch, horch); is equivalent to the following call: wborder_set(win, verch, verch, horch, horch, NULL, NULL, NULL, NULL); The *line_set functions use wch to draw a line in the current or specified window, starting at the current or specified position. The line is at most n positions in length or as many positions as can fit into the window. These functions do not advance the cursor position, do not perform special-character processing, and do not perform wrapping. The hline_set, mvhline_set, mvwhline_set, and whline_set functions draw a line proceeding toward the last column of the same line. The vline_set, mvvline_set, mvwvline_set, and wvline_set functions draw a line proceeding toward the last line of the window. NOTES
The header file <curses.h> automatically includes the header file <stdio.h>. Note that border_set, hlines_set, mvhline_set, mvvline_set, mvwhline_set, mvwvline_set, and vline_set may be macros. RETURN VALUES
Upon successful completion, these functions return OK. Otherwise, they return ERR. SEE ALSO
Functions: curses(3), curs_border(3), curs_outopts(3) Others: standards(5) curs_border_set(3)
All times are GMT -4. The time now is 01:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy