nl(3cur)nl(3cur)Name
nl, nonl - enable/disable newline control
Syntax
#include <cursesX.h>
int nl()
int nonl()
Description
The routine enables the newline control translations. When newline control is enabled, a newline is translated into a carriage return and
a linefeed on output, and a return is translated into a newline on input. Initially, these translations do occur.
The routine disables these translations, allowing the program to use the linefeed capability of the terminal, resulting in faster cursor
motion. The routine is a macro.
Return Values
The and functions return OK on success and ERR on error.
nl(3cur)
Check Out this Related Man Page
addch(3cur)addch(3cur)Name
addch, waddch, mvaddch, mvwaddch - add character to window
Syntax
#include <cursesX.h>
int addch(ch)
chtype ch;
int waddch(win, ch)
WINDOW *win;
chtype ch;
int mvaddch(y, x, ch)
int y, x;
chtype ch;
int mvwaddch(win, y, x, ch)
WINDOW *win;
int y, x;
chtype ch;
Description
The routine inserts the character into the default window at the current cursor position and the window cursor is advanced. The character
is of the type which is defined in the header file, as containing both data and attributes.
The routine inserts the character into the specified window at the current cursor position. The cursor position is advanced.
The routine moves the cursor to the specified (y, x) position and inserts the character into the default window. The cursor position is
advanced after the character has been inserted.
The routine moves the cursor to the specified (y, x) position and inserts the character into the specified window. The cursor position is
advanced after the character has been inserted.
All these routines are similar to The following information applies to all the routines.
If the cursor moves on to the right margin, an automatic newline is performed. If is enabled, and a character is added to the bottom right
corner of the screen, the scrolling region will be scrolled up one line. If scrolling is not allowed, ERR will be returned.
If is a tab, newline, or backspace, the cursor will be moved appropriately within the window. If is a newline, the routine is called
before the cursor is moved to the beginning of the next line. If newline mapping is off, the cursor will be moved to the next line, but
the x coordinate will be unchanged. If is a tab the cursor is moved to the next tab position within the window. If is another control
character, it will be drawn in the ^X notation. Calling the routine after adding a control character returns the representation of the
control character, not the control character.
Video attributes can be combined with a character by or-ing them into the parameter. This will result in these attributes being set. The
intent here is that text, including attributes, can be copied from one place to another using and For further information, see
The and routines are macros.
Return Values
The and functions return OK on success and ERR on error.
See Alsoclrtoeol(3cur), inch(3cur), scrollok(3cur), standout(3cur), putchar(3s)addch(3cur)
I have a installed Redhat Linux v5 on a new HP Pavillon PC. It has a dual boot with Vista. Booting from Vista, I can connect to the internet. However with Redhat I cannot connect to the internet.
I looked at the /etc/resolv.conf file in Redhat and there is no DNS entry there. From where do I... (28 Replies)
I have a few log files which get generated on a daily basis..So, I need to pick only the ones which get generated for that particular day.
-rw-r--r-- 1 staff 510732676 Apr 7 22:01 test.log040711
-rwxrwxrwx 1 staff 2147482545 Apr 7 21:30 test.log.2
-rwxrwxrwx 1 staff 2147482581 Apr 7 19:26... (43 Replies)
Hi,
I've got a regex match to perform in a Bash script and can't quite get it right.
Basically I want to match all IP address like sequences in a file which may or may not contain an IP address but with the extra qualification of ignoring any IP-like sequence which begins and ends with a... (27 Replies)
Hello, we have a UNIX system the runs our business data.
We have 4 users that use a particular batch command file to extract data for use in the Windows side of the fence: (despreg.bat)
ftp
ftp> open danapak (database name)
connected to danapak
ftp> user ccsb
password ccsb
ftp>... (29 Replies)
Hi All,
I have a log file where every line contains a date and some other data, i want to grep only the date from every line to a different file.
Please help how to get this.
Thanks in advance !! (25 Replies)
Hi All,
I have a script, I want to make sure the script should check whether the day is sunday, only then it should run, if it is run other days it should check and exit the script.
Kindly help.
Thanks in Advance !! (41 Replies)
Hi All,
I want to find the difference between two files, by checking only the headers (column names) and report if any new column is added in the latest file.
For Ex: If the file "declartion.txt has these columns
url;image;id;showcase_id;showcase_name
and the actual file "feed.txt" has... (34 Replies)
Welcome to all.
Have an issue and looking for help so hope someone is able to give me some clues.
I prepared some shell scripts with coloured output to help other guys to have more automated task. Not sure if I did this but now whenever I use 'ls' command for root user every output in... (29 Replies)
Hello everybody
I have been trying to extract the domain name from the bind query log with different options, however always get stuck with domains that end with link .co.uk or .co.nz.
I tried the following, however only provides the first level:
awk -F"." '{print $(NF-1)"."$NF}' list.txt >... (30 Replies)
My original files are like this below and I distinguish them from the AP_ID (file1 has 572 and file2 has 544). Also, the header on file1 has “G_” pre-pended. NOTE: these are only snippets of very large files and much of the data is not present here.
Original File 1:
... (36 Replies)
Today I mapped out the new badging system using FA icons, Beta 1 in no particular order except a 6 x 8 grid:
https://www.unix.com/members/1-albums215-picture991.png
The prototype HTML code for this layout:
<style>
.fa-badge-grid {
font-size: 1.5em;
}
.row {
... (38 Replies)
What is your favorite Linux distro?
and possibly why?
Personally, I have Fedora 3 on my computer. I have used Ubuntu and Slackware, too. But I think I liked Ubuntu more, maybe because of its speed and easy installation of packages. (192 Replies)