LINES(3XCURSES) X/Open Curses Library Functions LINES(3XCURSES)NAME
LINES - number of lines on terminal screen
SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib
-R /usr/xpg4/lib -lcurses [ library... ]
c89 [ flag... ] file... -lcurses [ library ... ]
#include <curses.h>
extern int LINES;
DESCRIPTION
The external variable LINES indicates the number of lines on the terminal screen.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO initscr(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5)SunOS 5.10 5 Jun 2002 LINES(3XCURSES)
Check Out this Related Man Page
COLS(3XCURSES) X/Open Curses Library Functions COLS(3XCURSES)NAME
COLS - number of columns on terminal screen
SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib
-R /usr/xpg4/lib -lcurses [ library... ]
c89 [ flag... ] file... -lcurses [ library ... ]
#include <curses.h>
extern int COLS;
DESCRIPTION
The external variable COLS indicates the number of columns on the terminal screen.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO initscr(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5)SunOS 5.11 5 Jun 2002 COLS(3XCURSES)
Hi,
anyone has any ideas on how do we extract lines from a file with format similiar to this: (based on current time)
Jun 18 00:16:50 .......... ............. ............
Jun 18 00:17:59 .......... ............. ............
Jun 18 01:17:20 .......... ............. ............
Jun 18... (5 Replies)
I am trying to set my system variable LINES and not able to do that permanently. I used the following commands for this:
Can I able to chage the value of that variable permanently atleast I exit from the shell? (1 Reply)
I need a script:
I have an active log file that has multiple lines of information, (3 LINES with 4th line -------) need to copy the last 15 lines into one line only to another file.
Here's the copy of the log:
Date: Fri Jan 22 13:18:04 2010
XXXX alert for XXXXX instance OS host XXXXX at... (3 Replies)
Hi all,
I am working on a small prog..
i have a file.txt which contains random data...
K LINES V4 ADD CODE `COMPANY` ADD CODE `DISTRIBUTOR` SEQ NAME^K LINES V5 SEQ NAME^K LINES V6 ADD `PACK-LDATE` SEQ NAME^K^KCOMMAND END^KHEADINFO... (1 Reply)
Hi everyone! I need your help. Can not find out what I am doing wrong :(
I have a file 1.txt. It looks like
apple orange juice
table computer banana
tea weather home
bed water mandarin
So I need to print only first words of each line like
apple
table
tea
bed
My script looks like... (8 Replies)