FORMS(3) BSD Library Functions Manual FORMS(3)NAME
field_just, set_field_just -- form library
LIBRARY
Curses Form Library (libform, -lform)
SYNOPSIS
#include <form.h>
int
field_just(FIELD *field);
int
set_field_just(FIELD *field, int justification);
DESCRIPTION
Field justification is only applied to static fields, a dynamic field will not be justified. The default justification for a field is
NO_JUSTIFICATION. The field_just() will return the current justification value of the given field and the justification may be set by call-
ing the set_field_just() function.
PARAMETERS
The following are the valid justifications for a field:
NO_JUSTIFICATION No justification is to be applied to the field. In practice, this is the same as JUSTIFY_LEFT.
JUSTIFY_RIGHT The field will be right justified. That is, the end of each line will be butted up against the right hand side of the
field.
JUSTIFY_LEFT The field will be left justified. That is, the start of each line will be butted up against the left hand side of the
field.
JUSTIFY_CENTER The field will be centre justified, padding will be applied to either end of the line to make the line centred in the
field.
RETURN VALUES
The functions will return one of the following error values:
E_OK The function was successful.
E_CURRENT The field specified is the currently active one on the form.
E_BAD_ARGUMENT A bad argument was passed to the function.
SEE ALSO curses(3), forms(3)NOTES
The header <form.h> automatically includes both <curses.h> and <eti.h>.
BSD January 1, 2001 BSD
Check Out this Related Man Page
FORMS(3) BSD Library Functions Manual FORMS(3)NAME
field_just, set_field_just -- form library
LIBRARY
Curses Form Library (libform, -lform)
SYNOPSIS
#include <form.h>
int
field_just(FIELD *field);
int
set_field_just(FIELD *field, int justification);
DESCRIPTION
Field justification is only applied to static fields, a dynamic field will not be justified. The default justification for a field is
NO_JUSTIFICATION. The field_just() will return the current justification value of the given field and the justification may be set by call-
ing the set_field_just() function.
PARAMETERS
The following are the valid justifications for a field:
NO_JUSTIFICATION No justification is to be applied to the field. In practice, this is the same as JUSTIFY_LEFT.
JUSTIFY_RIGHT The field will be right justified. That is, the end of each line will be butted up against the right hand side of the
field.
JUSTIFY_LEFT The field will be left justified. That is, the start of each line will be butted up against the left hand side of the
field.
JUSTIFY_CENTER The field will be centre justified, padding will be applied to either end of the line to make the line centred in the
field.
RETURN VALUES
The functions will return one of the following error values:
E_OK The function was successful.
E_CURRENT The field specified is the currently active one on the form.
E_BAD_ARGUMENT A bad argument was passed to the function.
SEE ALSO curses(3), forms(3)NOTES
The header <form.h> automatically includes both <curses.h> and <eti.h>.
BSD January 1, 2001 BSD
Hello,
I have to write a function to input a Label and a number, and output a line as the following format:
Column 1 to 30: field label, left justified.
Column 31 to 45: A number, right justified.
The middle is padded with space. May I know how can I achieve this? (I don't know how to count... (3 Replies)
I have a name field in a file which is right justified (yep - its true). I need to strip the leading spaces from the field and write the name out left justified. Again, I think I need to use a sed or awk command but so far, my results are at best disappointing. Thank you in advance from a UNIX... (2 Replies)
hi experts,
i just need a help that my script is generating the output which i will mentioned below but the fileds are not justified the alignment is disturbed.
0 8718 8718 0 8777
1 7450 7450 0 7483
2 5063 5063 0 5091
3 3840 3840 0 3855
4 ... (2 Replies)
Hi, can anyone help me? This is what i want to do....I have a string
UNB+UNOA:1+OOCLIES+RTTC+080408:0358+1'
and i want to replace the "1" at the end (that specific field only) to 00001 such that the new output will be like this
UNB+UNOA:1+OOCLIES+RTTC+080408:0358+00001'
i tried using... (5 Replies)
Hi all,
How would I append the second field each time to one line if the first field is the same for example I have this data:
10430,187976
10430,251588
10430,262904
10430,275008
10430,279892
10430,275008
10430,303740
10430,318136
10430,336988
10430,350324
10430,373648
And I... (4 Replies)
Hi,
I am trying to write a script that will take 2 or more instances of repetitive alphabets (ZZ) to be removed from a field. This should only happen from beginning and end of a field.
For Example :
Input File
a) ZZZIBM Corporation
b) ZZZIBM Corporation ZZZZZ
b) IBM ZZZ... (26 Replies)
######################## SOLVED ##################
Hi
I have a header file like the following and the field "IDENTIFIER" can be at any possition on this line,
The line can containt a variable number of field, not alway the same depending of the header file i use
... (6 Replies)
I'm trying to use sed to remove the value of one field from another field. For example:
cat inputfile
123|ABC|Generic_Textjoe@yahoo.com|joe@yahoo.com|DEF
456|GHI|Other_recordjohn@msn.com|john@msn.com|JKL
789|MNO|No_Email_On_This_One|smith@gmail.com|PQR
I would like to remove the email... (2 Replies)
How would I do something like this when field 4 contains "John". I only want to print field 1 and 4 when when field 4 contains"John".
awk -F" " '{print $1 $4} (3 Replies)
Hi everybody,
I'm trying to replace the $98 field with "T" if the last field (108th) is T
I've tried
awk 'BEGIN{OFS=FS="|"} {if ($108=="T")sub($98,"T"); print}' test.txt
but that doesn't do anything
also tried
awk 'BEGIN{OFS=FS="|"}{ /*T.$/ sub($98,"T")} { print}' test.txt
but... (2 Replies)
Suppose I have a file abc.txt which contain lines:-
11.3.5.7
11.3.6.7
11.6.8.9.10
I want to replace the last field of the line to some value .I want the first line should become 11.3.5.86 .Same applies for rest lines.Please help. (6 Replies)
Using awk or sed, I'd like to remove leading spaces after a comma and before a right justified number in field 6. Sounds simple but I can't find a solution. Each field's formatting must stay intact.
Input:
40,123456-02,160,05/24/2012,02/13/1977, 10699.15,0
Output:... (5 Replies)
I have some problem with this.
Need to change field #3 to 5 if field #1 = A and filed #2 =B
DataA C 6 T
C B 4 R
A B 3 T
D E 5 4
I would like to do two things if statement is true, but can not get it to work.
Here it prints column #3 if statement is true, and this works
awk '{if... (3 Replies)
I have 2 files , i need compare both files field by field, and in the fourth field some value will be interchaged and some value will be **.
ex: file1 john|0.0|4|**:25;JP:50;UY:25
file2 john|0.0|4|JP:50;**:25;UY:25 (4 Replies)
Im looking for a way to average the values in field 14 (when field 2 is equal to 2016) and fields 3 and 4 (when field 2 is equal to 2017).
Any help is appreciated.
001001 2016 33.22 38.19 48.07 51.75 59.77 67.68 70.86 72.21 66.92 53.67 42.31 40.15
001001 2017 ... (10 Replies)