11-19-2012
@jlliagre,
I think you missed a 1 or print there.
In any case, the spacing between the columns might get mangled.
10 More Discussions You Might Find Interesting
1. SuSE
Hello!
Why does my SuSE GNU/Linux machine swap?
I have a Gig of ram, currently 14MBs of free RAM, 724MB - buffers and caches...
That is 685MB of cached RAM, then kernel really should'nt have to swap, It should release cached memory in my thinkin...
It has only swaped 3MB's but still,... (3 Replies)
Discussion started by: Esaia
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question.
How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'?
As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies
3. Shell Programming and Scripting
Hi All,
I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by
set EDITOR=vi it does not open a vi editor , rather it do as below.....
/////////////////////////////////////////////////////
$ set... (6 Replies)
Discussion started by: aarora_98
6 Replies
4. Shell Programming and Scripting
In VI editor ctrl + g is used indicate the line number on which the cursor is placed...similarly is there a way to determine the column number of the cursor position..? (1 Reply)
Discussion started by: vijay_0209
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am attempting to replace several similar words with another word in vi. Here is what I have written for the script:
3dTcat -prefix SuperBrik_4WAY_HRF ../JULY10_2007A/results2TENT/stats.JULY10_2007A+tlrc ../JULY10_2007G/results2TENT/stats.JULY10_2007G+tlrc... (1 Reply)
Discussion started by: Jahn
1 Replies
6. Shell Programming and Scripting
This is an vi editor question. I do not know is this a right place to ask this question or not?
I have a file with the following contents,
10 11
20 21
30 31
I want to copy first column that is 10,20,30 after second column, so that output will look like the following,
10 11 10
20 21 20... (3 Replies)
Discussion started by: MeetP
3 Replies
7. Solaris
I am setting the size using "stty columns 120" . But I still get the prompt saying "terminal too wide " when I am in vi.
is there any time limit for this setting?
how to set the column size to 120 permanently?
Thanks in advance,
Devi (4 Replies)
Discussion started by: pvkdevi
4 Replies
8. UNIX for Dummies Questions & Answers
Hello Experts,
I'm a newbie so please excuse any wrong doings.
I have a file that looks like this.
abc def ghi jkl mno
def abc ghi mno jkl
ghi def mno jkl abc
I would like the file to look like this
abc def ghi jklmno
def abc ghi mnojkl
ghi def mno jklabc
in other... (3 Replies)
Discussion started by: fnebiolo
3 Replies
9. UNIX for Dummies Questions & Answers
I have text like this
M83-306 132 797
M83-312 145 685
M83-315 321 479
M83-319 654 193
M83-350 556 1184
M83-303 222 199
and I want to make it like this
M83-306 797
M83-312 685
M83-315 ... (9 Replies)
Discussion started by: muhnandap
9 Replies
10. UNIX for Dummies Questions & Answers
How do i remove a column using vi editor
Assuming the file to be of format
1: 010 0xad45 sp1 - 11:29:51.498583949 500249144 Event1 rst bcfe jhv rgc
456: 010 0xadb sp2 - 11:29:51.498600605 4464 Event0abcrd adabc aasd
45: 010 0x10 sp0 - 11:29:51.498614165 13560 Back adxca... (6 Replies)
Discussion started by: sp0
6 Replies
LEARN ABOUT DEBIAN
menu_spacing
spacing(3MENU) spacing(3MENU)
NAME
menu_spacing - Control spacing between menu items.
SYNOPSIS
#include <menu.h>
int set_menu_spacing(MENU *menu,
int spc_description,
int spc_rows,
int spc_columns);
int menu_spacing(const MENU *menu,
int* spc_description,
int* spc_rows,
int* spc_columns);
DESCRIPTION
The function set_menu_spacing sets the spacing information for the menu. Its parameter spc_description controls the number of spaces
between an item name and an item description. It must not be larger than TABSIZE. The menu system puts in the middle of this spacing area
the pad character. The remaining parts are filled with spaces. The spc_rows parameter controls the number of rows that are used for an
item. It must not be larger than 3. The menu system inserts the blank lines between item rows, these lines will contain the pad character
in the appropriate positions. The spc_columns parameter controls the number of blanks between columns of items. It must not be larger
than TABSIZE. A value of 0 for all the spacing values resets them to the default, which is 1 for all of them.
The function menu_spacing passes back the spacing info for the menu. If a pointer is NULL, this specific info is simply not returned.
RETURN VALUE
Both routines return E_OK on success. set_menu_spacing may return E_POSTED if the menu is posted, or E_BAD_ARGUMENT if one of the spacing
values is out of range.
SEE ALSO
ncurses(3NCURSES), curses_variables(3NCURSES), menu(3MENU).
NOTES
The header file <menu.h> automatically includes the header file <curses.h>.
PORTABILITY
These routines are specific to ncurses. They were not supported on Version 7, BSD or System V implementations. It is recommended that any
code depending on them be conditioned using NCURSES_VERSION.
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.
spacing(3MENU)